AAK-MCP-CARD-002: MCP server card transport / advertised-capability mismatch
- Severity
- HIGH
- Category
- MCP Server Card (
mcp-server-card) - Scanner
agent_audit_kit/scanners/mcp_server_card.py- Auto-fixable
- No.
- SARIF name
McpCardTransportMismatch
What it detects
A SEP-1649 server card's declared transport disagrees with its advertised capabilities: a remote transport (http/sse/streamable-http/ws, or a routable endpoint URL) while authentication.required is false (an anyone-can-connect network endpoint), or a stdio/local transport that nonetheless advertises a remote endpoint. A client that provisions based on the card's advertised shape connects to a transport it did not expect.
How to fix
Make the card's transport and authentication consistent: require an inbound credential on every remote transport, and do not advertise a remote endpoint on a stdio/local card. Regenerate the card from the server's real runtime configuration.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-CARD-002
Limitations
Reports a remote transport only when authentication.required is the JSON boolean false. A remote transport with no authentication block at all, or with "required": "false" as a string, is not reported, and the endpoint is read from the transport object only: a top-level url is ignored. A URL that Node, requests and Rust's url crate read differently from curl, httpx and urlsplit, which keep a backslash inside the authority, is judged by the less safe of the two readings.
References
- OWASP MCP Top 10: MCP07:2025 (Insufficient Authentication & Authorization)
- OWASP Agentic Top 10: ASI03 (Identity and Privilege Abuse)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-AUTH-01 (Missing Authentication)
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-CARD-002.md: the page then shows that text, with the registry reference appended under it.