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

Function oauthScopeCount

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

Source from the content-addressed store, hash-verified

388 * the connection carries no scope (static credentials, or an OAuth AS that
389 * omitted scope). */
390const oauthScopeCount = (scope: string | null | undefined): number | null =>
391 scope == null ? null : scope.split(/\s+/).filter(Boolean).length;
392
393/** Lean projection for `connections.list`. Summarizes `oauthScope` and health
394 * 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