Skip to content

Commit f56e789

Browse files
authored
add query params to mcp url examples (#224)
this is necessary to connect multiple MCP servers and not have duplicate keys
1 parent 2fe038e commit f56e789

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

provider/modelcontextprotocol/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,22 @@ Currently, only MCP over stdio is supported (HTTP is not yet supported).
1212
```json
1313
"openctx.providers": {
1414
// ...other providers...
15-
"https://openctx.org/npm/@openctx/provider-modelcontextprotocol": {
15+
"https://openctx.org/npm/@openctx/provider-modelcontextprotocol?everything": {
1616
"nodeCommand": "node",
1717
"mcp.provider.uri": "file:///path/to/servers/root/build/everything/index.js",
1818
}
1919
}
2020
```
2121
1. Reload the VS Code window. You should see `servers/everything` in the `@`-mention dropdown.
2222

23+
You may use query params in the key url to differentiate between MCP providers.
24+
2325
To hook up to the Postgres MCP provider, use:
2426

2527
```json
2628
"openctx.providers": {
2729
// ...other providers...
28-
"https://openctx.org/npm/@openctx/provider-modelcontextprotocol": {
30+
"https://openctx.org/npm/@openctx/provider-modelcontextprotocol?postgres": {
2931
"nodeCommand": "node",
3032
"mcp.provider.uri": "file:///path/to/servers/root/build/postgres/index.js",
3133
"mcp.provider.args": [
@@ -52,4 +54,4 @@ The following MCP servers are available in the [modelcontextprotocol/servers](ht
5254

5355
## Creating your own MCP server
5456

55-
See the [MCP docs](https://modelcontextprotocol.io) for how to create your own MCP servers.
57+
See the [MCP docs](https://modelcontextprotocol.io) for how to create your own MCP servers.

0 commit comments

Comments
 (0)