[BUG] MCP Fails to connect
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
@sameehj does this server work with other MCP clients (like the MCP inspector)?
It seems that the issue was caused by the mcp-go implementation I was using and is now fixed.
Thank you!
For the record, the issue was fixed here: https://github.com/mark3labs/mcp-go/pull/379
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.