Skip to main content
Connect cubic to your coding agent for AI code reviews, codebase documentation, and team review patterns directly in your editor.
1

Run the installer

npx @cubic-plugin/cubic-plugin install --to cursor
2

Get your API key

The installer opens the cubic dashboard in your browser. Generate a key and paste it back in your terminal when prompted.
3

Try it

Open Cursor and try these natural language commands:
  • “review my code”
  • “how does auth work?”
Configure the MCP server manually if you prefer not to use the plugin installer.Add this to ~/.cursor/mcp.json:
{
  "mcpServers": {
    "cubic": {
      "url": "https://www.cubic.dev/api/mcp",
      "headers": {
        "Authorization": "Bearer cbk_your_api_key_here"
      }
    }
  }
}
The plugin installer handles this configuration automatically. Restart Cursor after adding the configuration.
Authentication errors
  • Verify your CUBIC_API_KEY is set correctly.
  • Check that your key starts with cbk_.
  • Ensure your key remains active in the cubic dashboard.
  • Restart your Cursor session.
/cubic-run-review not workingThis command requires the cubic CLI. Install it:
curl -fsSL https://cubic.dev/install | bash
MCP server not connecting
  • Restart Cursor after updating the configuration.
  • Check ~/.cursor/mcp.json for syntax errors.
  • Verify your API key is correct and valid.

What you can do

cubic adds slash commands and skills to your agent. Your agent can query codebase documentation, fetch review issues, and apply fixes automatically. See the Skills page for full details.
CommandDescription
/cubic-comments [pr-number]Show cubic’s review comments on the current PR (auto-detects branch)
/cubic-run-review [flags]Run a local cubic AI code review on uncommitted changes or branch diff
/cubic-wiki [page-name]Browse AI-generated codebase documentation
/cubic-scan [scan-id]View codebase security scan results and issues
/cubic-learnings [learning-id]Show team code review patterns and preferences
The /cubic-run-review command requires the cubic CLI. See the Local CLI for installation.