Scaffold native CI4 MCP server (Live runtime introspection)
scaffold_ci4_mcp_serverGenerates a CodeIgniter 4 Spark command that runs an in-app MCP server over stdio, letting AI assistants inspect live databases, run read-only queries, check migrations, and list routes.
Instructions
Generates a native CodeIgniter 4 Spark command (app/Commands/McpServer.php) that runs an in-app Model Context Protocol (MCP) server over stdio. Enables AI assistants (Claude Code, Cursor, Trae) to inspect live database tables, run read-only queries, check migration status, and list compiled routes. Requires overwrite=true to overwrite existing files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scaffold_ci4_mcp_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| readOnly | No | ||
| className | No | McpServer | |
| overwrite | No | ||
| commandName | No | mcp:serve | |
| withRouteTools | No | ||
| withDatabaseTools | No | ||
| withMigrationTools | No |