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

Function oauthScopeCount

packages/core/sdk/src/core-tools.ts:389–390  ·  view source on GitHub ↗
(scope: string | null | undefined)

Source from the content-addressed store, hash-verified

387 * the connection carries no scope (static credentials, or an OAuth AS that
388 * omitted scope). */
389const oauthScopeCount = (scope: string | null | undefined): number | null =>
390 scope == null ? null : scope.split(/\s+/).filter(Boolean).length;
391
392/** Lean projection for `connections.list`. Summarizes `oauthScope` and health
393 * diagnostics unless `verbose`, where the full grant string is included too. */

Callers 1

connectionToListItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected