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

Function testHandlers

apps/local/src/serve.test.ts:24–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22const TOKEN = "test-token";
23
24const testHandlers = () => ({
25 api: {
26 handler: async () => new Response("ok"),
27 dispose: async () => {},
28 },
29 mcp: {
30 handleRequest: async () => new Response("ok"),
31 handleApprovalRequest: async () => new Response("ok"),
32 handlePausedRequest: async () => new Response("ok"),
33 close: async () => {},
34 },
35});
36
37const startTestServer = async (
38 opts: { authToken?: string; hostname?: string } = {},

Callers 2

startTestServerFunction · 0.85
serve.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected