different-ai/openwork · error · InsufficientScopeError
MCP_OAUTH_INSUFFICIENT_SCOPE
MCP_OAUTH_INSUFFICIENT_SCOPE
Error message
Grant the MCP resource scopes required by the provider and restart authorization.
What it means
Error "Grant the MCP resource scopes required by the provider and restart authorization." thrown in different-ai/openwork.
Source
Thrown at ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts:1298
actionOwner: "organization_admin",
operatorAction: "Correct the configured provider scopes and restart authorization.",
}
}
if (name === "InvalidTargetError") {
return {
phase: "AUTH_RESOURCE_VALIDATION",
category: "oauth_invalid_target",
code: "MCP_OAUTH_INVALID_TARGET",
retryable: false,
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,View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/apps/den-api/src/capability-sources/external-mcp-diagnostics.ts:1298 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/cefdf872aa13880b.
Report an issue: GitHub.