Skip to content

Commit 76c703f

Browse files
tadasantclaude
andcommitted
fix: Update Remote Server example to use matching namespace and URL
The Remote Server with URL Templating example was failing namespace validation because the URL domain didn't match the reverse-DNS namespace. Fixed by ensuring the namespace `io.modelcontextprotocol.anonymous/multi-tenant-server` matches the URL `https://anonymous.modelcontextprotocol.io/mcp/{tenant_id}`. This ensures the example passes integration tests where remote URLs must match the publisher domain extracted from the namespace. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 49ea119 commit 76c703f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,13 +674,13 @@ This example demonstrates URL templating for remote servers, useful for multi-te
674674

675675
```json
676676
{
677-
"name": "io.github.example/multi-tenant-server",
677+
"name": "io.modelcontextprotocol.anonymous/multi-tenant-server",
678678
"description": "MCP server with configurable remote endpoint",
679679
"version": "1.0.0",
680680
"remotes": [
681681
{
682682
"type": "streamable-http",
683-
"url": "https://api.example.github.io/mcp/{tenant_id}",
683+
"url": "https://anonymous.modelcontextprotocol.io/mcp/{tenant_id}",
684684
"variables": {
685685
"tenant_id": {
686686
"description": "Tenant identifier (e.g., 'us-cell1', 'emea-cell1')",
@@ -692,7 +692,7 @@ This example demonstrates URL templating for remote servers, useful for multi-te
692692
}
693693
```
694694

695-
Clients configure the tenant identifier, and the `{tenant_id}` variable in the URL gets replaced with the provided variable value to connect to the appropriate tenant endpoint (e.g., `https://api.example.github.io/mcp/us-cell1` or `https://api.example.github.io/mcp/emea-cell1`).
695+
Clients configure the tenant identifier, and the `{tenant_id}` variable in the URL gets replaced with the provided variable value to connect to the appropriate tenant endpoint (e.g., `https://anonymous.modelcontextprotocol.io/mcp/us-cell1` or `https://anonymous.modelcontextprotocol.io/mcp/emea-cell1`).
696696

697697
### Local Server with URL Templating
698698

0 commit comments

Comments
 (0)