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

Function verifyRequestState

packages/hosts/mcp/src/tool-server.ts:418–426  ·  view source on GitHub ↗
(state: string, context: ServerContext)

Source from the content-addressed store, hash-verified

416 bind: () => binding,
417 });
418 const verifyRequestState = async (state: string, context: ServerContext) => {
419 const binding = await requestStateBindingForContext(
420 config.requestStateBinding,
421 config.requestStatePrincipal,
422 context,
423 );
424 const decoded = await requestStateCodec(binding).verify(state, context);
425 return Effect.runPromise(Schema.decodeUnknownEffect(NativeRequestStateSchema)(decoded));
426 };
427 const server = new McpServer(
428 { name: "executor", version: "1.0.0" },
429 {

Callers

nothing calls this directly

Calls 2

requestStateCodecFunction · 0.85

Tested by

no test coverage detected