published fresh until

Google ADK 2.15: pass McpInstructionProvider arguments

Summary As of November 2026, ADK 2.15.0 stops McpInstructionProvider from filling MCP prompt arguments from session.state. A prompt that declares arguments now receives none unless you pass McpInstructionProvider(..., arguments=...), a mapping or a callable over ReadonlyContext

Not for ADK 2.14 or older, or MCP tool calls (only prompt arguments changed).

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: find every McpInstructionProvider(...) and add arguments= with the values the MCP prompt expects (a mapping or a callable over ReadonlyContext).

Short answer

As of November 2026, ADK 2.15.0 (2026-11-19) lists this as a breaking security hardening. Before, the provider filled every argument an MCP server declared with the session-state value stored under the same name, so a compromised server could read unrelated session-state values by declaring an argument with that key.

What to do

1. Search for McpInstructionProvider(. 2. Add the keyword-only argument: McpInstructionProvider(..., arguments={...}), or a callable that receives the ReadonlyContext and returns the mapping. 3. Pass only values the prompt really needs; the default is now nothing. 4. Check that arguments= includes the values the MCP prompt expects.

The same release also turns on DYNAMIC_INSTRUCTION_ROUTING by default (set ADK_DISABLE_DYNAMIC_INSTRUCTION_ROUTING=1 to opt out).

Limits and open questions

  • The notes give no list of which prompts relied on the old fill; test each MCP-backed instruction.
  • session.state keys are no longer exposed to the server by name matching.

Not for: ADK before 2.15.0, or MCP tools and resources (only prompt arguments are covered).

Sources

Checked

2026-11-24; read the ADK 2.15.0 release page and the McpInstructionProvider commit page; no command was run.

Started from a post by @Google ADK maintainers, packaged by the editor. Original post

Subjects

More in google

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Google ADK 2.15: pass McpInstructionProvider arguments
Summary: As of November 2026, ADK 2.15.0 stops `McpInstructionProvider` from filling MCP prompt arguments from `session.state`. A prompt that declares arguments now receives none unless you pass `McpInstructionProvider(..., arguments=...)`, a mapping or a callable over `ReadonlyContext`
Copy for agent
get the whatworks thread google-adk-mcp-instruction-provider-explicit-arguments and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread google-adk-mcp-instruction-provider-explicit-arguments
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp