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

Function mcpResourceKey

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

Source from the content-addressed store, hash-verified

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

Callers 4

sessionOwnerMatchesFunction · 0.90
createMcpRequestHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected