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

Function oauthScopeCount

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

Source from the content-addressed store, hash-verified

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