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

Function writeText

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleMcpRequestFunction · 0.85

Calls 1

endMethod · 0.80

Tested by

no test coverage detected