{"record":{"id":"998bceae32de24a6","repo":"different-ai/openwork","slug":"mcp-fetch-forbidden-port","errorCode":"MCP_FETCH_FORBIDDEN_PORT","errorMessage":"MCP_FETCH_FORBIDDEN_PORT","messagePattern":"MCP_FETCH_FORBIDDEN_PORT","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts","lineNumber":1211,"sourceCode":"      actionOwner: \"provider_admin\",\n      operatorAction: \"Reduce the provider response size, tool catalog, or event-stream payload before retrying.\",\n    }\n  }\n  if (error instanceof PrivateUrlError) {\n    return {\n      phase: \"CONFIGURATION\",\n      category: \"security_blocked\",\n      code: \"MCP_URL_BLOCKED\",\n      retryable: false,\n      actionOwner: \"organization_admin\",\n      operatorAction: \"Use a public HTTPS MCP URL or change the deployment's private-network policy through security review.\",\n    }\n  }\n  if (hasForbiddenPortMessage(error)) {\n    return {\n      phase: \"CONFIGURATION\",\n      category: \"unsupported_endpoint_port\",\n      code: \"MCP_FETCH_FORBIDDEN_PORT\",\n      retryable: false,\n      actionOwner: \"organization_admin\",\n      operatorAction: \"Use the provider's supported HTTPS MCP port or place the endpoint behind a standard HTTPS listener.\",\n    }\n  }\n\n  const code = errorCode(error)\n  if (code) {\n    const classified = classifyByCode(code)\n    if (classified) return classified\n  }\n\n  const providerAuthorization = providerAuthorizationRequired(error)\n  if (providerAuthorization) {\n    return providerAuthorizationClassification(providerAuthorization.connectUrl)\n  }\n\n  const numericCode = numericErrorCode(error)","sourceCodeStart":1193,"sourceCodeEnd":1229,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts#L1193-L1229","documentation":"Error \"MCP_FETCH_FORBIDDEN_PORT\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts:1211 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}