different-ai/openwork · error · InvalidTokenError

MCP_OAUTH_INVALID_TOKEN

MCP_OAUTH_INVALID_TOKEN

Error message

Reconnect the MCP account to obtain a token for the configured resource.

What it means

Error "Reconnect the MCP account to obtain a token for the configured resource." thrown in different-ai/openwork.

Source

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

      actionOwner: "organization_admin",
      operatorAction: "Correct the configured MCP resource or token audience and restart authorization.",
    }
  }
  if (name === "InsufficientScopeError") {
    return {
      phase: "AUTH_RESOURCE_VALIDATION",
      category: "oauth_insufficient_scope",
      code: "MCP_OAUTH_INSUFFICIENT_SCOPE",
      retryable: false,
      actionOwner: "organization_admin",
      operatorAction: "Grant the MCP resource scopes required by the provider and restart authorization.",
    }
  }
  if (name === "InvalidTokenError") {
    return {
      phase: "AUTH_RESOURCE_VALIDATION",
      category: "oauth_invalid_token",
      code: "MCP_OAUTH_INVALID_TOKEN",
      retryable: false,
      actionOwner: "member",
      operatorAction: "Reconnect the MCP account to obtain a token for the configured resource.",
    }
  }
  if (name === "UnsupportedTokenTypeError") {
    return {
      phase: fallbackPhase,
      category: "oauth_unsupported_token_type",
      code: "MCP_OAUTH_UNSUPPORTED_TOKEN_TYPE",
      retryable: false,
      actionOwner: "provider_admin",
      operatorAction: "Configure the authorization server to issue a token type supported by the MCP client and resource.",
    }
  }
  if (name === "MethodNotAllowedError") {
    return {
      phase: fallbackPhase,

View on GitHub (pinned to 2b7df46e8a)

When it happens

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

Common situations: See trigger scenarios.


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