From dad6fd68fac0cba918895e89231bef58063967a0 Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Fri, 6 Feb 2026 16:11:02 -0800 Subject: [PATCH] Clean up mcp --- apps/sim/app/api/mcp/copilot/route.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/apps/sim/app/api/mcp/copilot/route.ts b/apps/sim/app/api/mcp/copilot/route.ts index 04f21e84b..5ed6087d1 100644 --- a/apps/sim/app/api/mcp/copilot/route.ts +++ b/apps/sim/app/api/mcp/copilot/route.ts @@ -410,12 +410,10 @@ async function handleMcpRequestWithSdk( } export async function GET() { - return NextResponse.json({ - name: 'copilot-subagents', - version: '1.0.0', - protocolVersion: '2024-11-05', - capabilities: { tools: {} }, - }) + // Return 405 to signal that server-initiated SSE notifications are not + // supported. Without this, clients like mcp-remote will repeatedly + // reconnect trying to open an SSE stream, flooding the logs with GETs. + return new NextResponse(null, { status: 405 }) } export async function POST(request: NextRequest) {