validate_route
Analyzes app/Config/Routes.php to detect route collisions, CI4 placeholders ((:num), (:segment)), and $routes->resource().
How to use it
Project documentation lists validate_route for the Codeigniter MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Codeigniter MCP
npx -y codeigniter-mcpOther tools in Codeigniter MCP (7)
Lints PHP source code against framework conventions and AST security rules.
Executes native migrations (spark migrate or bin/migrate). Interprets PHP errors into actionable messages; requires explicit confirmation.
Scaffolds native CI4 in-app MCP command (app/Commands/McpServer.php) for live runtime introspection via php spark mcp:serve.
Generates standalone Controller with strict validation; enforces zero SQL in controllers.
Generates full CRUD in ~15 ms: Controller + Service + Model/Repository + Migration + View + Tests (8 files).
Generates Repository interface + PDO implementation (no-op in CI4, data lives in Models).
Generates business logic Service with contract-first DI (injects Model in CI4).