Fix MCP server request handling

Pass Hono Context to handleRequest instead of raw Request object, fixing 500 error
This commit is contained in:
jjbrunton committed 2026-01-10 19:44:49 +00:00
1 parent 4d32226541
commit 98621ca3fa
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ app.all('/mcp', async (c) => {
c.header('Cache-Control', 'no-cache');
c.header('Connection', 'keep-alive');
return mcpServer.handleRequest(c.req.raw);
return mcpServer.handleRequest(c);
});
const port = Number(process.env.PORT) || 3000;