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

Function oauthScopeCount

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

Source from the content-addressed store, hash-verified

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