Skip to main content
q-ai is organized into subcommands. The top-level entry point is qai.
qai --help

audit

Security scanner for MCP servers. Maps findings to the OWASP MCP Top 10.

audit scan

Scan an MCP server for security vulnerabilities.
qai audit scan [OPTIONS]
OptionRequiredDescription
--transportYesTransport type: stdio, sse, or streamable-http
--commandWhen --transport stdioServer command to spawn (e.g., "python my_server.py")
--urlWhen --transport sse or streamable-httpServer URL to connect to
--checksNoComma-separated scanner list (e.g., "injection,auth")
--outputNoOutput file path (default: results/scan.json)
--formatNoOutput format: json or sarif (default: json)
--verbose / -vNoEnable debug logging
qai audit scan \
  --transport stdio \
  --command "python my_server.py"
Run specific scanners only:
qai audit scan \
  --transport stdio \
  --command "python my_server.py" \
  --checks injection,auth \
  --output results/my-scan.json
Use --format sarif with audit scan or audit report to generate SARIF 2.1.0 reports compatible with GitHub Code Scanning.

audit enumerate

Enumerate MCP server capabilities without running security checks.
qai audit enumerate [OPTIONS]
OptionRequiredDescription
--transportYesTransport type: stdio, sse, or streamable-http
--commandWhen --transport stdioServer command to spawn
--urlWhen --transport sse or streamable-httpServer URL to connect to
qai audit enumerate \
  --transport stdio \
  --command "python my_server.py"
Lists the server’s name, protocol version, tools, resources, and prompts.

audit list-checks

List all available scanner modules and their OWASP mappings.
qai audit list-checks
No options. Prints a table of scanner modules with OWASP ID, description, and readiness status.

audit report

Generate a report from saved scan results.
qai audit report [OPTIONS]
OptionRequiredDescription
--inputYesPath to saved scan results JSON file
--formatNoReport format: html, json, or sarif (default: html)
--outputNoOutput file path (defaults to input path with new extension)