docs(design): Add design proposal for Unified Remote Agent Abstraction#537
Open
yonib05 wants to merge 1 commit intostrands-agents:mainfrom
Open
docs(design): Add design proposal for Unified Remote Agent Abstraction#537yonib05 wants to merge 1 commit intostrands-agents:mainfrom
yonib05 wants to merge 1 commit intostrands-agents:mainfrom
Conversation
Propose MCPAgent implementing AgentBase protocol, following the pattern established by A2AAgent. Unifies MCP, A2A, and multi-agent patterns under a single programming model where protocol is a transport choice, not a different API surface.
Contributor
Documentation Deployment CompleteYour documentation preview has been successfully deployed! Preview URL: https://d3ehv1nix5p99z.cloudfront.net/pr-537/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Design proposal for
MCPAgent— a new client-side agent class that implements the existingAgentBaseprotocol, following the same patternA2AAgentalready established. This unifies how developers interact with remote agents regardless of the underlying protocol (MCP or A2A).Motivation
The MCP 2025-11-25 spec added sampling, tasks, and elicitation — MCP servers now behave more like agents than tool providers. Meanwhile, Strands already has
A2AAgentproving that remote agents can implementAgentBaseand plug into multi-agent patterns (Swarm, Graph, Agents as Tools) seamlessly.The gap: there's no equivalent for MCP. Using a remote MCP agent looks completely different from using an A2A agent or a native Strands agent, even though conceptually it's the same thing — talking to an agent.
What this proposes
MCPAgentimplementingAgentBase, mapping MCP concepts (sampling, tasks, tools, elicitation) to__call__,invoke_async, andstream_asyncA2AAgent— explicit protocol choice at construction, unified interface after thatAgentBaseOpen questions for reviewers
MCPAgentfor a tool-only server still satisfyAgentBase, or raise at construction time?MCPAgentandA2AAgentstreaming events converge on a shared shape, or stay protocol-specific?Willingness to implement
Yes