feat: add A2A messaging support across CLI, MCP server, and SDK (v0.11.0)#44
Merged
feat: add A2A messaging support across CLI, MCP server, and SDK (v0.11.0)#44
Conversation
…1.0) Add send_a2a_message MCP tool for Claude Desktop to talk to A2A agents. Fix A2A protocol handler to send proper JSON-RPC 2.0 envelope for standard methods (message/send, tasks/get, etc.) while keeping backward compatibility for custom methods. Add CLI commands: message, call, list-tools for feature parity across all interfaces. Signed-off-by: Igor Racic <iracic82@gmail.com>
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
send_a2a_messageMCP tool for talking to A2A agents from Claude Desktopmessage,call,list-tools) for feature parity across all interfacesChanges
MCP Server (
src/dns_aid/mcp/server.py)send_a2a_messagetool — sends A2A JSON-RPCmessage/send, extracts text from response artifacts, routes through SDK for telemetry when availableSDK A2A Protocol Handler (
src/dns_aid/sdk/protocols/a2a.py)message/send,message/stream,tasks/get,tasks/cancel, etc.) now wrapped in proper JSON-RPC 2.0 envelope withjsonrpc,id, andparamsCLI (
src/dns_aid/cli/main.py)dns-aid message <endpoint> <text>— send a message to an A2A agentdns-aid call <endpoint> <tool-name>— call a tool on a remote MCP agentdns-aid list-tools <endpoint>— list tools on a remote MCP agentDocs
README.md— added CLI agent communication section, updated MCP tools table, added A2A demo flowdocs/api-reference.md— added protocol handlers section, A2A invoke exampleVersion Bump
pyproject.toml,__init__.py,CITATION.cff,CHANGELOG.md→ 0.11.0Coverage Matrix (after this PR)
call_agent_toolsend_a2a_messagelist_agent_toolsdns-aid calldns-aid messagedns-aid list-toolsinvoke()invoke()invoke(method="tools/list")Test plan
dns-aid message https://security-analyzer.ai.infoblox.com "Hello"works