RuntimeError: “Attempted to exit cancel scope” when using MCPToolset with ADK on Vertex AI Agent Engine #3770
priyayarrabolu-boop
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m running a custom ADK agent on Vertex AI Agent Engine using an
LlmAgentconfigured with aLocalMCPToolsetWrapper(MCPToolset)and a stdio MCP connection. As soon as the first tool call occurs, the agent crashes with the following error:This appears to happen during the MCP client setup/teardown. Due to this crash:
I’m trying to understand whether:
google-adk,mcp, andanyiothat avoids this errorAny guidance or suggestions would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions