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

Function writeText

packages/plugins/mcp/src/testing/server.ts:64–67  ·  view source on GitHub ↗
(response: http.ServerResponse, status: number, body: string)

Source from the content-addressed store, hash-verified

62};
63
64const writeText = (response: http.ServerResponse, status: number, body: string) => {
65 response.writeHead(status, { "content-type": "text/plain; charset=utf-8" });
66 response.end(body);
67};
68
69const readRequestBody = (
70 request: http.IncomingMessage,

Callers 1

handleMcpRequestFunction · 0.85

Calls 1

endMethod · 0.80

Tested by

no test coverage detected