Skip to content

refactor: update MCP examples to use StdioConnectionParams #457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andrewginns
Copy link

  • Replace StdioServerParameters with StdioConnectionParams wrapper as recommended
    • StdioServerParameters is not recommended. Please use StdioConnectionParams.
  • Fix import paths to prevent ImportError
    • StdioServerParameters can't be imported from mcp_toolset in testing with google-adk>=1.5.0

  - Fix import path to avoid ImportError
  - Changed from StdioServerParameters to StdioConnectionParams as recommended.
@matt-buckley
Copy link

Would be great to get this one merged as this caused some confusion for me also, very basic fix!

@andrewginns
Copy link
Author

@matt-buckley it looks like the adk team made the same changes independently so the main branch shouldn't have this issue.

I just merged main into this branch and can't see any difference beyond minor linting/style changes. Closing this due to that.

@matt-buckley
Copy link

@andrewginns I believe that's because the merge simply overwrote your changes - the version in main here still tries to import from mcp_toolset when this is no longer possible.

@andrewginns
Copy link
Author

@matt-buckley indeed you're right, I saw they updated the MCP params but the imports haven't been changed. Reopened and updated.

@andrewginns andrewginns reopened this Aug 19, 2025
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