{"record":{"id":"b805bb8c10baf79e","repo":"different-ai/openwork","slug":"mcp-oauth-unsupported-token-type","errorCode":"MCP_OAUTH_UNSUPPORTED_TOKEN_TYPE","errorMessage":"Configure the authorization server to issue a token type supported by the MCP client and resource.","messagePattern":"Configure the authorization server to issue a token type supported by the MCP client and resource\\.","errorType":"error_code","errorClass":"UnsupportedTokenTypeError","httpStatus":null,"severity":"error","filePath":"ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts","lineNumber":1318,"sourceCode":"      actionOwner: \"organization_admin\",\n      operatorAction: \"Grant the MCP resource scopes required by the provider and restart authorization.\",\n    }\n  }\n  if (name === \"InvalidTokenError\") {\n    return {\n      phase: \"AUTH_RESOURCE_VALIDATION\",\n      category: \"oauth_invalid_token\",\n      code: \"MCP_OAUTH_INVALID_TOKEN\",\n      retryable: false,\n      actionOwner: \"member\",\n      operatorAction: \"Reconnect the MCP account to obtain a token for the configured resource.\",\n    }\n  }\n  if (name === \"UnsupportedTokenTypeError\") {\n    return {\n      phase: fallbackPhase,\n      category: \"oauth_unsupported_token_type\",\n      code: \"MCP_OAUTH_UNSUPPORTED_TOKEN_TYPE\",\n      retryable: false,\n      actionOwner: \"provider_admin\",\n      operatorAction: \"Configure the authorization server to issue a token type supported by the MCP client and resource.\",\n    }\n  }\n  if (name === \"MethodNotAllowedError\") {\n    return {\n      phase: fallbackPhase,\n      category: \"oauth_method_not_allowed\",\n      code: \"MCP_OAUTH_METHOD_NOT_ALLOWED\",\n      retryable: false,\n      actionOwner: \"provider_admin\",\n      operatorAction: \"Verify the provider OAuth endpoint path and its supported HTTP method.\",\n    }\n  }\n  if (name === \"TooManyRequestsError\") {\n    return {\n      phase: fallbackPhase,","sourceCodeStart":1300,"sourceCodeEnd":1336,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts#L1300-L1336","documentation":"Error \"Configure the authorization server to issue a token type supported by the MCP client and resource.\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts:1318 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"}