Configuration

Most projects ship with no config. When you need overrides, here they are.

CLI flags

FlagAliasDescription
--format-fOutput format: text / json / sarif / markdown.
--output-oWrite report to a file instead of stdout.
--reportPOST grade to the badge API. Requires owner/repo.
--fail-onExit 1 if grade is below this threshold (A/B/C/D/F).
--disableSkip a check by OWASP ID. Repeatable.
--ignoreGlob to exclude. Repeatable.
--version-VPrint version. -v is reserved.

.mcp-sentry.json

{
  "ignore": ["src/fixtures/**", "src/test/**"],
  "disable": ["MCP08"],
  "failOn": "B",
  "report": { "owner": "acme", "repo": "my-mcp-server" }
}

Inline suppression

// mcp-sentry-ignore: MCP05
exec(userInput);

Suppressed findings are excluded from grading and reported with "suppressed": true.