Skip to content

feat(mcp): support ADK App in to_mcp_server - #8153

Open
hirdyanshpandey wants to merge 2 commits into
google:mainfrom
hirdyanshpandey:support-app-mcp-8147
Open

hirdyanshpandey wants to merge 2 commits into
google:mainfrom
hirdyanshpandey:support-app-mcp-8147

Conversation

@hirdyanshpandey

Copy link
Copy Markdown

Closes #8147.

What changed

  • Accept an ADK App in to_mcp_server() and pass it intact to the default Runner so app-level plugins and configuration are preserved.
  • Preserve bare-agent calls, explicit tool names, and caller-supplied runners. Use the app name for the default MCP tool name and the root description for metadata.

Testing

python -m pytest -q tests/unittests/tools/mcp_tool/test_agent_to_mcp.py — 25 passed. The new test invokes the MCP tool through an in-memory client session and verifies that the app plugin runs under the app name. No model credentials are used.

Prepared with OpenAI Codex assistance.

@google-cla

google-cla Bot commented Nov 14, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

Suport App in to_mcp_server

2 participants