We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4deecbc commit 7acf8dbCopy full SHA for 7acf8db
src/mcp.ts
@@ -586,6 +586,13 @@ export async function startMcpServer(
586
});
587
588
589
+ // ─── SSE endpoint — reject POST so clients fall back to SSE transport
590
+ app.post("/sse", (_req: Request, res: Response) => {
591
+ res.status(405).set("Allow", "GET").json({
592
+ error: "Method Not Allowed. Use GET for SSE connection.",
593
+ });
594
595
+
596
// ─── SSE endpoint — MCP client connects here ─────────────────────
597
app.get("/sse", async (req: Request, res: Response) => {
598
mcpLogger.info(`New SSE connection from ${req.ip}`);
0 commit comments