Skip to content

CLI and MCP

The CLI uses the same hosted API as the dashboard. Use it when setup needs to be repeatable or scriptable.

Common commands:

Terminal window
draftstack projects list --output json
draftstack repos list --output json
draftstack suggestions list --project <project-id> --output json

Use --output json for scripts and agent workflows.

The MCP server is API-backed. Agents can list projects, inspect suggestions, view diffs, approve useful suggestions, and dismiss incorrect suggestions with scoped tokens.

Use MCP for review workflows where the agent needs structured access to DraftStack data instead of scraping the dashboard.