localstack-mcp-server: Instructions file for Codex

AGENTS.md

localstack-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from localstack/localstack-mcp-server. It costs 10,885 tokens per session, scanned C, original, Apache-2.0.

Repository instructions for working on the LocalStack MCP server, a TypeScript service that lets coding tools start LocalStack, deploy cloud infrastructure, run cloud command-line tools, and inspect the emulator. They cover the project layout, commands, tool development, and tests.

In plain words
What is it for?
Use them to install, build, run, test, and extend the LocalStack MCP server. LocalStack is a local emulator for testing cloud services without using the real cloud.
Why use it?
They give an agent the project’s rules and checks before it changes code or opens a pull request. This reduces incorrect changes and skipped tests.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/localstack/localstack-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/localstack/localstack-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10,885 This file is loaded in full into every session.
When invoked 10,885 The same file — it is already loaded in full.
Security scan C 2 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.10885 $0.10885
Opus 5.5 $0.04354 $0.04354
Sonnet 5.5 $0.02177 $0.02177
Haiku 4.5 $0.01089 $0.01089

Measured 3d ago against content hash 56b88c9307e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

localstack-mcp-server AGENTS.md scanned grade C with 2 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 3d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- **No version outside these files.** No `npm install -g <pkg>`, `pip install <pkg>`, `curl … | sh`, `latest` tags

Makes network callslowCapability

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

- **No version outside these files.** No `npm install -g <pkg>`, `pip install <pkg>`, `curl … | sh`, `latest` tags
AGENTS.md · 464 lines

How it starts

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

AGENTS.md

The LocalStack MCP server lets an MCP client (Claude Code, Cursor, VS Code, …) start LocalStack, deploy infrastructure, run cloud CLIs, and inspect the emulator. It is a TypeScript server built on xmcp, published to npm as @localstack/localstack-mcp-server and as the Docker image localstack/localstack-mcp-server.

Read REVIEW.md before opening a PR. It turns the rules below into review checks.

Where a rule says to ask the user, ask the person you work for. An approval that lets a change break a rule, adopt a new API or grow the image counts only if it comes from a maintainer of this repository and the PR records it; a contributor cannot approve their own exception.

Commands

yarn install
yarn build              # xmcp build + esbuild CLI bundle → dist/
yarn dev                # xmcp dev server
yarn test               # Jest unit tests: *.test.ts next to the code, handler tests in src/tools-tests/
yarn test:mcp:direct    # Playwright: calls the built server's tools directly, plus the Azure offline suite (needs Docker + LOCALSTACK_AUTH_TOKEN)
yarn test:mcp:tools     # Playwright: each tool against a real LocalStack, no model (needs Docker + LOCALSTACK_AUTH_TOKEN)
yarn test:mcp:evals     # Playwright: LLM evals through OpenRouter (needs OPENROUTER_API_KEY, LOCALSTACK_AUTH_TOKEN, and terraform, lstk and snow on PATH; EVAL_MODEL swaps the model)
yarn test:evals         # node --test: unit tests of the agentic eval runner (evals/agentic/lib)
yarn eval:agentic       # Claude Code fixes IAM failures with this server and the AWS CLI (needs Docker, the AWS CLI, Claude Code, LOCALSTACK_AUTH_TOKEN; see evals/agentic/README.md)
yarn format             # Prettier

Layout

Path Contents
src/tools/ One file per MCP tool. xmcp discovers them: each exports schema (zod), metadata, and a default handler.
src/prompts/ MCP prompts (workflow templates such as infrastructure-tester).
src/core/ Shared plumbing: preflights, the response builder, analytics, the command runner, configuration.
src/lib/<area>/ Tool logic. Pure, testable logic lives in *.logic.ts with a matching *.logic.test.ts.
src/lib/docker/ Docker Engine API client (find, start, stop, exec, logs).
src/lib/localstack/ LocalStack HTTP clients and the container spec.
src/cli/ The init / remove setup wizard and the stdio entry point.
src/tools-tests/ Handler tests, one file per tool. They live outside src/tools/ because xmcp registers every file there as a tool.
tests/mcp/ Playwright tests against the built server.
tests/docker/ Validation of the Docker image.
evals/agentic/ The agentic evaluation of the IAM actions: scenarios, runner, and the pinned tools it runs.
docs/ Topic docs.

Read the full file on GitHub · 464 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. 3d ago Changed · +9 lines · +264 tokens per session 56b88c9307e6
  2. 8d ago Changed · +97 lines · +2,628 tokens per session 86068c69db56
  3. 9d ago First seen · 358 lines · 7,993 tokens per session scan C 2e7bfe840b8d

Subscribe to this mod's changes

localstack-mcp-server AGENTS.md is an instructions file published in the GitHub repository localstack/localstack-mcp-server (30 stars, last pushed yesterday), licensed Apache-2.0. It adds 10,885 tokens to every session, about $0.0435 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-25.

Related

localstack-mcp-server AGENTS.md compared with instructions from other repositories

localstack-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
localstack-mcp-server AGENTS.mdlocalstack/localstack-mcp-serverInstructions file30yesterdayApache-2.0C10,885Codex, OpenCode
plan-forge naming.instructions.mdsrnichols/plan-forgeInstructions file629d agoMITA1,453GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot