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

Function capScopes

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

Source from the content-addressed store, hash-verified

672 const MAX_DISCOVERY_AUTH_SERVERS = 3; // AS-failover lists are tiny in practice
673 const MAX_DISCOVERED_SCOPES = 100; // far beyond any realistic authorization template
674 const capScopes = (scopes: readonly string[]): readonly string[] =>
675 dedupeScopes(scopes).slice(0, MAX_DISCOVERED_SCOPES);
676
677 // Bound a whole discovery sequence (PRM + up to MAX_DISCOVERY_AUTH_SERVERS AS
678 // fetches, each with its own request timeout). 30s is larger than a single

Callers 1

Calls 1

dedupeScopesFunction · 0.85

Tested by

no test coverage detected