WebSocket-MCP包装器
通过WebSocket封装MCP标准输入输出服务器,用于与kibitz项目集成使用
快速入门
前提条件
安装uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
配置
配置文件指定要运行的MCP服务器。默认配置包括:
wcgw
:用于系统操作和文件管理fetch
:用于发送HTTP请求
创建配置文件:
- 复制示例配置:
cp sample.config.json config.json
- 根据需要修改
config.json
- 使用
--config
参数指定配置文件
运行ws-mcp
基本用法(使用默认配置文件和端口):
uvx --refresh ws-mcp@latest
指定配置文件和端口:
uvx --refresh ws-mcp@latest --config path/to/config --port 10125
也可以使用--command
参数直接指定服务器命令:
uvx --refresh ws-mcp --command "uvx mcp-server-fetch" --port 3002
多个服务器同时运行:
uvx --refresh ws-mcp --command "uvx mcp-server-fetch" --command "npx -y @modelcontextprotocol/server-brave-search" --port 3004