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.

Link
https://doi.org/10.48550/arxiv.2611.39113
Found by
DataCite
Authors
Mina Taraghi, Mohammad Mehdi Morovati, Foutse Khomh
Categories
benchmark, evaluation, dataset, agentic
Published
2026-12-01
Last seen by the radar
2026-12-03
Citations
0
Downloads
0
Views
0
Radar score
55.25 / 100 (how it is scored)
Why it scored so
Matched: agent~benchmark, benchmark, corpus, evaluat; Primary record: DataCite
Related links
https://arxiv.org/abs/2611.39113
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by DataCite