(env: Env, sessionId: string)
| 68 | }; |
| 69 | |
| 70 | const 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 | |
| 76 | const authenticate = (request: Request) => |
| 77 | Effect.gen(function* () { |
no test coverage detected