(scopes: readonly string[])
| 455 | const MAX_DISCOVERY_AUTH_SERVERS = 3; // AS-failover lists are tiny in practice |
| 456 | const MAX_DISCOVERED_SCOPES = 100; // far beyond any realistic authorization template |
| 457 | const capScopes = (scopes: readonly string[]): readonly string[] => |
| 458 | dedupeScopes(scopes).slice(0, MAX_DISCOVERED_SCOPES); |
| 459 | |
| 460 | // Discover the scopes to request when the integration declares none — only |
| 461 | // reached for integrations that opt in (MCP-style). The resource's own RFC |
no test coverage detected