This PR adds support for running multiple MCP (STDIO) servers and serving them up via a single mcp-proxy instance, each with a named path in the URL. Example usage: ``` mcp-proxy --port 8080 --named-server fetch 'uvx mcp-server-fetch' --named-server github 'npx -y @modelcontextprotocol/server-github' ``` Would serve: - `http://localhost:8080/servers/fetch` - `http://localhost:8080/servers/github` I've also added the ability to provide a standard mcp client config file with accompanying tests. Please feel free to make any changes as you see fit, or reject the PR if it does not align with your goals. Thank you, --------- Co-authored-by: Magnus Tidemann <magnustidemann@gmail.com> Co-authored-by: Sergey Parfenyuk <sergey.parfenyuk@gmail.com>
24 lines
406 B
JSON
24 lines
406 B
JSON
{
|
|
"mcpServers": {
|
|
"fetch": {
|
|
"enabled": true,
|
|
"timeout": 60,
|
|
"command": "uvx",
|
|
"args": [
|
|
"mcp-server-fetch"
|
|
],
|
|
"transportType": "stdio"
|
|
},
|
|
"github": {
|
|
"enabled": false,
|
|
"timeout": 60,
|
|
"command": "npx",
|
|
"args": [
|
|
"-y",
|
|
"@modelcontextprotocol/server-github"
|
|
],
|
|
"transportType": "stdio"
|
|
}
|
|
}
|
|
}
|