codeigniter-mcp: Instructions file for Codex

AGENTS.md

codeigniter-mcp AGENTS.md is an instructions file for Codex, OpenCode from X-Gunner/codeigniter-mcp. It costs 2,148 tokens per session, scanned A, original, MIT.

Repository instructions for an AI coding assistant working on a CodeIgniter 4 PHP application and its MCP connection. They define the agent's role, required workflow, architecture rules, and checks against the live database.

In plain words
What is it for?
Use them when asking an agent to inspect or change a CodeIgniter application, configure the MCP connection, verify the live database, or follow the project's controller, service, and repository boundaries.
Why use it?
They reduce guesswork about the framework, project structure, database state, and where different kinds of code belong. This helps prevent the assistant from applying patterns from the wrong framework or making up details.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is X-Gunner/codeigniter-mcp's own configuration. It tells Codex and OpenCode how to work on codeigniter-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codeigniter-mcp configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/rinx/Escritorio/trae_projects/MCP_CODEIGNITER/dist/index.js.

Reuse

Borrowing it

Nothing to install: this file belongs to X-Gunner/codeigniter-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/X-Gunner/codeigniter-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/X-Gunner/codeigniter-mcp

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codeigniter-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/x-gunner/codeigniter-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/x-gunner/codeigniter-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/x-gunner/codeigniter-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/x-gunner/codeigniter-mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codeigniter-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/x-gunner/codeigniter-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/x-gunner/codeigniter-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,148 This file is loaded in full into every session.
When invoked 2,148 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02148 $0.02148
Opus 5.5 $0.00859 $0.00859
Sonnet 5.5 $0.00430 $0.00430
Haiku 4.5 $0.00215 $0.00215

Measured 27d ago against content hash c39d68b0317a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codeigniter-mcp AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — Guía de Integración e Instrucciones de IA para codeigniter-mcp

Este documento está diseñado para ser leído por asistentes de Inteligencia Artificial (Claude Code, Cursor, Trae, Windsurf, OpenAI Codex, Google Project Astra, etc.) cuando trabajan sobre una aplicación CodeIgniter 4 o cuando configuran la integración con el servidor MCP codeigniter-mcp.


1. Identidad y Misión del Agente

Eres un arquitecto y desarrollador senior especializado en CodeIgniter 4, patrones de arquitectura limpia (MVC + Services + Repositories) y desarrollo seguro en PHP 8.1+.

Cuentas con las herramientas del servidor codeigniter-mcp. Tu objetivo es:

  1. Cero Alucinaciones: NUNCA adivines la estructura del framework, nombres de carpetas ni sintaxis de otros frameworks (Laravel, Symfony, CI3). Utiliza las herramientas del MCP para generar y validar código.
  2. Arquitectura Limpia y Estricta: Respeta la separación de capas:
    • Controllers: Solo manejan HTTP, validan entrada básica y llaman al Service. Cero consultas SQL o lógica de base de datos directa.
    • Services: Contienen la lógica de negocio, validaciones complejas y coordinan los Modelos/Repositorios.
    • Models / Repositories: Único lugar donde reside la persistencia de datos y el Query Builder.
    • Views: Siempre protegidas contra CSRF (<?= csrf_field() ?>), y acciones destructivas (DELETE) deben ejecutarse mediante formularios POST con _method="DELETE".
  3. Velocidad e Introspección: Usa el scaffolding del MCP para generar módulos completos en milisegundos y la introspección viva para inspeccionar la base de datos real.

2. Cómo Verificar y Adecuar la Conexión MCP

Si estás en un proyecto de CodeIgniter 4 y necesitas conectar o verificar el servidor MCP:

Configuración en el cliente (Cursor / Trae / Claude / Windsurf)

Verifica que el archivo de configuración MCP (.cursor/mcp.json, .trae/mcp.json o configuración global) contenga:

{
  "mcpServers": {
    "codeigniter-mcp": {
      "command": "codeigniter-mcp",
      "env": {
        "APP_ROOT": "${workspaceFolder}"
      }
    }
  }
}

Read the full file on GitHub · 158 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago First seen · 158 lines · 2,148 tokens per session scan A c39d68b0317a

Subscribe to this mod's changes

codeigniter-mcp AGENTS.md is an instructions file published in the GitHub repository X-Gunner/codeigniter-mcp (1 stars, last pushed 4d ago), licensed MIT. It adds 2,148 tokens to every session, about $0.0086 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.

Related

codeigniter-mcp AGENTS.md compared with instructions from other repositories

codeigniter-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codeigniter-mcp AGENTS.mdX-Gunner/codeigniter-mcpInstructions file14d agoMITA2,148Codex, OpenCode
plan-forge caching.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA733GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot