From 4ea33f4c53a4193c90ef437c8a825715f51b4aae Mon Sep 17 00:00:00 2001 From: Alex Romano Date: Mon, 24 Feb 2025 12:01:13 -0800 Subject: [PATCH] add query params to mcp url examples this is necessary to connect multiple MCP servers and not have duplicate keys --- provider/modelcontextprotocol/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/provider/modelcontextprotocol/README.md b/provider/modelcontextprotocol/README.md index c132c1f4..0b0427b4 100644 --- a/provider/modelcontextprotocol/README.md +++ b/provider/modelcontextprotocol/README.md @@ -12,7 +12,7 @@ Currently, only MCP over stdio is supported (HTTP is not yet supported). ```json "openctx.providers": { // ...other providers... - "https://openctx.org/npm/@openctx/provider-modelcontextprotocol": { + "https://openctx.org/npm/@openctx/provider-modelcontextprotocol?everything": { "nodeCommand": "node", "mcp.provider.uri": "file:///path/to/servers/root/build/everything/index.js", } @@ -20,12 +20,14 @@ Currently, only MCP over stdio is supported (HTTP is not yet supported). ``` 1. Reload the VS Code window. You should see `servers/everything` in the `@`-mention dropdown. +You may use query params in the key url to differentiate between MCP providers. + To hook up to the Postgres MCP provider, use: ```json "openctx.providers": { // ...other providers... - "https://openctx.org/npm/@openctx/provider-modelcontextprotocol": { + "https://openctx.org/npm/@openctx/provider-modelcontextprotocol?postgres": { "nodeCommand": "node", "mcp.provider.uri": "file:///path/to/servers/root/build/postgres/index.js", "mcp.provider.args": [ @@ -52,4 +54,4 @@ The following MCP servers are available in the [modelcontextprotocol/servers](ht ## Creating your own MCP server -See the [MCP docs](https://modelcontextprotocol.io) for how to create your own MCP servers. \ No newline at end of file +See the [MCP docs](https://modelcontextprotocol.io) for how to create your own MCP servers.