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: When using streamable_http, the mcp-url must end with a slash. On cloud servers we get the following error (#206)
## 📝 Summary of Commit
Fix README: Add trailing slashes to `streamable_http` URLs to prevent
307 redirects.
When using the `streamable_http` adapter, the `mcp-url` must end with a
trailing slash (`/`).
Without it, requests to cloud-based deployments can return a `307
Temporary Redirect` error.
This PR updates the `README.md` to reflect the correct usage by adding
trailing slashes to the `mcp-url` values in all `streamable_http`
examples.
## ❗ Before
```bash
--mcp-url http://localhost:8000/mcp
```
## ✅ After
```bash
--mcp-url http://localhost:8000/mcp/
```
## 📚 Why this matters
In production environments (e.g., behind load balancers or cloud
services),
the missing slash causes an unnecessary redirect which can break `POST`
requests.
Adding the slash avoids this issue.
## ✅ Tested
Verified in a cloud environment where the redirect caused failed
requests when the trailing slash was missing. (eg: `Digitalocean`) I
created two app-platform : `langchain-mcp-client` and
`fastmcp-mcp-server`
---
Let me know if you'd like me to update other docs or examples as well.
0 commit comments