Corridor has two integrations for Cursor. They serve different workflows and can be used independently or side-by-side.Documentation Index
Fetch the complete documentation index at: https://docs.corridor.dev/llms.txt
Use this file to discover all available pages before exploring further.
- Cursor Plugin — a Cursor Marketplace Agent that uses the
/corridorskill to review code in the background as Cursor Agents work. Use this if you want a frictionless, Cursor-native experience with the least setup. - Corridor extension — a VS Code-style extension that registers Corridor as an MCP server and runs deterministic hooks. Use this if you want MCP-based tool access, MCP compliance enforcement, or stop hooks that can block code with critical findings.
Prerequisites
- Cursor installed
- A Corridor account with a team created
Option 1: Corridor Cursor Plugin
The Corridor Cursor Plugin layers real-time security reviews directly into Cursor. As Cursor plans and generates code, Corridor reviews the plan and proactively guides the coding agent to prevent vulnerabilities before code is written.Installation
Using the Corridor skill
Start using Corridor by invoking the skill with/corridor in any Cursor chat. The skill reviews your code for vulnerabilities and enforces security best practices in your coding agent.
Authenticate with the Corridor API (optional)
Create a Corridor API key
Generate an API key from Profile > API Tokens in the Corridor dashboard. See the API reference for details on token scope.
Option 2: Corridor extension
The Corridor extension installs through Cursor’s Extensions panel and provides MCP server registration plus deterministic hooks (file edits, stops, MCP compliance enforcement).Installation
Open the Extensions panel
In Cursor, open the Extensions panel by pressing
Cmd+Shift+X (macOS) or Ctrl+Shift+X (Windows/Linux).Authentication
Hooks
Hooks are deterministic scripts that run at specific points in the code generation process, enabling real-time security reviews and policy enforcement without interrupting your development flow. Hooks are automatically enabled in the latest version of the Corridor extension.MCP compliance
Corridor tracks which MCP servers are active in your workspace and enforces your team’s policies. Unlike MCP relays, this approach integrates directly without adding latency or complexity. To configure MCP compliance settings, navigate to the Compliance tab in the Corridor dashboard and choose Allowlist Mode (allow only specific MCP servers) or Blocklist Mode (block specific MCP servers).Stop hooks (experimental)
When an AI agent generates code, Corridor can automatically evaluate the diff at the moment of creation, identify potential security issues, and guide the agent to remediate problems iteratively — all in the background without disrupting your flow. By default, hooks run in monitoring mode and won’t block code generation. To enable blocking behavior:- Open the Command Palette with
Cmd+Shift+P(macOS) orCtrl+Shift+P(Windows/Linux) - Search for Corridor: Enable Stop Hooks and select it
- Hooks will now prevent code with critical security issues from being applied
Troubleshooting
If hooks are not running:- Verify you’re using the latest version of the Corridor extension
- Check that the extension is properly authenticated
- Ensure that you’ve enabled hooks in the extension
- Reload Cursor (
Cmd+Shift+P→ Developer: Reload Window) - Open the Corridor panel and confirm you’re signed in — the MCP server is only registered after successful authentication
- Confirm Cursor’s MCP support is enabled in Cursor Settings → MCP
Next steps
VS Code
Install the Corridor extension in VS Code with MCP and hooks support.
Guardrails
Learn how Corridor’s guardrails review and harden AI-generated code.