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 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"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 project's native migration runner (spec: |
| 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 |
|---|---|
| create_full_resource | Builds the exact scaffold_full_resource arguments from a compact description (resource + fields). Saves tokens: no need to write the tool schema by hand. |
| run_migration | Builds the exact run_migration arguments (spec or ci4 runner) and enforces the explicit confirm security rule. |
| lint_file | Builds the exact lint_against_framework_rules arguments for a file path inside APP_ROOT. |
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