anthropics / anthropics/claude-ai-mcp
claude.ai backend title-cases the URL path when saving a remote MCP server (/api/mcp → /Api/mcp), breaking case-sensitive endpoints
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 471
- Fork
- 76
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### MCP server URL or name
private nabu casa home assistent url postfix: /api/mcp
### How are you connecting to this server?
From a custom connector URL I entered manually
### Where does the issue occur?
When pressing the Connect button
### When did you last reproduce this?
2026-05-30 20:10 MEST
### Browser and OS
Firefox osx 150.0.3 (aarch64)
### Describe the issue
### Summary
When adding a custom remote MCP server, the claude.ai backend rewrites the first
path segment of the submitted URL from lowercase to title case. A URL submitted as
".../api/mcp" is stored as ".../Api/mcp". Because URL paths are case-sensitive, the
saved connector points at a non-existent endpoint and no tools are ever loaded.
### Where it occurs
POST https://claude.ai/api/organizations//mcp/remote_servers
### Steps to reproduce
1. Add a custom remote MCP server with URL: https:///api/mcp
2. Submit (URL verified lowercase in the request body).
3. Inspect the response / saved connector.
### Request body (sent)
{"name":"Home Assistant","url":"https:///api/mcp","custom_oauth_client_id":"https://claude.ai","id_jag_config":null,"attestations":[]}
### Response body (stored) — note the capitalized "Api"
{"uuid":"...","name":"Home Assistant","url":"https:///Api/mcp", ... }
### Expected
The URL path is stored exactly as submitted: ".../api/mcp".
### Actual
The path is stored as ".../Api/mcp" (first segment title-cased), so the connector
targets a non-existent path. The MCP server is never reached and no tools appear.
### Impact
Affects any MCP server whose endpoint path is lowercase (e.g. the Home Assistant
mcp_server integration at /api/mcp). There is no client-side workaround since the
rewrite happens server-side regardless of input casing.
### Environment
- claude.ai web connector
- Target: Home Assistant MCP server via Nabu Casa, endpoint /api/mcp
- Date reproduced: 2026-05-30
### Error details
```shell
When adding a custom remote MCP server, the claude.ai backend rewrites the first
path segment of the submitted URL from lowercase to title case. A URL submitted as
".../api/mcp" is stored as ".../Api/mcp". Because URL paths are case-sensitive, the
saved connector points at a non-existent endpoint and no tools are ever loaded.
#
```
### Expected behavior
The URL path is stored exactly as submitted: ".../api/mcp".
### Additional context
_No response_
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.