A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model
Hi @Girija Sravya Peesapati (US)
One thing worth checking first is the approval setting on Agent 2's GitHub MCP tool. In Foundry, require_approval defaults to always, so every MCP call returns an mcp_approval_request that the caller has to answer. When you test Agent 2 directly you can approve it, but when Agent 1 delegates over A2A there's no one to send that approval back, and the run can end in a generic error.
Here's what I'd try:
- On Agent 2, set the GitHub MCP tool to
require_approval: {"never": ["<tool_name>", ...]}for the read-only tools it needs during delegated requests (orneverwhile you test). - Keep each GitHub MCP call small, like one repo or one path at a time. Non-streaming MCP calls time out after 100 seconds, and passing a long conversation context through A2A makes slow calls more likely.
- Run the same delegated prompt a few times. If it still fails sometimes, open an Azure support request with the request IDs from the error, since only Microsoft can trace those runs.
Does it fail on every delegated request that needs GitHub MCP, or only on the bigger ones, like a full repo analysis?
If this resolved your issue, please consider accepting it as the answer. If the error keeps showing up, let me know and I'll be happy to keep helping.
Reference: