(response: http.ServerResponse, status: number, body: string)
| 49 | }; |
| 50 | |
| 51 | const 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 | |
| 56 | const isMcpPath = (url: string, path: string): boolean => { |
| 57 | const parsed = new URL(url, "http://executor.test"); |