Corridor integrates with VS Code and Cursor through the Corridor extension, providing real-time security guardrails as you code with AI assistants.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.
Prerequisites
- VS Code or Cursor installed
- A Corridor account with a team created
- GitHub Copilot users (VS Code): GitHub Copilot with agent mode enabled. If your organization manages Copilot through GitHub Enterprise, an admin must enable external MCP servers in the Copilot policy settings (see Enable MCP for GitHub Copilot below).
Installation
Open the Extensions panel
In VS Code or Cursor, open the Extensions panel by pressing
Cmd+Shift+X (macOS) or Ctrl+Shift+X (Windows/Linux).Authentication
Enable MCP for GitHub Copilot
Corridor’s MCP server is automatically registered with VS Code when you install and authenticate the Corridor extension. However, GitHub Copilot must have MCP support enabled to use it.Personal accounts
MCP support in GitHub Copilot requires agent mode. Verify it’s enabled:- Open VS Code Settings (
Cmd+,on macOS orCtrl+,on Windows/Linux) - Search for
chat.agent.enabled - Ensure the setting is checked
GitHub Enterprise / Organization accounts
If your organization manages GitHub Copilot through GitHub Enterprise, an organization or enterprise admin must explicitly allow external MCP servers. Without this, Copilot will silently ignore MCP tools — including Corridor.Open your GitHub organization settings
Go to your organization on GitHub and navigate to Settings → Copilot → Policies (or for enterprise accounts, Enterprise settings → Policies → Copilot).
Enable agent mode
Under Copilot in the IDE, find the Agent mode policy and set it to Enabled (or No policy to let individual members choose).
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 hooks
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
Troubleshooting GitHub Copilot MCP
If Corridor’s MCP tools are not appearing in GitHub Copilot:- Check agent mode: Ensure agent mode is enabled in VS Code settings (
chat.agent.enabled). Corridor’s MCP tools only work in agent mode. - Check organization policies: If you’re on a GitHub Enterprise or Organization-managed Copilot plan, verify that your admin has enabled both Agent mode and MCP servers in the Copilot policy settings. See Enable MCP for GitHub Copilot above.
- Reload VS Code: After enabling policies or installing the extension, reload VS Code (
Cmd+Shift+P→ Developer: Reload Window). - Verify extension authentication: Open the Corridor panel and ensure you’re signed in. The MCP server is only registered after successful authentication.
Next steps
Claude Code
Set up Corridor with Claude Code CLI
Guardrails
Learn how guardrails protect your code