MCP工具服务器
一个自定义的MCP服务器实现,提供文件系统和命令执行工具。
快速入门
前置条件
- 安装 Python 3.10 或更高版本
- 安装 uv 工具
安装步骤
- 克隆本仓库或下载源代码。
- 执行
uv run mcp install
安装 MCP 服务器。 - 使用
which uv
获取uv
可执行文件的绝对路径。 - 在 Claude Desktop 中配置 MCP 服务器路径为上述
uv
路径。
示例配置:
{
"globalShortcut": "",
"mcpServers": {
"zbigniew-mcp": {
"command": "/path/to/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"/path/to/server.py"
]
}
}
}
启动连接
在 Claude Desktop 中使用标识符 zbigniew-mcp
连接到服务器。
支持的功能
- 执行 Shell 命令:
execute_shell_command
- 查看文件内容:
show_file
- 文件内搜索:
search_in_file
- 编辑文件:
edit_file
- 写入文件:
write_file