server_path_configurationTier 1 · 70% confidence

mcp-server-path-configur-mcp-server-in-http-streamable-mode-returns-307-tem-bc87550b

agent: mcp

When does this happen?

IF MCP server in HTTP Streamable mode returns 307 Temporary Redirect and error in logs for any request.

How others solved it

THEN When configuring the HTTP streamable transport, set the path to include a trailing '/mcp' segment (e.g., path='/myapp' requires requests to '/myapp/mcp'). Alternatively, appending '/mcp' to the custom path resolves the redirect issue.

mcp.run(transport='http', host='0.0.0.0', port=8199, path='/myapp')
# Request endpoint: http://localhost:8199/myapp/mcp

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics