mcp_proxy
Forwards tool calls to any MCP stdio server, enabling remote execution by specifying server command, arguments, and tool name.
Instructions
MCP穿透工具 - 调用其他MCP服务器的工具。通过本MCP代理转发请求到目标MCP服务器并返回结果。支持任意MCP stdio服务器。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server_command": "<server_command>",
"server_args": "<server_args>",
"tool_name": "<tool_name>",
"tool_args": "<tool_args>"
},
"name": "mcp_proxy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | 超时时间(毫秒)。默认: 30000 | |
| tool_args | Yes | 传递给目标MCP工具的参数(JSON对象)。例如: {'path': 'D:\\test.txt'} | |
| tool_name | Yes | 要调用的目标MCP工具名称。例如: 'read_file', 'write_file' | |
| server_args | Yes | 启动目标MCP服务器的参数列表。例如: ['-y', '@modelcontextprotocol/server-filesystem', 'D:\\'] | |
| server_command | Yes | 启动目标MCP服务器的命令。例如: 'npx', 'node', 'python' |