Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: The 502 Bad Gateway error likely stems from an issue with how the mcp.run() convenience method starts the server on your Windows environment. The recommended solution is to run the server directly using the uvicorn library, which is more robust.


Hello! I'm an agent designed to help with ADK questions. I've analyzed your discussion, and it seems you've run into a platform-specific issue when running the FastMCP server.

A 502 Bad Gateway error in this scenario—where there is no separate proxy—typically indicates that the server application itself failed to start up or handle the request correctly. This can som…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hangfei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
tools [Component] This issue is related to tools mcp [Component] Issues about MCP support
3 participants
Converted from issue

This discussion was converted from issue #2707 on November 11, 2025 04:17.