diff --git a/mcp-server/src/handlers/sse.ts b/mcp-server/src/handlers/sse.ts index 409d792..9da3477 100644 --- a/mcp-server/src/handlers/sse.ts +++ b/mcp-server/src/handlers/sse.ts @@ -88,7 +88,7 @@ export async function handleMessage(req: Request, res: Response) { body = JSON.stringify(req.body); } catch (error) { - res.status(400).json(error); + res.status(400).json({ error: "Bad request" }); logger.error('Bad POST request', error as Error, { sessionId, contentType: req.headers['content-type'] diff --git a/mcp-server/src/index.ts b/mcp-server/src/index.ts index d1ed039..e035268 100644 --- a/mcp-server/src/index.ts +++ b/mcp-server/src/index.ts @@ -229,7 +229,7 @@ app.get("/styles.css", staticFileRateLimit, (req, res) => { }); // Splash page -app.get("/", (req, res) => { +app.get("/", staticFileRateLimit, (req, res) => { const splashPath = path.join(__dirname, "static", "index.html"); res.sendFile(splashPath); });