Skip to content

Commit 416a87b

Browse files
committed
docs: Use arguments instead of environment variables for remote URL templating
Arguments make more sense for remote URL configuration since clients are configuring connection parameters, not running processes with environment variables. The valueHint 'tenant_host' maps to {tenant_host} in the URL.
1 parent 6d51ec0 commit 416a87b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/reference/server-json/generic-server-json.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,10 @@ This example demonstrates URL templating for remote servers, useful for multi-te
683683
{
684684
"type": "streamable-http",
685685
"url": "https://{tenant_host}/api/mcp",
686-
"environmentVariables": [
686+
"arguments": [
687687
{
688-
"name": "TENANT_HOST",
688+
"type": "positional",
689+
"valueHint": "tenant_host",
689690
"description": "Tenant-specific hostname (e.g., 'us-cell1.example.com')",
690691
"isRequired": true
691692
}
@@ -695,7 +696,7 @@ This example demonstrates URL templating for remote servers, useful for multi-te
695696
}
696697
```
697698

698-
Clients can set `TENANT_HOST=us-cell1.example.com` to connect to US Cell 1, or `TENANT_HOST=emea.example.com` to connect to the EMEA deployment. The `{tenant_host}` variable in the URL will be replaced with the environment variable value.
699+
Clients would configure the tenant host value, and the `{tenant_host}` variable in the URL gets replaced with the provided argument value to connect to the appropriate deployment (e.g., `us-cell1.example.com` or `emea.example.com`).
699700

700701
### Deprecated Server Example
701702

0 commit comments

Comments
 (0)