mcp-debug
by giantswarm·★ 37·综合分 46
一款调试MCP服务器的命令行工具,支持OAuth 2.1认证、交互式REPL和服务器模式。
developer-toolsai-llmsecurity
1
Forks
2
活跃 Issue
本月
最近提交
2 天前
收录于
概述
mcp-debug是一款基于Go语言的综合性工具,专为帮助开发者调试MCP服务器而设计。它提供交互式REPL用于探索可用工具、资源和提示,使测试服务器功能变得简单。该工具支持OAuth 2.1认证,具有自动发现、PKCE验证和动态客户端注册功能,满足最新的MCP规范要求。此外,它还可以作为MCP服务器运行,与Cursor等AI助手实现集成。
试试问 AI
装完之后,这里有 3 个你可以让 AI 做的事:
你:通过检查能力和测试工具调用来调试MCP服务器中的工具集成
你:使用详细的JSON-RPC日志测试MCP服务器通知和响应
你:使用自动发现和PKCE验证对OAuth保护的MCP服务器进行身份验证
什么时候选它
当你需要专门用于调试 MCP 服务器的工具,且需要全面的 OAuth 2.1 支持和详细的 JSON-RPC 消息日志记录时,选择 mcp-debug。
什么时候不要选它
如果你的 MCP 服务器使用非 HTTP 传输协议,不要选择 mcp-debug,因为它仅支持 `streamable-http` 协议的 MCP 服务器。
可对比工具
mcp-climcp-server-gomcp-server-rust
安装
安装
从源代码安装
go install github.com/giantswarm/mcp-debug@latest使用方法
# 连接到MCP服务器
./mcp-debug --endpoint http://localhost:8090/mcp
# 启动交互式REPL
./mcp-debug --repl
# 作为MCP服务器运行
./mcp-debug --mcp-server
# OAuth认证
./mcp-debug --oauth --endpoint https://mcp.example.com/mcpClaude Desktop集成
添加到您的claude_desktop_config.json文件中:
{
"mcpServers": {
"mcp-debug": {
"command": "mcp-debug",
"args": ["--mcp-server"]
}
}
}mcp-debug 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。