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.
翻译:暂无翻译