mcp-beaker: Instructions file for Codex

AGENTS.md

mcp-beaker AGENTS.md is an instructions file for Codex, OpenCode from faizbawa/mcp-beaker. It costs 2,157 tokens per session, scanned A, original, MIT.

Repository instructions for coding agents working on an MCP server for Beaker. An MCP server lets AI tools call software functions, while Beaker manages laboratory machines, jobs, and reservations.

In plain words
What is it for?
It is for setting up the Python project, running its tests and checks, and avoiding documented Beaker-specific mistakes.
Why use it?
It keeps changes consistent with the repository's commands, architecture, tests, and known existing errors.

Instructions file for CodexOpenCode

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

This is faizbawa/mcp-beaker's own configuration. It tells Codex and OpenCode how to work on mcp-beaker 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 mcp-beaker configures →

Reuse

Borrowing it

Nothing to install: this file belongs to faizbawa/mcp-beaker. 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/faizbawa/mcp-beaker/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/faizbawa/mcp-beaker

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 mcp-beaker AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/faizbawa/mcp-beaker/agents-md/github.svg)](https://agentmods.dev/instructions/faizbawa/mcp-beaker/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/faizbawa/mcp-beaker/agents-md"><img src="https://agentmods.dev/badge/instructions/faizbawa/mcp-beaker/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 mcp-beaker AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/faizbawa/mcp-beaker/agents-md"><img src="https://agentmods.dev/badge/instructions/faizbawa/mcp-beaker/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,157 This file is loaded in full into every session.
When invoked 2,157 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.02157 $0.02157
Opus 5.5 $0.00863 $0.00863
Sonnet 5.5 $0.00431 $0.00431
Haiku 4.5 $0.00216 $0.00216

Measured today against content hash 4b1e983310ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp-beaker 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 today.

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 · 165 lines

How it starts

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

AGENTS.md

Instructions for AI coding agents working on mcp-beaker — an MCP server (Python, FastMCP 4 / mcp SDK 2) exposing the Beaker lab (XML-RPC + REST) to AI agents: system search/reservation, job submission and diagnosis.

Commands

Package manager is uv — never pip.

uv sync --dev                     # set up the venv
uv run pytest tests/ -q           # full suite (all must pass)
uv run ruff check src/ tests/     # lint
uv run ruff format --check src/ tests/
uv run mypy src/                  # type check

Baselines (do not fix inside an unrelated change, do not add to them): mypy has a ~30-error pre-existing baseline; ruff has 3 pre-existing findings in tests/test_tools_systems.py; several files carry ruff format drift (the repo uses a deliberate trailing-comma "hug" style) — only format files you newly touch.

To smoke-test the server the way a real MCP client sees it (FastMCP 4's StdioTransport runs with a minimal env, so pass BEAKER_URL explicitly):

BEAKER_URL=https://beaker.example.com uv run python -c "
import asyncio
from fastmcp import Client
from fastmcp.client.transports import StdioTransport
async def main():
    async with Client(StdioTransport('.venv/bin/mcp-beaker', [])) as c:
        tools = await c.list_tools()
        print(len(tools), c.instructions)
asyncio.run(main())
"

Architecture

src/mcp_beaker/
├── __init__.py            # entrypoint / CLI (stdio + http transports)
├── client.py              # BeakerClient: XML-RPC (CookieTransport) +
│                          #   REST (shared pooled httpx.AsyncClient via
│                          #   _request(): session-cookie header,
│                          #   login-redirect detect, 404/401/403 mapping,
│                          #   429 Retry-After retry)
├── config.py              # BeakerConfig / ServerSettings from env
├── instructions.py        # server-level usage instructions (MCP handshake)
├── exceptions.py          # BeakerError hierarchy
└── servers/
    ├── __init__.py        # the FastMCP instance: lifespan, cache_ttl,
    │                      #   ResponseLimitingMiddleware (scoped),
    │                      #   check_write_allowed()
    ├── helpers.py         # SHARED FACILITIES — use these, don't reinvent:
    │                      #   annotation presets (READ_ONLY/MUTATING/
    │                      #   DESTRUCTIVE),
    │                      #   TASKS_AVAILABLE probe, ask_confirmation()
    │                      #   (dual-era MRTR guard), tool_error()
    ├── general.py         # whoami, list_lab_controllers
    ├── systems.py         # system search/details/reserve/loan/power
    ├── jobs.py            # job submit/watch/logs/results
    ├── distros.py         # distro tree / OS family lookup
    ├── tasks.py           # task library search
    ├── prompts.py         # reserve_system, diagnose_beaker_job prompts
    └── resources.py       # static Beaker docs resources

Read the full file on GitHub · 165 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. today First seen · 165 lines · 2,157 tokens per session scan A 4b1e983310ac

Subscribe to this mod's changes

mcp-beaker AGENTS.md is an instructions file published in the GitHub repository faizbawa/mcp-beaker (1 stars, last pushed yesterday), licensed MIT. It adds 2,157 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-12-06.

Related

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

mcp-beaker AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-beaker AGENTS.mdfaizbawa/mcp-beakerInstructions file1yesterdayMITA2,157Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,951Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file291kyesterdayMITA4,396Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot