[BUG] MCP Fails to connect
Resolved 💬 4 comments Opened Jun 11, 2025 by sameehj Closed Jun 19, 2025
Environment
- Platform:
- [ ] Other: Claude CLI
- Claude CLI version: 1.0.17 (Claude Code)
- Operating System: 14.3.1 (23D60)
- Terminal: Cursor Terminal
Bug Description
I try to add the mcp server [0] which is mainly running [1] for mcp
claude mcp add -t sse ebpf http://localhost:8080/mcp
Steps to Reproduce
- clone ebpf-mcp & run make
- run ebpf-mcp-server (can be ran locally / on vm)
- attach to claude mcp using the command above
- run claude --debug
[0] https://github.com/sameehj/ebpf-mcp
[1] https://github.com/mark3labs/mcp-go
Expected Behavior
MCP connected successfully
Actual Behavior
※ Tip: Send messages to Claude while it works to steer Claude in real-time
[DEBUG] MCP server "ebpf": SSE Connection error: {"url":"http://localhost:8080/mcp","error":"SSE error: Non-200 status code (202)","stack":"Error: SSE error: Non-200 status code (202)\n at _eventSource.onerror (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1364:13931)\n at wm.ro (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1364:4946)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1364:1799\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)"}
[ERROR] MCP server "ebpf" Error: SSE error: Non-200 status code (202)
Additional Context
<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗