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

Function requestStateCodec

packages/hosts/mcp/src/tool-server.ts:410–417  ·  view source on GitHub ↗
(binding: string)

Source from the content-addressed store, hash-verified

408 ? (config.restoredAppsEnabled ?? config.appsEnabled)
409 : config.appsEnabled;
410 const requestStateCodec = (binding: string) =>
411 createRequestStateCodec<NativeRequestState>({
412 key: config.requestStateSigningKey,
413 ...(config.requestStateTtlSeconds === undefined
414 ? {}
415 : { ttlSeconds: config.requestStateTtlSeconds }),
416 bind: () => binding,
417 });
418 const verifyRequestState = async (state: string, context: ServerContext) => {
419 const binding = await requestStateBindingForContext(
420 config.requestStateBinding,

Callers 2

verifyRequestStateFunction · 0.85
nativeInputRequiredFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected