研究提出 MCP-RepairBench:修复 MCP 服务器故障的 10 类模式与新基准
Repairing Model Context Protocol Software: Fix Patterns, Benchmark, and Agent Evaluation
做 MCP 开发的同学可以看看这篇 arXiv 论文:作者把 197 个真实修复归纳成 10 类模式和 60 种动作,还发布了 60 题的 MCP-RepairBench。带评估器反馈的修复智能体三次尝试内解决 41 题,基线只有 26 题,差距不小。
MCP(Model Context Protocol)服务器负责把语言模型接入外部工具和服务,但相关故障如何被修复一直缺少系统研究。这篇论文分析了 221 个已验证修复的 issue,将其中 197 个修复归纳为 10 个修复组、60 种动作模式;修复中位数改动 2 个文件、59 行代码,不同修复组的补丁结构差异明显,但修复耗时尚无显著差别。
作者另从 bug 报告语料构建了 MCP-RepairBench,包含来自 25 个仓库的 60 个真实修复任务,配有固定的缺陷版本与修复版本、行为评估器和可复现的离线环境。一个带评估器反馈的 MCP 感知修复智能体首次尝试解决 34 个任务、三次尝试内解决 41 个,而同模型的基线只解决 18 个和 26 个。
剩余失败案例多涉及配置、打包、精确响应要求以及需要跨文件协同的改动。该基准为 MCP 生态的自动修复研究提供了可复现的评测基础。
Repairing Model Context Protocol Software: Fix Patterns, Benchmark, and Agent Evaluation
Model Context Protocol (MCP) servers connect language models to external tools and services. Prior work has characterized where MCP servers fail, but less is known about how developers repair them or how well automated systems can perform these repairs. We analyze 221 issues with verified fixes and classify 197 of those repairs into 10 repair groups and 60 action patterns using independent open coding and affinity diagramming. Fixes change a median of two files and 59 lines. Patch structure differs across repair groups, but we find no significant differences in repair timing. From a separate corpus of bug reports, we construct MCP-RepairBench, a benchmark of 60 real repair tasks from 25 repositories with pinned buggy and fixed revisions, behavioral evaluators, and reproducible offline environments. An MCP-aware repair agent with evaluator feedback resolves 34 tasks on the first attempt and 41 within three attempts, compared with 18 and 26 for a baseline using the same model and per-attempt limits. Remaining failures often involve configuration, packaging, exact response requirements, or changes that must be coordinated across files.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:MCP、MCP-RepairBench、智能体、论文,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Mina Taraghi, Mohammad Mehdi Morovati, Foutse Khomh),经 AITOP 多维评分管线结构化提炼。