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

Function writeText

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

Source from the content-addressed store, hash-verified

56};
57
58const writeText = (response: http.ServerResponse, status: number, body: string) => {
59 response.writeHead(status, { "content-type": "text/plain; charset=utf-8" });
60 response.end(body);
61};
62
63const readRequestBody = (
64 request: http.IncomingMessage,

Callers 1

handleMcpRequestFunction · 0.85

Calls 1

endMethod · 0.80

Tested by

no test coverage detected