arXiv · 2611.39113
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Mina Taraghi, Mohammad Mehdi Morovati, Foutse Khomh. 2026-11-28. Repairing Model Context Protocol Software: Fix Patterns, Benchmark, and Agent Evaluation. https://arxiv.science/abs/2611.39113
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.