Repairing Model Context Protocol Software: Fix Patterns, Benchmark, and Agent Evaluation
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
Related papers
MEDSWE-BENCH: A Benchmark for Biomedical Software Engineering Agents
Shared title terminologycs.SEZhaoyang Zhu, Sicong Li, Zihan Liao et al.
DevEx is for Humans, AX is for Agents: Measuring Context Health in Agentic Software Work
Shared title terminologycs.SEGratiana Fu, Josh Beitler, Brian Houck
SatMend: LLM Agents for Automated Software Repair in Satellite Constellations with Intermittent Ground Contact
Shared title terminologycs.SEPengcheng Luo, Zenghui Zhang, Genke Yang et al.
Schema-Validated LLM Workflows: A Benchmark Protocol and Comparative Evaluation Across Six Python Implementations
Shared title terminologycs.SESidney Shapiro, Sanad Al-Khatib, Aurora Pinzón Arzola et al.
SWE-Recreation: Benchmarking Coding Agents for Software Recreation
Shared title terminologycs.SEZhiyao Xu, Zhanjie Ding, Hongyao Yu et al.
Does Training-Free Delegation Improve Cost Efficiency in Multi-Agent Software Engineering Systems? An Empirical Study
Shared title terminologycs.SEMootez Saad, Mohammad Masudur Rahman, Tushar Sharma