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

Function mcpResourceKey

packages/hosts/mcp/src/seams.ts:81–82  ·  view source on GitHub ↗
(resource: McpResource | null | undefined)

Source from the content-addressed store, hash-verified

79// minted against the default `/mcp` endpoint, so a missing resource keys to
80// "default". Keeping this guard here means no caller can throw on legacy data.
81export const mcpResourceKey = (resource: McpResource | null | undefined): string =>
82 resource && resource.kind !== "default" ? `toolkit:${resource.slug}` : "default";
83
84// ---------------------------------------------------------------------------
85// AuthOutcome — the result of `McpAuthProvider.authenticate`.

Callers 11

handlerForFunction · 0.90
sessionOwnerMatchesFunction · 0.90
mcpRequestStateBindingFunction · 0.90
handlerForFunction · 0.85
modernPropsOwnSessionFunction · 0.85
fetchFunction · 0.85
serveModernMcpFunction · 0.85
modernHandlerForFunction · 0.85
createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected