Protocol-Driven Development in Practice: Enterprise Adoption of MCP and A2A

    This article explains why enterprises are moving from model-centric AI development to protocol-driven development, and how MCP-style and A2A-style protocols address the limits of ad hoc integration. It covers the host, client, and server roles in MCP, capability design across tools, resources, and prompts, transport choices such as stdio, SSE, and Streamable HTTP, and the engineering requirements for production. It then describes how A2A enables capability discovery and trusted collaboration between agents, how the two protocol layers complement each other, and a practical rollout strategy that starts with read-only, low-risk scenarios.

    1. Why Enterprises Need Protocol-Driven Development

    Over the past two years, the mainstream approach to building AI applications in enterprises has been to orchestrate prompts and business logic around a single model. This works well in demos, but it quickly runs into three bottlenecks in production.

    The first is the capability boundary of the model. A model cannot read internal enterprise databases, call a ticketing system, or sense real-time business state on its own. Every external capability has to be adapted through hard-coded application logic, which produces a large amount of glue code that is repetitive and cannot be reused.

    The second is the system collaboration bottleneck. When a workflow requires multiple roles, such as retrieval, analysis, execution, and review, agents that communicate through free-form text cause context to balloon rapidly. Errors are amplified at each step, and the chain becomes impossible to trace when something goes wrong.

    The third is the governance gap. Basic enterprise requirements such as permissions, auditing, rate limiting, and version rollback have nowhere to live in a free-form integration model.

    The idea behind protocol-driven development is to standardize connections: models interact with tools through a unified protocol (MCP-style protocols), and agents collaborate with each other through a unified protocol (A2A-style protocols). The value is not the protocols themselves, but turning integration from point-to-point custom work into infrastructure that is registrable, discoverable, and governable. In engineering practice on cloud platforms such as Baidu AI Cloud, this standardized connection layer is typically deployed alongside common capabilities like container platforms, logging services, and monitoring and alerting.

    2. MCP: Connecting Models to External Resources

    2.1 Roles and Responsibility Boundaries

    The core design of MCP-style protocols separates three roles:

    • Host: the application that handles user interaction and context management, and is responsible for permission decisions and lifecycle control.
    • Client: created by the host, maintaining a one-to-one connection with a single server, and responsible for protocol negotiation and message routing.
    • Server: packages a category of external capability (database, files, business APIs) into a standardized set of capabilities.
    • Local trusted data sources: data and execution environments within the user’s control, serving as the anchor of the security boundary.

    The one-to-one connection constraint is critical. It prevents a single client from mixing state across multiple servers, making fault isolation and least-privilege access default properties.

    2.2 Capability Abstraction: Tools, Resources, and Prompts

    Servers typically expose three categories of capability: tools (callable actions with side effects), resources (addressable read-only data), and prompts (reusable instruction templates). The design principle is “fewer, more precise tools”: one tool maps to one complete business intent, parameters are constrained with strong types, and SQL fragments or arbitrary commands are never passed through to the model.

    Illustrative server structure:

    1. # Pseudocode: minimal form of capability registration
    2. server = MCPServer(name="biz-data")
    3. @server.tool(
    4. name="query_order_status",
    5. desc="Query order status by order ID, read-only",
    6. schema={"order_id": "string"}
    7. )
    8. def query_order_status(order_id: str):
    9. # validate parameters -> check permissions -> query -> structured response
    10. return {"status": "shipped", "eta": "2026-07-03"}

    2.3 Choosing a Transport

    • Stdio: for local, same-machine scenarios. Low latency and no port exposure, suitable for desktop-side use and local debugging.
    • SSE (server-sent events): suitable for scenarios where the server needs to push long-running tasks proactively.
    • Streamable HTTP: designed for remote and multi-tenant deployments, compatible with proxies and gateways, and a common choice in production.

    The decision is based not on performance preference but on deployment shape: whether it crosses networks, whether gateway authentication is needed, and whether long-lived push connections are required.

    2.4 Engineering Requirements

    Production adoption requires four things: unified error semantics (distinguishing parameter errors, permission denials, and upstream timeouts), idempotency constraints for timeouts and retries, capability versioning and canary rollout, and end-to-end observability (every tool call traceable to a session and a caller). For wrapping database capabilities, the correct approach is read-only first, row-level permission pushdown, and result set truncation and masking, rather than handing a connection string to the model.

    3. A2A: Capability Discovery and Trusted Collaboration Between Agents

    A2A-style protocols solve how agents find each other and entrust tasks to one another. Key mechanisms include capability declaration (publishing what an agent can do through structured descriptions), task lifecycle (submitted, in progress, needs more input, completed, failed), separation of messages and artifacts (large results passed by reference rather than stuffed into the conversation), and trusted communication based on identity and credentials.

    Compared with free-form text collaboration, protocol-based collaboration brings three direct benefits: controlled context, attributable failures, and permissions that can be passed along without being amplified. In engineering terms, each agent should keep a single responsibility, with a maximum delegation depth and a global timeout to prevent recursive delegation from causing an avalanche.

    4. How They Work Together and Where They Apply

    MCP and A2A are complementary layers: MCP connects downward to resources, while A2A connects roles horizontally. Combined, they let enterprises build a “digital workforce” in which every position has an independent identity, independent permissions, and an independently auditable capability list.

    Typical scenarios include real-time dispatch in intelligent transportation, multi-party coordination in emergency response, equipment diagnostics in the industrial internet, content understanding in streaming media recommendations, and cross-department data services in smart cities. What they share is many participants, sensitive data, and strict time requirements, which is exactly where protocol-based governance delivers the most value.

    Recommended rollout: start with a read-only, low-risk, high-repetition scenario, get the permission and audit model working, then gradually open write operations and cross-domain delegation.