Metraipolis › archive › dc_11ef0790339d

MCPGuard: Finding Conformance Gaps in MCP SDKs via Dual-Track Analysis and Dynamic Adjudication — arXiv:2611.03662

Source
arXiv (en)
Original
https://arxiv.org/abs/2611.03662
License (as archived)
CC0-1.0
Archived
2026-11-04T18:21:49.298Z
SHA-256 of the archived text
d4d89a382923598c69bcdad6d32552458228e9ef9333d0648fa4dac42621db29
Stable URL of this page
https://metraipolis.com/documento/dc_11ef0790339d

How to cite

MCPGuard: Finding Conformance Gaps in MCP SDKs via Dual-Track Analysis and Dynamic Adjudication — arXiv:2611.03662 — arXiv (en), https://arxiv.org/abs/2611.03662 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_11ef0790339d (Metraipolis archive dc_11ef0790339d, sha256 d4d89a382923598c69bcdad6d32552458228e9ef9333d0648fa4dac42621db29)
BibTeX
@misc{dc11ef0790339d,
  title = {MCPGuard: Finding Conformance Gaps in MCP SDKs via Dual-Track Analysis and Dynamic Adjudication — arXiv:2611.03662},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2611.03662},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_11ef0790339d; sha256 d4d89a382923598c69bcdad6d32552458228e9ef9333d0648fa4dac42621db29},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.03662. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

The Model Context Protocol (MCP) connects large language model agents to external tools and services through official SDKs that implement message validation and session logic. Specification constraints omitted by these SDKs may propagate to downstream applications, highlighting the importance of SDK-level conformance testing. Yet existing MCP conformance tools mainly exercise running endpoints and reveal little about whether SDK models enforce specification requirements. We present MCPGuard, an automated LLM-based framework for detecting specification-to-SDK conformance gaps. Its structural track aligns JSON Schema constraints with normalized SDK models and produces constraint-specific evidence. Its behavioral track extracts normative prose rules, retrieves bounded function-level slices, and audits them with LLMs for candidate omissions. An evidence-aware dynamic adjudicator then inspects complete source context and builds PoCs to validate candidates. A shared kernel with language-specific adapters enables analysis across SDKs. On the official Python 1.26.0 and TypeScript 1.29.0 SDKs, MCPGuard confirms 13 and 19 findings, respectively, none of which are exposed by two black-box baselines. Tests on open MCP servers further show that these gaps can systematically propagate downstream. By making SDK conformance of specification constraints directly testable, MCPGuard complements conventional endpoint-oriented conformance suites.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno).
Categorie arXiv: Artificial Intelligence (cs.AI) ; Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2611.03662 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-11-04T18:21:13.476Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).