cloud-mcp-server CLAUDE.md

cloud-mcp-server CLAUDE.md is an instructions file for coding agents from alexei-led/cloud-mcp-server. It costs 1,114 tokens per session, scanned C, original, MIT.

A project-specific development guide for an AWS MCP server. It documents how the server is structured, how its two tools behave, and which commands build, test, lint, format, run, and release it.

In plain words
What is it for?
Installing dependencies, running tests or a single test, checking and formatting Python code, starting the server with different transports or sandbox settings, updating the lockfile, and preparing tagged releases.
Why use it?
It gives the agent the project’s expected commands and design rules in one place, reducing mistakes when changing or checking the server.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/alexei-led/cloud-mcp-server/claude-md
Clone the repo
git clone --depth 1 https://github.com/alexei-led/cloud-mcp-server

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 cloud-mcp-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/alexei-led/cloud-mcp-server/claude-md.svg)](https://agentmods.dev/instructions/alexei-led/cloud-mcp-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/alexei-led/cloud-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/alexei-led/cloud-mcp-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,114 This file is loaded in full into every session.
When invoked 1,114 The same file — it is already loaded in full.
Security scan C 1 finding. Scan, not verified.
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 $0.01114 $0.01114
Opus 5 $0.00557 $0.00557
Sonnet 5 $0.00223 $0.00223
Haiku 4.5 $0.00111 $0.00111

Measured 5d ago against content hash 65115bcc52e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

cloud-mcp-server CLAUDE.md scanned grade C 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 5d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- `aws://profiles` — parses `~/.aws/credentials` and `~/.aws/config`
CLAUDE.md · 77 lines

How it starts

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

AWS MCP Server Development Guide

Build & Test Commands

  • Install all deps: uv pip install --system -e ".[dev]"
  • Run tests: make test or python -m pytest -v -m "not integration" --timeout=60
  • Run single test: pytest tests/path/to/test_file.py::test_function_name -v
  • Run linter: ruff check src/ tests/
  • Format code: ruff format src/ tests/
  • Run server: python -m aws_mcp_server
  • Run with streamable-http: AWS_MCP_TRANSPORT=streamable-http python -m aws_mcp_server
  • Run with sandbox disabled: AWS_MCP_SANDBOX=disabled python -m aws_mcp_server
  • Update lockfile: uv pip compile --system pyproject.toml -o uv.lock
  • Versioning: setuptools_scm from Git tags — tag as v1.x.y to release

Architecture

Server (server.py)

  • Two tools: aws_cli_help (readOnly) and aws_cli_pipeline (destructive, openWorld)
  • FastMCP instance with instructions, icons, SERVER_DESCRIPTION
  • Tools use ToolAnnotations from mcp.types for tool metadata
  • Tool functions return typed dataclasses (CommandResult, CommandHelpResult)
  • All tool failures raise ToolError — FastMCP sets isError: true in protocol response (SEP-1303)

Sandbox (sandbox.py)

  • Landlock LSM for filesystem isolation (Linux only)
  • Seccomp-bpf for syscall filtering
  • AWS env vars from SANDBOX_AWS_ENV_VARS are passed through to sandboxed processes
  • AWS_MCP_SANDBOX=disabled to bypass for development; required to fail hard if unavailable

CLI Executor (cli_executor.py)

  • All commands validated before execution (must start with aws)
  • Pipe support: commands can include | jq, | grep, etc.
  • Timeout handling with configurable default (300s)
  • Returns {"status": "success"|"error", "output": "..."} dict

Transport & Lifecycle (__main__.py)

  • Transports: stdio (default), streamable-http (recommended for web), sse (deprecated)
  • On stdio: background thread monitors for client disconnect via select.poll or parent PID
  • On sse/streamable-http: binds to 0.0.0.0 in Docker, 127.0.0.1 otherwise

Read the full file on GitHub · 77 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. 5d ago First seen · 77 lines · 1,114 tokens per session scan C 65115bcc52e7

Subscribe to this mod's changes

cloud-mcp-server CLAUDE.md is an instructions file published in the GitHub repository alexei-led/cloud-mcp-server (186 stars, last pushed 6mo ago), licensed MIT. It adds 1,114 tokens to every session, about $0.0056 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.