(response: http.ServerResponse, status: number, body: string)
| 53 | }; |
| 54 | |
| 55 | const 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 | |
| 60 | const isMcpPath = (url: string, path: string): boolean => { |
| 61 | const parsed = new URL(url, "http://executor.test"); |