Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/AlexFischman/mcp-skill-creator-agencynpx agentmods add commands/alexfischman/mcp-skill-creator-agency/mcp-code-execWrote 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.
[](https://agentmods.dev/commands/alexfischman/mcp-skill-creator-agency/mcp-code-exec)<a href="https://agentmods.dev/commands/alexfischman/mcp-skill-creator-agency/mcp-code-exec"><img src="https://agentmods.dev/badge/commands/alexfischman/mcp-skill-creator-agency/mcp-code-exec.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.03611 |
| Opus 5 | $0.00000 | $0.01806 |
| Sonnet 5 | $0.00000 | $0.00722 |
| Haiku 4.5 | $0.00000 | $0.00361 |
Grade A, and why
mcp-code-exec 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 441 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Code Execution Pattern - Implementation Guide
Your task is to convert an MCP server into the Code Execution Pattern described in Anthropic's blog post. This pattern enables progressive disclosure of tools, reducing token usage by up to 98% compared to loading all tools upfront.
Why This Pattern?
Problem with Traditional MCP:
- Loading all tools upfront consumes 150,000+ tokens
- Intermediate tool results flow through model context repeatedly
- Agents slow down with many connected tools
Solution - Code Execution Pattern:
- Tools organized as importable Python modules (filesystem-based)
- Agents load only what they need (progressive disclosure)
- Data processing happens in code before returning to model
- Result: 98.7% token reduction (150K → 2K tokens)
Step-by-Step Implementation
Step 1: Create Folder Structure
Create a dedicated folder for the MCP server in ./servers/ directory:
./servers/[server_name]/
├── server.py # Server singleton & connection management (with discovery in __main__)
├── [tool_1].py # Individual tool file (with test in __main__)
├── [tool_2].py # Individual tool file (with test in __main__)
├── [tool_3].py # Individual tool file (with test in __main__)
└── __init__.py # Package exports
Example:
./servers/notion/
├── server.py
├── notion_search.py
├── notion_fetch.py
├── notion_create_pages.py
└── __init__.py
Create the folder:
mkdir -p ./servers/[server_name]
Step 2: Create the Server Module
The server.py module manages the MCP server connection as a singleton. Include tool discovery in the __main__ block to list available tools.
Note: This pattern works with any MCP server type. The template below shows MCPServerStdio (most common), but you can use:
MCPServerStdio- Local scripts, npm packages, or OAuth servers withmcp-remoteMCPServerSse- Server-Sent Events serversMCPServerStreamableHttp- HTTP streaming serversHostedMCPTool- Publicly accessible servers (no need for singleton pattern)
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.
- 7d ago First seen · 441 lines · 0 tokens per session scan A 08e7f809b18e
mcp-code-exec is a command published in the GitHub repository AlexFischman/mcp-skill-creator-agency (2 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,611 tokens. 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-08-31.
Other commands, from other repositories
add-endpoint
Scaffold a new API endpoint with full layering.
review
Review code changes against project conventions.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.