Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
APP_ROOTYesRequired. Absolute path to the target PHP framework root. All tools operate only inside this directory.
MCP_PORTNoHTTP transport port.3000
MCP_TRANSPORTNostdio (local) or http (remote Streamable HTTP).stdio
RATE_LIMIT_PER_MINUTENoWrite operations allowed per minute per session.20

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 php bin/migrate. DESTRUCTIVE OPERATION: requires an explicit confirm: true. Without that flag nothing is executed.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
explain-convention-namingFramework convention: Framework naming conventions
explain-convention-architectureFramework convention: Framework architecture (MVC + Service + Repository)
explain-convention-folder-structureFramework convention: Framework folder structure
explain-convention-security-rulesFramework convention: Hard security rules of the framework

Latest Blog Posts

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