使用说明
mcp检查器服务器
MCP服务器:MCP检查器服务器
快速开始
# Install dependencies
uv sync
# Start server
uv run python server.py
配置
添加到您的Claude桌面配置(claude_desktop_config.json):
{
"mcpServers": {
"mcp-inspector-server": {
"command": "uv",
"args": ["run", "python", "server.py"],
"cwd": "/path/to/mcp-inspector-server"
}
}
}
项目结构
mcp-inspector-server/
├── config.yaml # Server configuration
├── pyproject.toml # Python project configuration
├── server.py # Server entry file
├── README.md # Documentation
├── CHANGELOG.md # Version change log
├── .env # Environment variables configuration
├── .gitignore # Git ignore file
├── tools/ # Tools implementation directory
├── resources/ # Resources implementation directory
└── prompts/ # Prompt template directory
发展
编辑 server.py 添加您的功能:
@server.tool()
def my_tool(arg: str) -> str:
"""Tool description"""
return f"Result: {{arg}}"
产生于 MCP工厂
