adudley78/mcp-audit

Security scanner for MCP server configurations — detects prompt injection, supply chain risks, credential exposure, and more.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 14, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: adudley78/mcp-audit@1959b4922fe8b6ef4fea95b8326f574f157088d7 # v0.14.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
modeAction mode: ``scan`` (default — full static analysis) or ``diff`` (MCP-aware diff between two git refs, suitable for PR comments). When ``diff``, the action runs ``mcp-audit diff $GITHUB_BASE_REF $GITHUB_HEAD_REF`` and posts the result as a PR comment (requires ``pull-requests: write`` permission). For an explicit step-by-step workflow with separate base/head scans and full control over scan flags, use ``examples/github-actions/diff-pr-comment.yml`` instead. noscan
config-pathsSpace-separated list of paths to MCP config files or directories to scan. Defaults to auto-discovery (scans all known client config locations). Used only when mode is ``scan``. no""
severity-thresholdMinimum severity to fail the build. One of: critical, high, medium, low, info.nohigh
sarif-outputPath to write SARIF output file. Set to empty string to skip SARIF generation.nomcp-audit.sarif
upload-sarifUpload SARIF to GitHub Code Scanning automatically. Requires security-events: write permission.notrue
check-vulnsRun OSV.dev dependency vulnerability scan (Layer 3). Requires network access.nofalse
verify-signaturesRun Sigstore signature verification (Layer 2). Requires network access.nofalse
run-sastAlso run mcp-audit SAST analysis against the path specified by sast-path.nofalse
sast-pathPath to run SAST analysis against. Only used when run-sast is true. Defaults to src/.nosrc/
baseline-nameName of a saved baseline to compare against. When set, the action runs `mcp-audit baseline compare <baseline-name>` after the scan and posts the diff as a step summary. Leave empty to skip baseline comparison. no""
fail-on-findingsFail the workflow step if findings meet or exceed severity-threshold. Set to false to report only.notrue
versionmcp-audit release tag to install (e.g. "v0.10.0") or "latest" to resolve the current latest release automatically. The binary is downloaded from GitHub Releases and cached by version + OS + arch. nolatest
namedescription
findings-countTotal number of findings at or above the severity threshold.
gradeOverall scan grade (A–F).
sarif-pathAbsolute path to the generated SARIF file (empty if sarif-output was empty).