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

Function sessionStub

apps/cloud/src/mcp/agent-handler.ts:70–74  ·  view source on GitHub ↗
(env: Env, sessionId: string)

Source from the content-addressed store, hash-verified

68};
69
70const sessionStub = (env: Env, sessionId: string): McpAgentSessionStub =>
71 // oxlint-disable-next-line executor/no-double-cast -- boundary: Workers types expose only DurableObjectStub, but RPC methods are generated from the bound DO class.
72 env.MCP_SESSION.get(
73 env.MCP_SESSION.idFromName(`streamable-http:${sessionId}`),
74 ) as unknown as McpAgentSessionStub;
75
76const authenticate = (request: Request) =>
77 Effect.gen(function* () {

Callers 1

makeCloudMcpAgentHandlerFunction · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected