Skip to content

AgentConfig - auth passthrough between agents. #2740

@johnkrzywanek

Description

@johnkrzywanek

Hi, hope that it's the right place to ask questions about this, but it's not clear from the Agent Config docs.

My goal is to have a root_agent and a few sub_agents, where those sub_agents will be connected to MCP servers ( ideally via ADK's included MCPToolkit).

An external client will send a prompt to the root_agent along with the Authorization: Bearer token in a header. I'd like for this auth token to be passed to sub_agents and then also passed through to the MCP server, which will use it to authorize to an upstream API.

Is something like this possible with the current Agent Config implementation? If so, how exactly should I configure this?

Metadata

Metadata

Assignees

Labels

mcp[Component] Issues about MCP support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions