使用说明
🌱 mcp起源
一个MCP服务器来管理它们。
特性
- 通过单个MCP代理连接到多个MCP服务器
- 代理工具使用一致的命名方案调用相应的服务器
- 将服务器配置存储在简单的JSON配置文件中
- 从连接的MCP服务器自动发现和注册工具
全部
- []使用外部MCP注册表服务进行查找
- []支持代理MCP服务器的SSE
用法
在stdio上为MCP使用以下命令和参数:
npx binrun github.com/dstotijn/mcp-origin@latest
可用工具
mcp origin提供以下内置工具:
search_mcp_servers
搜索可以安装的可用MCP服务器。
[!重要]此工具尚未实现。
install_mcp_server
安装并连接到MCP服务器。此工具需要以下内容 参数:
{
"id": "foobar", // Unique identifier for the MCP server
"type": "stdio", // Connection type (currently only "stdio" is supported)
"command": "npx", // Command to execute to start the MCP server
"args": ["-y", "@acme/mcp-foobar", ...] // Arguments to pass to the command
}
uninstall_mcp_server
从配置中删除MCP服务器并断开连接。此工具 需要以下参数:
{
"id": "foobar" // The ID of the server to uninstall
}
refresh_tools
刷新已连接MCP服务器的工具列表。此工具接受 可选参数:
{
"server_id": "foobar" // Optional: Only refresh tools for this specific server
}
代理工具
来自连接的MCP服务器的所有工具都可以使用前缀 serverID.,
哪里 serverID 是MCP服务器的唯一标识符。
例如,如果您安装了ID为的服务器 foobar 这提供了一个
工具已调用 search,该工具将被列出,并可按以下方式调用
foobar.search.
命令行选项
--http:HTTP侦听地址(默认值:“:8080”)--stdio:启用stdio传输(默认值:true)--sse:启用SSE传输(默认值:false)--config:配置文件的路径(默认:“~/.config/mcp-origin/mcp_origing_json”)
许可证
© 2025 大卫 斯托廷