MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / capScopes

Function capScopes

packages/core/sdk/src/oauth-service.ts:527–528  ·  view source on GitHub ↗
(scopes: readonly string[])

Source from the content-addressed store, hash-verified

525 const MAX_DISCOVERY_AUTH_SERVERS = 3; // AS-failover lists are tiny in practice
526 const MAX_DISCOVERED_SCOPES = 100; // far beyond any realistic authorization template
527 const capScopes = (scopes: readonly string[]): readonly string[] =>
528 dedupeScopes(scopes).slice(0, MAX_DISCOVERED_SCOPES);
529
530 // Discover the scopes to request when the integration declares none — only
531 // reached for integrations that opt in (MCP-style). The resource's own RFC

Callers 1

Calls 1

dedupeScopesFunction · 0.85

Tested by

no test coverage detected