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

Function respond

packages/plugins/mcp/src/sdk/plugin.test.ts:167–168  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

165 const rpc = request.url === endpoint ? clientRpcOf(request) : undefined;
166 requests.push(rpc === undefined ? url.pathname : `${url.pathname}#${rpc.method}`);
167 const respond = (response: Response) =>
168 Effect.succeed(HttpClientResponse.fromWeb(request, response));
169 if (request.url === endpoint) {
170 if (rpc === undefined) return respond(new Response("SSE disabled", { status: 405 }));
171 if (rpc.method === "initialize") {

Callers 6

httpClientLayerFunction · 0.70
fetchFunction · 0.50
makeFetchHarnessFunction · 0.50
stubFetchFunction · 0.50
serveReplayBrainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected