Agent Communication in SAP — MCP vs A2A, Hop by Hop
As of 2026-11-17
What is Agent Communication in SAP?
"A2A via MCP" is a category error: MCP connects an agent to tools and data, A2A connects an agent to another agent. This page gives the hop-by-hop rule for SAP architectures — which protocol on which link, and why most Joule designs use both. Protocol detail lives in MCP and A2A.
MCP is not A2A
The phrase "agent-to-agent communication via MCP" is a common framing. That framing mixes two different protocols. The Model Context Protocol (MCP) is a client-server protocol: a host application's client calls tools, reads resources and uses prompts exposed by a server. The Agent2Agent protocol (A2A) is a peer protocol: one agent delegates a task to another, opaque agent and follows that task through a lifecycle. You can wrap an agent behind an MCP tool, and SAP designs sometimes do, but then the calling side sees a function, not a partner — no task states, no negotiation, no asynchronous hand-back. The distinction decides security design, audit trail and failure handling, so it is worth getting exactly right.
Why it matters
- MCP and A2A answer different questions — tools versus peers — and the choice changes the security model, the audit trail and how long-running work is handled.
- SAP's own pro-code pattern (CAP @cap-js/agents) uses MCP inward for tools and A2A outward for other agents: the clearest reference design for the boundary.
- The third-party agent entry to Joule is a governed agent gateway, generally available since TechEd 2026, so architecture diagrams drawn now must label every agent hop correctly and confirm activation on the tenant.
Key points
- MCP = agent ↔ tools/resources/prompts (client-server); A2A = agent ↔ agent (peers with task lifecycle). "A2A via MCP" conflates the two.
- A2A tasks carry states (submitted, working, input-required, auth-required, completed, failed, canceled, rejected); MCP tool calls return results, with long-running work in an optional Tasks extension.
- Discovery differs: MCP server/discover on a known endpoint vs A2A Agent Card at /.well-known/agent-card.json.
- Hop rule: human→agent = UI; agent→SAP data/action = MCP; agent→foreign agent = A2A.
- CAP @cap-js/agents generates MCP tools from CDS entities/actions and serves the agent over A2A; @agent.hitl maps to the A2A input-required state.
- Wrapping an agent as an MCP tool is acceptable only for short, synchronous, function-like work.
- Both asset types belong in SAP AI Agent Hub; both fall under SAP API Policy §2.2.2 when SAP APIs are reached agentically.
- MCP hop governance: SAP Enterprise AI Gateway — the MCP gateway and developer hub on SAP Integration Suite — GA planned for Q1 2027; until then, use the SAP-endorsed pathways listed in SAP's API Policy clarifications.
Terms used on this page
- MCP (Model Context Protocol)
- Client-server protocol through which an AI host calls tools, reads resources and uses prompts exposed by a server; spec revision 2026-07-28.
- A2A (Agent2Agent protocol)
- Peer protocol under the Linux Foundation for one agent to discover and delegate tasks to another agent; version 1.0 is the first stable specification.
- Agent Card
- JSON metadata document describing an A2A agent's identity, skills, endpoint and authentication; can be signed for authenticity.
- Task (A2A)
- Unit of delegated work with a lifecycle of states, followed by polling, streaming or push notifications.
- Hop labelling
- Design practice of marking each link in an agent architecture as UI, MCP or A2A before choosing security controls.
- @agent.hitl
- CAP annotation that forces human approval before an agent executes an action, surfaced as the A2A input-required state.
Sources
- A2A Protocol — Specification (version 1.0)
- A2A Protocol — Agent Discovery (/.well-known/agent-card.json)
- Model Context Protocol — specification changelog 2026-07-28
- CAP documentation — CAP-level Agents (@cap-js/agents)
- SAP News — The Future of the Enterprise Is Autonomous (Sapphire, May 2026)
- SAP Community — Build a Pro-Code A2A Agent for SAP S/4HANA Cloud with the CAP Agent Plugin (Aug 2026)
- ERP Today — What Customers Need to Know About SAP's API Policy (Sep 2026) — cited for: Agent Communication in SAP
- SAP Help — SAP AI Agent Hub
- SAP News — Autonomous enterprise: business transformation management solutions and SAP AI agents at work at scale (2026-09)
- Model Context Protocol — Authorization specification, 2026-07-28 revision
- SAP Help Portal — MCP Server for SAP BTP administration (connect and authenticate)
- SAP Community — Principal propagation for MCP servers: SAP Integration Suite to SAP S/4HANA (SAP-authored)
- SAP News Center - Joule Work and the SAP Business AI Platform (8 Oct 2026)
- SAP Community - Joule Studio unlocked: From context to control - Joule Studio and SAP BTP for governed AI agents (Oct 6, 2026)
- SAP TechEd 2026 (Berlin & virtual, 27–29 Oct 2026) — session XP268: Govern the agent economy: Secure A2A using SAP’s agent gateway
- SAP TechEd 2026 (Berlin & virtual, 27–29 Oct 2026) — session XP827: Agent interoperability road map and the future of enterprise AI
- Linux Foundation — Linux Foundation Announces the Formation of the Agentic AI Foundation (2025-12-09)
- SAP News — SAP TechEd 2026 press release (27 Oct 2026): governed agent gateway, SAP Enterprise AI Gateway
- SAP News — SAP TechEd keynote coverage (28 Oct 2026): agent gateway
- SAP Architecture Center — A2A and MCP reference architecture (26 Oct 2026)
Full card with the Consultant plan — €19.90/month. What the full card adds: the full decision framework · the SAP vs Snowflake / Databricks / Fabric comparison · the common pitfalls and their fix · the cheat sheet · the architecture schemas · the code blocks · the facts worth quoting.
Related guides
These guides cite this page as a source.
Open missions
50 live roles and contracts in SAP AI & Joule right now — see the SAP AI & Joule missions · freelance SAP contracts.