Skip to main content
Corridor integrates with Factory’s AI Droid agents via MCP, ensuring that code generated by Factory agents is checked against your security guardrails.

Prerequisites

  • A Factory account
  • A Corridor account with a team created

Setup

1

Generate a Corridor API token

Generate a Corridor API token in your Corridor settings.
2

Add Corridor as an MCP server

In the Factory CLI, add Corridor as an MCP server:
droid mcp add --type http corridor https://app.corridor.dev/api/mcp --header "Authorization: Bearer XXXX"
Replace XXXX with your Corridor API token.
3

Update AGENTS.md

Update your AGENTS.md to include Corridor’s prompt so the Droid always calls Corridor when generating code. This ensures the Droid agent consults Corridor’s guardrails on every task.
Once configured, the Factory Droid agent will invoke Corridor’s security checks as it writes code, catching vulnerabilities and enforcing your security policies automatically.

Next steps