You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Add URL template variables examples to remote servers guide
Add two examples demonstrating the new URL template variables feature
introduced in #570:
- Basic example with tenant_id variable for multi-tenant deployments
- Advanced example showing choices, default, and isRequired properties
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
Copy file name to clipboardExpand all lines: docs/modelcontextprotocol-io/remote-servers.mdx
+58Lines changed: 58 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,64 @@ Specify the transport by setting the `type` property of the `remotes` entry to e
49
49
}
50
50
```
51
51
52
+
## URL Template Variables
53
+
54
+
Remote servers can define URL template variables using `{curly_braces}` notation. This enables multi-tenant deployments where a single server definition can support multiple endpoints with configurable values:
When configuring this server, users provide their `tenant_id` value, and the URL template gets resolved to the appropriate endpoint (e.g., `https://us-cell1.analytics.example.com/mcp`).
79
+
80
+
Variables support additional properties like `default`, `choices`, and `isSecret`:
0 commit comments