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

Function writeText

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

Source from the content-addressed store, hash-verified

53};
54
55const writeText = (response: http.ServerResponse, status: number, body: string) => {
56 response.writeHead(status, { "content-type": "text/plain; charset=utf-8" });
57 response.end(body);
58};
59
60const isMcpPath = (url: string, path: string): boolean => {
61 const parsed = new URL(url, "http://executor.test");

Callers 1

handleMcpRequestFunction · 0.85

Calls 1

endMethod · 0.80

Tested by

no test coverage detected