anthropics / anthropics/claude-ai-mcp

Claude Web MCP connector strips trailing slashes from the configured server URL

未关闭
#234 2 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
没有语言数据
星标
471
派生
76
PR 合并指标
30 天内没有已合并 PR

描述

### What happened?

The Claude Web MCP connector silently strips trailing slashes from the configured server URL, rewriting /mcp/ to /mcp. Per RFC 3986 these are different resources, so any server mounted under a slash path — the default in Starlette / FastAPI / Flask Blueprints — 404s.

Image

Image

### What did you expect to happen?

Use the URL exactly as pasted (don't strip trailing `/`).

### Steps to reproduce

1. Add an MCP server URL ending in `/mcp/` (with trailing slash).
2. Observe the connector normalizes it to `/mcp` (no trailing slash).
3. The server returns 404 because the resource path changed (RFC 3986).

### Area

MCP Connector (adding/managing servers)

### MCP Server (if applicable)

Custom server (Starlette, FastMCP)

### Error messages or logs

```shell

```

### Additional context

_No response_

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。