codeigniter-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| APP_ROOT | Yes | Required. Absolute path to the target PHP framework root. All tools operate only inside this directory. | |
| MCP_PORT | No | HTTP transport port. | 3000 |
| MCP_TRANSPORT | No | stdio (local) or http (remote Streamable HTTP). | stdio |
| RATE_LIMIT_PER_MINUTE | No | Write operations allowed per minute per session. | 20 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| scaffold_full_resourceA | Generates the full CRUD of a PHP resource: Controller, Service, Repository (interface + implementation), Entity, Migration and tests (unit & integration). Requires overwrite=true to overwrite existing files. |
| scaffold_controllerA | Generates a PHP Controller for a resource (presentation layer only). The controller only calls the corresponding Service: zero queries and zero inline validation. Does not overwrite existing files unless overwrite=true. |
| scaffold_serviceA | Generates a PHP Service for a resource (business logic + input validation). Receives the Repository through dependency injection via interface (contract first). Does not overwrite existing files unless overwrite=true. |
| scaffold_repositoryA | Generates the Repository of a resource: ALWAYS the interface (contract) and the implementation (PDO adapter with prepared statements) together. Does not overwrite existing files unless overwrite=true. |
| validate_routeA | Verifies (read-only) that a route does not collide with the routes registered in app/Config/Routes.php and follows the framework's kebab-case {param} syntax. Never modifies files. |
| run_migrationA | Runs framework migrations (up/down) through the native runner |
| lint_against_framework_rulesA | Validates a PHP file of the project against the framework conventions: strict_types, naming, no queries in controllers, input validation and repositories behind an interface. Returns structured violations; compliant=false when there is any error. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| explain-convention-naming | Framework convention: Framework naming conventions |
| explain-convention-architecture | Framework convention: Framework architecture (MVC + Service + Repository) |
| explain-convention-folder-structure | Framework convention: Framework folder structure |
| explain-convention-security-rules | Framework convention: Hard security rules of the framework |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/X-Gunner/codeigniter-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server