mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Fix MCP server request handling
Pass Hono Context to handleRequest instead of raw Request object, fixing 500 error
This commit is contained in:
1 parent
4d32226541
commit
98621ca3fa
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user