Localizing Post-Wire Semantic Changes in MCP Agent Frameworks
Abstract
Valid Model Context Protocol (MCP) messages do not guarantee that an agent framework preserves the distinctions downstream software needs. We present a differential testing method that follows a fixed tool result through each framework's public interfaces and checks explicit consumer requirements. Applied to 18 designed fixtures in four pinned Python integrations, the method identifies 13 unique fixture-task divergences involving structured values, declared errors, and rich content. Google ADK satisfies every primary contract in its observed path; the other integrations show interface-specific changes or an execution failure. Whether a change matters depends on the consumer: treating absent optional fields as equivalent to null explains most of OpenAI's strict rich-content failures. In an exploratory replay, parsing JSON text recovers more structured values but also returns incorrect values and values for fields absent at the source. Documented settings help in conflicting-output stress cases without restoring a separate structured slot. Fault challenges expose an oracle weakness and test its repair on fresh cases. The study provides reproducible, interface-specific evidence from controlled cases, not production failure rates or model-behavior measurements. Its practical implication is that post-wire regression tests need to specify both the information required and how the consumer reads it.
Create a lesson
Metadata
- Comments
- 10 pages, 7 tables, 1 figure. Submitted to SE4AgenticAI 2026. Reproducibility artifact: https://doi.org/10.5281/zenodo.22784143
Related papers
AMoRE: An agentic framework for end-to-end metamorphic testing of web applications
Shared title terminologycs.SEAndrei Coman, José Luis Fernández Alemán, Begoña Moros Valle
SmartLens: Turning AI Agent Changes into Learning, Review, and Risk Signals in the IDE
Shared title terminologycs.SEVahid Etemadi, Gregorio Robles
Separating Configuration from Adaptation: Verifiable Semantic-to-Executable Search for Financial Web Agents
Shared title terminologycs.SEChenxi Wang, Ye Tao, Juncheng Su et al.
Who Changed the AI Agent's Rules? Measuring How AI Coding Agents Escalate Authority in CI/CD Pipelines
Shared title terminologycs.SEMiroslaw Staron
Judgment-Centred Software Engineering Education: A Post-Hype Review and Framework for AI-Augmented Learning
Shared title terminologycs.SEQusay H. Mahmoud
The Obsolescence of High-Level Code: Agentic Generation from Semantic Artifacts
Shared title terminologycs.SEDi Santi Eduardo