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

Function testHandlers

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

Source from the content-addressed store, hash-verified

13const TOKEN = "test-token";
14
15const testHandlers = () => ({
16 api: {
17 handler: async () => new Response("ok"),
18 dispose: async () => {},
19 },
20 mcp: {
21 handleRequest: async () => new Response("ok"),
22 handleApprovalRequest: async () => new Response("ok"),
23 handlePausedRequest: async () => new Response("ok"),
24 close: async () => {},
25 },
26});
27
28const startTestServer = async (
29 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