mcp-inspector-server
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"mcp-inspector-server": {
"args": [
"run",
"python",
"server.py"
],
"command": "uv",
"cwd": "/path/to/mcp-inspector-server"
}
}
}
服务介绍
mcp-inspector-server
MCP server: mcp-inspector-server
Quick Start
# Install dependencies
uv sync
# Start server
uv run python server.py
Configuration
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"mcp-inspector-server": {
"command": "uv",
"args": ["run", "python", "server.py"],
"cwd": "/path/to/mcp-inspector-server"
}
}
}
Project Structure
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
Development
Edit server.py to add your functionality:
@server.tool()
def my_tool(arg: str) -> str:
"""Tool description"""
return f"Result: {{arg}}"
Generated by MCP Factory