different-ai/openwork · error

MCP_FETCH_FORBIDDEN_PORT

MCP_FETCH_FORBIDDEN_PORT

Error message

MCP_FETCH_FORBIDDEN_PORT

What it means

Error "MCP_FETCH_FORBIDDEN_PORT" thrown in different-ai/openwork.

Source

Thrown at ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts:1211

      actionOwner: "provider_admin",
      operatorAction: "Reduce the provider response size, tool catalog, or event-stream payload before retrying.",
    }
  }
  if (error instanceof PrivateUrlError) {
    return {
      phase: "CONFIGURATION",
      category: "security_blocked",
      code: "MCP_URL_BLOCKED",
      retryable: false,
      actionOwner: "organization_admin",
      operatorAction: "Use a public HTTPS MCP URL or change the deployment's private-network policy through security review.",
    }
  }
  if (hasForbiddenPortMessage(error)) {
    return {
      phase: "CONFIGURATION",
      category: "unsupported_endpoint_port",
      code: "MCP_FETCH_FORBIDDEN_PORT",
      retryable: false,
      actionOwner: "organization_admin",
      operatorAction: "Use the provider's supported HTTPS MCP port or place the endpoint behind a standard HTTPS listener.",
    }
  }

  const code = errorCode(error)
  if (code) {
    const classified = classifyByCode(code)
    if (classified) return classified
  }

  const providerAuthorization = providerAuthorizationRequired(error)
  if (providerAuthorization) {
    return providerAuthorizationClassification(providerAuthorization.connectUrl)
  }

  const numericCode = numericErrorCode(error)

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts:1211 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01). Data as JSON: /api/errors/998bceae32de24a6. Report an issue: GitHub.