Deterministic contract checks
Fixed checks for tools/list, tool-call behavior, malformed payloads, cancellation behavior, large responses, and timeout boundaries.
Validate protocol contracts, test runtime behavior, and enforce policy with reproducible reports.
IMPORTANT
Remote mode supports HTTP JSON-RPC (--http) and SSE (--sse).
default · strict · paranoid
report.md · report.json · report.sarif
--fail-on off|low|medium|high
Run checks locally against your MCP server before opening a PR.
mcp-guard validate --stdio "node server.cjs"Execute deterministic test probes and emit machine-readable reports.
mcp-guard test --stdio "node server.cjs"Use audit with SARIF and severity thresholds to block risky changes.
mcp-guard audit --fail-on medium --sarif reports/report.sarifgraph LR
CLI[mcp-guard CLI] --> T[Transports: stdio/http/sse]
T --> RPC[JSON-RPC]
RPC --> RULES[Rules + Profiles]
RULES --> REP[Reports: md/json/sarif]
REP --> GATE[Policy Gate (--fail-on)]
GATE --> CI[CI / Code Scanning]mcp-guard audit in CI with --fail-on policy.