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

Function mcpRequestStateBinding

packages/hosts/mcp/src/tool-server.ts:130–137  ·  view source on GitHub ↗
(input: McpRequestStateBindingInput)

Source from the content-addressed store, hash-verified

128
129/** Build the canonical NUL-separated modern continuation binding. */
130export const mcpRequestStateBinding = (input: McpRequestStateBindingInput): string =>
131 [
132 input.principal,
133 mcpResourceKey(input.resource),
134 input.method,
135 input.toolName,
136 input.codeDigest,
137 ].join("\u0000");
138
139/** Return the lowercase SHA-256 digest used to bind an execute code argument. */
140export const mcpCodeDigest = async (code: string): Promise<string> => {

Callers 1

Calls 1

mcpResourceKeyFunction · 0.90

Tested by

no test coverage detected