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

DevFeed: [MCPGuard: Finding Conformance Gaps in MCP SDKs via Dual-Track Analysis and Dynamic Adjudication](<https://devfeed.tech/articles/mcpguard-finding-conformance-gaps-in-mcp-sdks-via-dual-track-analysis-and-dynamic-adjudication-116178.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.03662>)

Author: Xikai Sun, Kebin Liu, Fan Dang, Yawen Zheng, Zihao Yang, Yunhao Liu

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [mutation-testing](<https://devfeed.tech/topics/mutation-testing.md>), [MSP MCP](<https://devfeed.tech/topics/msp-mcp.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [automated](<https://devfeed.tech/tags/automated.md>), [conformance-testing](<https://devfeed.tech/tags/conformance-testing.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [framework](<https://devfeed.tech/tags/framework.md>), [json-schema](<https://devfeed.tech/tags/json-schema.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [llms](<https://devfeed.tech/tags/llms.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-servers](<https://devfeed.tech/tags/mcp-servers.md>), [python](<https://devfeed.tech/tags/python.md>), [sdks](<https://devfeed.tech/tags/sdks.md>), [specification](<https://devfeed.tech/tags/specification.md>), [testing](<https://devfeed.tech/tags/testing.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

MCPGuard detects specification requirements that MCP SDKs fail to enforce, gaps that endpoint-focused conformance tools may miss. It combines a structural track that aligns JSON Schema constraints with normalized SDK models and a behavioral track that audits code for omissions of normative prose rules. An evidence-aware adjudicator then reviews full source context and builds proof-of-concept tests to validate candidates. On official Python 1.26.0 and TypeScript 1.29.0 SDKs, it confirmed 13 and 19 findings, respectively; two black-box baselines exposed none of them. Tests on open MCP servers indicate these gaps can propagate downstream. The abstract presents MCPGuard as complementing conventional endpoint-oriented suites.

## Source excerpt

arXiv:2611.03662v1 Announce Type: cross Abstract: 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.