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

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

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "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 project's native migration runner (spec: php bin/migrate; ci4: php spark 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
create_full_resourceBuilds the exact scaffold_full_resource arguments from a compact description (resource + fields). Saves tokens: no need to write the tool schema by hand.
run_migrationBuilds the exact run_migration arguments (spec or ci4 runner) and enforces the explicit confirm security rule.
lint_fileBuilds the exact lint_against_framework_rules arguments for a file path inside APP_ROOT.

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