arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.13417cs.SEcs.AIcs.MA
收藏

连接协议与生产:基于模型上下文协议部署AI智能体的设计模式

Bridging Protocol and Production: Design Patterns for Deploying AI Agents with Model Context Protocol

Data Engineering for Multimodal AI (O’Reilly)(多模态AI数据工程(O’Reilly))

Vasundra Srinivasan

AI总结:

针对MCP协议缺乏生产级AI智能体工具操作规范的缺口,本文基于企业部署实践提出CABP、ATBA、SERF三项机制及生产就绪检查清单,补全协议缺失的基础设施能力。

摘要:

截至2026年初,模型上下文协议(Model Context Protocol,MCP)已实现AI智能体发现与调用外部工具流程的标准化,其活跃服务器数量超1万台,SDK月下载量达9700万次。但MCP尚未对智能体在生产规模下安全操作上述工具的流程作出标准化规范,目前仍缺失三项协议级原语:身份传播、自适应工具预算、结构化错误语义。本文通过某AI智能体平台对接某头部云服务商MCP服务器(客户名称已隐去)的企业部署实践经验识别出上述缺口,提出三项填补机制:一是上下文感知代理协议(Context-Aware Broker Protocol,CABP),通过六阶段代理管道扩展JSON-RPC,实现身份范围的请求路由;二是自适应超时预算分配(Adaptive Timeout Budget Allocation,ATBA),将顺序工具调用建模为异构延迟分布下的预算分配问题;三是结构化错误恢复框架(Structured Error Recovery Framework,SERF),提供机器可读的故障语义,支持智能体确定性自我纠错。本文将生产故障模式划分为服务器契约、用户上下文、超时、错误、可观测性五个设计维度,记录具体故障场景并给出生产就绪检查清单。三项算法均形式化为可验证假设,配套可复现实验方法。实地观测表明,尽管MCP提供了坚实的协议基础,但可靠的智能体工具集成需要该规范暂未覆盖的基础设施级机制。

英文摘要:

The Model Context Protocol (MCP) standardizes how AI agents discover and invoke external tools, with over 10,000 active servers and 97 million monthly SDK downloads as of early 2026. Yet MCP does not yet standardize how agents safely operate those tools at production scale. Three protocol-level primitives remain missing: identity propagation, adaptive tool budgeting, and structured error semantics. This paper identifies these gaps through field lessons from an enterprise deployment of an AI agent platform integrated with a major cloud provider's MCP servers (client name redacted). We propose three mechanisms to fill them: (1) the Context-Aware Broker Protocol (CABP), which extends JSON-RPC with identity-scoped request routing via a six-stage broker pipeline; (2) Adaptive Timeout Budget Allocation (ATBA), which frames sequential tool invocation as a budget allocation problem over heterogeneous latency distributions; and (3) the Structured Error Recovery Framework (SERF), which provides machine-readable failure semantics that enable deterministic agent self-correction. We organize production failure modes into five design dimensions (server contracts, user context, timeouts, errors, and observability), document concrete failure vignettes, and present a production readiness checklist. All three algorithms are formalized as testable hypotheses with reproducible experimental methodology. Field observations demonstrate that while MCP provides a solid protocol foundation, reliable agent tool integration requires infrastructure-level mechanisms that the specification does not yet address.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑