Borrowing it
Nothing to install: this file belongs to hypen-code/mcp-code-execution. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/hypen-code/mcp-code-execution/main/AGENTS.mdgit clone --depth 1 https://github.com/hypen-code/mcp-code-executionWrote 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/instructions/hypen-code/mcp-code-execution/agents-md)<a href="https://agentmods.dev/instructions/hypen-code/mcp-code-execution/agents-md"><img src="https://agentmods.dev/badge/instructions/hypen-code/mcp-code-execution/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.
<a href="https://agentmods.dev/instructions/hypen-code/mcp-code-execution/agents-md"><img src="https://agentmods.dev/badge/instructions/hypen-code/mcp-code-execution/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.06710 | $0.06710 |
| Opus 5.5 | $0.02684 | $0.02684 |
| Sonnet 5.5 | $0.01342 | $0.01342 |
| Haiku 4.5 | $0.00671 | $0.00671 |
Grade A, and why
mcp-code-execution AGENTS.md 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 2mo 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.
| Use `requests` or `urllib` | `httpx` only | How it starts
The opening of the file, as written. The whole thing — 619 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — MCE Development Guide for AI Agents
This file governs how AI agents develop, maintain, and extend the MCE (MCP Code Execution) codebase. Read it in full before making any change.
1. Project Overview
MCE is a production-grade MCP server built with Python 3.13 and FastMCP. It exposes 4 meta-tools + 1 prompt to LLMs instead of bloating the context with N per-endpoint tools:
| Tool / Prompt | Purpose |
|---|---|
list_servers |
Discover compiled API servers and their functions |
get_functions |
Inspect 1–5 function signatures and return schemas (batch) |
execute_code |
Run LLM-generated Python code in an isolated Docker sandbox |
run_cached_code |
Re-execute a cached snippet with optional parameter overrides |
reusable_code_guide (prompt) |
Concise rules for writing parameterized, cacheable code |
Key invariant: credentials are never embedded in generated code or logs. They are injected exclusively as Docker environment variables at runtime.
2. Repository Layout
/home/ob1/aai/mcp-code-execution/ ← project root
├── pyproject.toml ← single source of truth for deps & tools
├── .env.example ← template; never commit .env
├── config/swaggers.yaml ← swagger source definitions
├── sandbox/
│ ├── Dockerfile ← python:3.13-slim sandbox image
│ ├── entrypoint.py ← code receiver inside sandbox
│ └── requirements.txt ← httpx, pydantic, orjson only
├── src/mce/
│ ├── __init__.py ← version only
│ ├── __main__.py ← CLI: clean | compile | serve | run
│ ├── server.py ← FastMCP tool registration (4 tools + 1 prompt)
│ ├── config.py ← MCEConfig (pydantic-settings)
│ ├── errors.py ← full exception hierarchy
│ ├── models/__init__.py ← ALL pydantic models (single file)
│ ├── compiler/
│ │ ├── swagger_parser.py ← OpenAPI 3.x / Swagger 2.0 parser
│ │ ├── codegen.py ← Jinja2 Python function generator
│ │ ├── orchestrator.py ← compile pipeline coordinator
│ │ ├── llm_enhancer.py ← optional Claude improvement pass
│ │ └── templates/function.py.j2 ← Jinja2 template for functions.py
│ ├── runtime/
│ │ ├── registry.py ← loads manifests, provides lookups
│ │ ├── executor.py ← Docker sandbox execution pipeline
│ │ └── cache.py ← async SQLite cache (aiosqlite)
│ ├── security/
│ │ ├── ast_guard.py ← AST static analysis (runs before exec)
│ │ ├── policies.py ← read-only + domain allowlist enforcement
│ │ └── vault.py ← credential → Docker env var injection
│ └── utils/
│ ├── logging.py ← structlog setup
│ └── hashing.py ← SHA256 helpers for cache keys
├── tests/
│ ├── conftest.py ← shared fixtures (mce_config, specs, sources)
│ ├── fixtures/ ← YAML swagger test fixtures
│ │ ├── weather_api.yaml ← read-only, simple GET endpoints
│ │ ├── hotel_api.yaml ← read-write, path + body params
│ │ └── petstore.yaml ← standard petstore with $ref schemas
│ ├── unit/ ← isolated, no Docker, no network
│ │ ├── test_swagger_parser.py
│ │ ├── test_codegen.py
│ │ ├── test_ast_guard.py
│ │ └── test_cache.py
│ └── integration/ ← requires compiled output on disk
│ └── test_compiler.py
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.
- 2mo ago First seen · 619 lines · 6,710 tokens per session scan A 219c1c8ecffe
mcp-code-execution AGENTS.md is an instructions file published in the GitHub repository hypen-code/mcp-code-execution (10 stars, last pushed 6mo ago), licensed MIT. It adds 6,710 tokens to every session, about $0.0268 per session on Opus 5.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-31.
mcp-code-execution AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-code-execution AGENTS.mdhypen-code/mcp-code-execution | Instructions file | 10 | 6mo ago | MIT | A | 6,710 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |