Borrowing it
Nothing to install: this file belongs to george-bobby/mcp-modal. 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/george-bobby/mcp-modal/main/CLAUDE.mdgit clone --depth 1 https://github.com/george-bobby/mcp-modalWrote 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/george-bobby/mcp-modal/claude-md)<a href="https://agentmods.dev/instructions/george-bobby/mcp-modal/claude-md"><img src="https://agentmods.dev/badge/instructions/george-bobby/mcp-modal/claude-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/george-bobby/mcp-modal/claude-md"><img src="https://agentmods.dev/badge/instructions/george-bobby/mcp-modal/claude-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.04010 | $0.04010 |
| Opus 5.5 | $0.01604 | $0.01604 |
| Sonnet 5.5 | $0.00802 | $0.00802 |
| Haiku 4.5 | $0.00401 | $0.00401 |
Grade A, and why
mcp-modal CLAUDE.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 1mo 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- `run_modal_command` — blocking `subprocess.run(check=True)`. Use for commands that terminate on their own (list, create, delete, history, rollback, …). How it starts
The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project
mcp-modal is an MCP (Model Context Protocol) server that exposes 12 tools and 4 prompts for managing Modal (apps, containers, volumes, secrets) and for deploying/running Modal apps. It is published to PyPI as mcp-modal and is meant to be launched by MCP clients via uvx mcp-modal.
Common commands
# Install/sync deps (creates .venv/)
uv sync
# Run the server locally (stdio transport — for testing it speaks MCP)
uv run mcp-modal
# Build the wheel/sdist (hatchling backend)
uv build
# Smoke-test against a real Modal account — the server shells out to the local
# `modal` CLI, so credentials must already be configured:
modal setup # one-time login → ~/.modal.toml
modal profile current # verify which workspace you're using
There is no test suite, linter config, or CI in this repo. Don't claim a change is verified by tests — exercise it by running the server against a real Modal account, or by inspecting the constructed CLI commands in the returned command field.
Architecture
Module layout
src/mcp_modal/
server.py assembly point: imports the pieces, re-exports the public names, main()
app.py the FastMCP instance (`mcp`), `logger`, and _read_only/_mutating
command.py argv helpers (_add_env, _uv_prefixed, path allowlist) + the two runners
output.py output caps and the response envelope (handle_json_response, json_listing…)
logsearch.py pure log-text logic: grep_lines, filter_log_lines, cap_blocks, window checks
billing.py pure cost math: Decimal helpers, _row_field aliases, group_costs, cost_movers
prompts.py the 4 @mcp.prompt() workflows
tools/ the 12 @mcp.tool() functions, one module per group
deploy.py resources.py logs.py apps.py volumes.py secrets.py costs.py
The dependency graph runs strictly one way: app → command → output → logsearch → tools/prompts → server, with billing depending on nothing but the stdlib. (output imports command because json_listing runs the command itself, and logsearch imports output for the character budget cap_blocks spends.) Nothing under tools/ is imported by a support module, and app.py imports nothing from the package — keep it that way and there are no cycles to reason about.
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.
- 1mo ago Changed · +28 lines · +1,027 tokens per session 16392ce953e1
- 2mo ago Changed · +48 lines · +1,591 tokens per session 57fdec1e60e5
- 2mo ago First seen · 84 lines · 1,392 tokens per session scan A 34206ab5b165
mcp-modal CLAUDE.md is an instructions file published in the GitHub repository george-bobby/mcp-modal (4 stars, last pushed 1mo ago), licensed MIT. It adds 4,010 tokens to every session, about $0.0160 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
mcp-modal CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-modal CLAUDE.mdgeorge-bobby/mcp-modal | Instructions file | 4 | 1mo ago | MIT | A | 4,010 | Claude Code |
| plan-forge naming.instructions.mdsrnichols/plan-forge | Instructions file | 6 | 2d ago | MIT | A | 1,453 | GitHub Copilot |
| 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 |