We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c910377 commit 95af65aCopy full SHA for 95af65a
src/index.ts
@@ -336,6 +336,14 @@ async function main() {
336
res.json({ status: "ok", message: "pong" });
337
});
338
339
+ // Catch-all 404 handler - must be after all other routes
340
+ app.use((_req: express.Request, res: express.Response) => {
341
+ res.status(404).json({
342
+ error: "not_found",
343
+ message: "Endpoint not found. Use /mcp for MCP protocol communication.",
344
+ });
345
346
+
347
const startServer = (port: number, maxAttempts = 10) => {
348
const httpServer = app.listen(port, () => {
349
actualPort = port;
0 commit comments