module:mcp

module:mcp is a skill for Claude Code, Codex from escapeboy/ai-prompts. It costs 25 tokens per session (3,900 once invoked), scanned A, original, MIT.

A module that adds an MCP server to a Laravel application, a PHP web framework. MCP is a way for AI agents to call an application’s functions through defined tools; this module supports web and command-line connections.

In plain words
What is it for?
Use it to analyse a Laravel project, create the MCP server, add tools for a specific business area, or synchronise tools with the application’s models and relationships.
Why use it?
It turns an application’s existing models and business areas into callable tools for AI agents. It can also compare the available tools with the current application domain to find missing coverage.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter; mentions CLAUDE.md; mentions Claude Code.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/escapeboy/ai-prompts/module-mcp
Any agent
npx skills add escapeboy/ai-prompts --skill module-mcp
Clone the repo
git clone --depth 1 https://github.com/escapeboy/ai-prompts

Made for: Claude Code, Codex.

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 module:mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/escapeboy/ai-prompts/module-mcp.svg)](https://agentmods.dev/skills/escapeboy/ai-prompts/module-mcp)
Your own site
<a href="https://agentmods.dev/skills/escapeboy/ai-prompts/module-mcp"><img src="https://agentmods.dev/badge/skills/escapeboy/ai-prompts/module-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,900 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00025 $0.03900
Opus 5 $0.00013 $0.01950
Sonnet 5 $0.00005 $0.00780
Haiku 4.5 $0.00003 $0.00390

Measured 6d ago against content hash b1bb1c83c7e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

module:mcp scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST http://localhost/mcp \
03-custom-skills/examples/module-mcp/SKILL.md · 579 lines

How it starts

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

Module: MCP Server

Implement a complete Model Context Protocol (MCP) server on any Laravel project. Gives LLMs and AI agents (Claude Code, Codex, Cursor, etc.) full programmatic access to the application's domain.

Reference implementation: Agent Fleet — 61 tools across 14 domains, dual transport, role-based auth.


Usage

/module:mcp [action]

Quick Examples

/module:mcp                    # Full implementation (analyze → scaffold → implement)
/module:mcp analyze            # Only analyze the project and produce a tool plan
/module:mcp add <domain>       # Add MCP tools for a specific domain
/module:mcp sync               # Sync tools with current domain — find missing coverage

Actions

1. Full Implementation (Default)

Analyzes the project, scaffolds the MCP server, and implements all tools.

Process:

Phase 1: Analyze the Project
  1. Read CLAUDE.md (or README.md) to understand the domain, models, and architecture.

  2. Discover domain models — scan for Eloquent models, their relationships, and fillable fields:

# Find all models
find app -name "*.php" -path "*/Models/*" | head -50

# Or use Laravel Boost if available
php artisan model:show
  1. Discover actions/services — scan for action classes, service classes, and controllers:
# Find action classes
find app -name "*Action.php" | head -30

# Find controllers
find app -name "*Controller.php" -path "*/Controllers/*" | head -30
  1. Discover existing API routes — map what's already exposed:
php artisan route:list --columns=method,uri,name,action --json
  1. Identify domain boundaries — group models/actions into logical domains. Example:
User domain:      User, Role, Team
Product domain:   Product, Category, Variant
Order domain:     Order, OrderItem, Payment, Refund
  1. Produce a tool plan — for each domain, list the tools to create:
Domain: Order (6 tools)
  - order_list (read) — List orders with status/date filters
  - order_get (read) — Get order details with items
  - order_create (write) — Create a new order
  - order_update (write) — Update order details
  - order_cancel (destructive) — Cancel an order
  - order_refund (write) — Initiate a refund

Read the full file on GitHub · 579 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. 6d ago First seen · 579 lines · 25 tokens per session scan A b1bb1c83c7e1

Subscribe to this mod's changes

module:mcp is a skill published in the GitHub repository escapeboy/ai-prompts (91 stars, last pushed 11d ago), licensed MIT. It adds 25 tokens to every session and 3,900 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

create-powergrid-plugin

Create a complete PowerGrid plugin from scratch, including PHP class, Column macro, Blade view, Alpine.js component, and registration.

Power-Components/livewire-powergrid · 31 tokens

owl-admin-app-dev

Use this skill when developing an application that installed slowlyo/owl-admin, especially backend CRUD, menus, permissions, controllers, services, routes, config/admin.php, app/Admin, helper functions, settings(), adminpages(), AdminPipeline, upload/file preview issues, route conflicts, custom login/menu examples, or…

slowlyo/owl-admin · 114 tokens

owl-admin-devtools-generator

Use this skill for Owl Admin development tools, code generator, dynamic API templates, relationships, visual pages, generated CRUD code, app/ApiTemplates, Support/Apis, Support/CodeGenerator, Controllers/DevTools, or questions about “代码生成器”, “动态 API”, “API 模板”, “关系管理”, “可视化页面”, and “生成 CRUD”.

slowlyo/owl-admin · 82 tokens

owl-admin-ops-commands

Use this skill for Owl Admin installation, publishing assets, upgrades, diagnostics, database inspection, menu maintenance, user creation, password reset, route generation, IDE helper, admin:publish, admin:install, admin:update, admin:doctor, admin:db, admin:menu, admin:create-user, or deployment troubleshooting.

slowlyo/owl-admin · 71 tokens

owl-admin-extension-module

Use this skill for Owl Admin extensions, modules, multi-admin setup, extension service providers, module routes, module config, menus, permissions, admin-module:init, or extensions under the configured extension directory. Trigger on 扩展, 插件, 多模块, module, extension, ServiceProvider, 菜单导入, or 模块后台.

slowlyo/owl-admin · 75 tokens

testing-integration

Integration and contract testing patterns — API endpoint tests, component integration, database testing, Pact contract verification, property-based testing, and Zod schema validation. Use when testing API boundaries, verifying contracts, or validating cross-service integration.

yonatangross/orchestkit · 49 tokens