Skip to content

Conversation

badrinadhgupta
Copy link

Fixes root_path duplication issue where MCP endpoints showed /api/v1/api/v1/mcp/messages/ instead of /api/v1/mcp/messages/ when FastAPI apps use root_path. The fix removes base_path from messages_path construction since FastAPI automatically prepends root_path when serving endpoints.

… apps use root_path, the messages_path was incorrectly including the base_path, causing FastAPI to duplicate the root_path in the final URL. This fix removes the base_path from messages_path construction since FastAPI automatically prepends the root_path when serving endpoints.
@jstanden
Copy link

Same issue. #163 fixed this for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants