Skip to main content
If you use the Claude Code CLI or other supported AI dev tools, you can configure them to use Corridor’s MCP server for real-time security guardrails.

Prerequisites

  • Claude Code installed (claude command)
  • VS Code or Cursor installed
  • A Corridor account with a team created

Setup

1

Install the Corridor extension

First install the Corridor extension in VS Code or Cursor. Open the Extensions panel (Cmd+Shift+X or Ctrl+Shift+X), search for “Corridor”, and click Install. See VS Code / Cursor setup for detailed instructions.
2

Sign in to your Corridor account

Click the Corridor icon in the activity bar and sign in through the browser authentication flow.
3

Automatic configuration

The Corridor extension automatically configures Claude Code’s MCP settings. You’ll see a notification when the integration is ready. No manual configuration files to edit—the extension handles everything.
Once configured, Claude Code will consult Corridor’s guardrails during code generation, providing security feedback automatically without changing how you use Claude.

Hooks

Hooks are deterministic scripts that run at specific points in the code generation process, enabling real-time security reviews and policy enforcement. Hooks are automatically enabled in the latest version of the Corridor extension.

MCP compliance

Corridor tracks which MCP servers are active and enforces your team’s policies. To configure, navigate to the Compliance tab in the Corridor dashboard and choose Allowlist Mode or Blocklist Mode.

Stop hooks (experimental)

When Claude Code generates code, Corridor can automatically evaluate the diff, identify potential security issues, and guide Claude to remediate problems iteratively—all in the background. By default, hooks run in monitoring mode and won’t block code generation. To enable blocking behavior:
  1. Open the Corridor extension menu in your IDE
  2. Click Enable Stop Hooks (experimental)
  3. Hooks will now prevent code with critical security issues from being applied
MCP compliance via hooks is currently supported with Cursor and Claude Code.

Next steps