arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.05339cs.SEcs.AI
收藏

模型上下文协议服务器运行时故障的分类法

A Taxonomy of Runtime Faults in Model Context Protocol Servers

Jheronimus Academy of Data Science and Tilburg University(赫伦尼姆数据科学学院和蒂尔堡大学);Jheronimus Academy of Data Science(赫伦尼姆数据科学学院);University of Sannio(萨尼亚大学);University of Luxembourg(卢森堡大学);University of Naples Federico II(那不勒斯费德里科二世大学)

Joshua Owotogbe, Indika Kumara, Antonio Ken Iannillo, Willem-Jan van den Heuvel, Damian Andrew Tamburri, Roberto Natella

AI总结:

本文通过手动分析473个MCP服务器仓库中的837个故障线程,采用自下而上的开放式编码方法,首次建立了MCP服务器运行时故障的经验分类法,包含11个顶层类别和27个子类别(73种叶子故障类型),并通过开发者调查验证了其外部有效性。

摘要:

MCP(模型上下文协议)使LLM(大语言模型)能够通过标准化协议与外部工具和数据源交互。其在工具增强型人工智能工作流中的快速采用引入了新的可靠性挑战,例如配置参数被接受但在运行时未强制执行,导致意外的默认行为,其运行时故障特征尚未得到实证检验。我们提出了MCP服务器运行时故障的首个经验分类法。我们手动分析了来自473个活跃维护的MCP服务器GitHub仓库的837个MCP特定运行时故障线程,并使用自下而上的开放式编码程序推导出分类法。该分类法包括11个顶层类别和27个子类别(73种叶子故障类型),涵盖了协议交互、工具调用、模式执行、状态管理、模型提供商集成、安全验证以及超时或显式取消进行中操作中的反复故障。为评估分类法的外部有效性,我们调查了55名MCP服务器开发者。受访者报告平均经历了27个故障子类别中的20个,且没有类别未被观察到。这些结果表明,该分类法反映了MCP系统中广泛观察到的运行时故障,并将有助于未来AI软件的维护和演化。

英文摘要:

MCP (Model Context Protocol) enables LLMs (Large Language Models) to interact with external tools and data sources via a standardized protocol. Its rapid adoption in tool-augmented Artificial Intelligence (AI) workflows has introduced new reliability challenges, such as configuration parameters that are accepted but not enforced at runtime, leading to unintended default behavior, whose runtime fault characteristics remain empirically unexamined. We present the first empirical taxonomy of runtime faults in MCP servers. We manually analyzed 833 confirmed runtime fault threads identified through a repository-mining pipeline covering 473 actively maintained MCP server GitHub repositories and derived a taxonomy using a bottom-up open coding procedure. The taxonomy comprises 11 top-level categories and 27 subcategories (73 leaf fault types), covering recurrent failures across protocol interactions, tool invocations, schema enforcement, state management, model-provider integration, security validation, and timeouts or explicit cancellations of in-progress operations. To assess the taxonomy's external validity, we surveyed 55 MCP server developers. Respondents reported experiencing an average of 20 of the 27 fault subcategories, and no category remained unobserved. These results indicate that the taxonomy reflects widely observed runtime failures in MCP-based systems and shall assist AI software maintenance and evolution in the future.

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

↑