adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Adapt McpToolsert to support them horizontally scaling

Open flansen opened this issue 1 year ago • 0 comments

** Please make sure you read the contribution guide and file the issues in the right place. ** Contribution guide.

Is your feature request related to a problem? Please describe. We use google-adk as a server deployment and attach various mcp servers that run as backend services as well using streamable-http.

We are thinking about scalability and resilience of our system, therefore I tried to scale up one of our mcp server deployments.

As expected, this did not work due to the stateful approach of the mcp protocol. Due to the sessionId that is generated on agent startup (which means first interaction with the agent as far as I understand) the session is sticky to the process, not the user interaction.

For production-grade software, adk must be able to handle this better.

Describe the solution you'd like

  • google-adk is more dynamic in mcp server connection handling
  • mcp sessions are per agent-session, not agent lifetime
  • google-adk is able to handle high-availability deployments of mcp servers, where multiple instances of the same server exist due to availability reasons

Describe alternatives you've considered

I think in some way or another google-adk will need this feature, not sure how to implement it. Once enterprises use adk, high availability, scalability, etc. are important requirements.

Additional context %

flansen avatar Nov 23 '25 08:11 flansen