From fff3ddf188c12756aec2604b95914e574bf1586a Mon Sep 17 00:00:00 2001 From: Sampson Date: Tue, 8 Jul 2025 19:25:43 -0500 Subject: [PATCH] now with even less invocation --- src/protocols/http.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/protocols/http.ts b/src/protocols/http.ts index 43879cd..1c0cdbe 100644 --- a/src/protocols/http.ts +++ b/src/protocols/http.ts @@ -66,21 +66,6 @@ export const start = () => { res.status(200).json({ message: 'pong' }); }); - app.all('/invocations', async (req: Request, res: Response) => { - try { - const transport = await getTransport(req, transports, req.headers['mcp-session-id']); - await transport.handleRequest(req, res, req.body); - } catch (error) { - if (!res.headersSent) { - res.status(500).json({ - id: null, - jsonrpc: '2.0', - error: { code: -32603, message: 'Internal server error' }, - }); - } - } - }); - app.listen(config.port, config.host, () => { console.error(`Server is running on http://${config.host}:${config.port}/mcp`); });