Quick Reference
| Command | Purpose |
|---|---|
golf-scanner audit | Discover MCP servers and run a full security audit with risk scores |
golf-scanner scan | List discovered MCP servers without running checks |
golf-scanner version | Print version information |
golf-scanner help | Show usage information |
audit
Discover all MCP servers configured across your IDEs and run 20 security checks against each one. Produces a 0–100 risk score per server.
Syntax
Options
| Flag | Default | Description |
|---|---|---|
--offline | false | Skip network checks (OSV, GitHub, npm, PyPI, MCP Registry, OCI registries) |
--format | table | Output format: table or json |
--json | false | Shorthand for --format json |
--fail-on | Exit code 1 if findings at or above severity: note, medium, high, critical | |
--verbose, -v | false | Show full finding details including remediation text |
--quiet, -q | false | Show only the summary table (no per-server details) |
Flag Interactions
--verboseand--quietare mutually exclusive — using both produces an error--jsonis shorthand for--format json— both do the same thing--offlineskips all Tier 2 checks (11 of 20 checks require network)
Examples
Full audit with all checks
Offline only (no network requests)
Verbose with remediation details
Summary table only
CI/CD — fail on high or critical
CI/CD — fail on any finding
scan
List MCP server configurations discovered across your IDEs without running any security checks. Reads configuration files for Claude Code, Cursor, VS Code, Windsurf, Gemini CLI, Kiro, and Antigravity.
Syntax
Options
| Flag | Default | Description |
|---|---|---|
--format | table | Output format: table or json |
--json | false | Shorthand for --format json |
Examples
List all discovered MCP servers
JSON output for scripting
version
Print the Golf Scanner version string.
Syntax
Example Output
help
Show usage information for all commands.
Syntax
Environment Variables (Optional)
Golf Scanner works without any environment variables. These are optional and only affect online (Tier 2) checks:| Variable | Purpose |
|---|---|
GITHUB_TOKEN | GitHub API authentication — increases rate limit from 60 to 5,000 requests/hour |
GOLF_GITHUB_TOKEN | Fallback if GITHUB_TOKEN is not set |
GITHUB_TOKEN when running online checks to avoid rate limiting on GitHub Trust checks:
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success — audit completed, no threshold exceeded |
| 1 | No arguments provided, unknown command, --fail-on threshold exceeded, or --verbose/--quiet conflict |
| 2 | JSON marshaling error or invalid --fail-on severity value |