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

Function oauthScopeCount

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

Source from the content-addressed store, hash-verified

379 * the connection carries no scope (static credentials, or an OAuth AS that
380 * omitted scope). */
381const oauthScopeCount = (scope: string | null | undefined): number | null =>
382 scope == null ? null : scope.split(/\s+/).filter(Boolean).length;
383
384/** Lean projection for `connections.list`. Summarizes `oauthScope` to a count
385 * 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