cloud-mcp-server: Instructions file for Claude Code

CLAUDE.md

cloud-mcp-server CLAUDE.md is an instructions file for Claude Code 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 for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is alexei-led/cloud-mcp-server's own configuration. It tells Claude Code how to work on cloud-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 cloud-mcp-server configures →

Reuse

Borrowing it

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

Made for: Claude Code.

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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.01114 $0.01114
Opus 5.5 $0.00446 $0.00446
Sonnet 5.5 $0.00223 $0.00223
Haiku 4.5 $0.00111 $0.00111

Measured 2mo ago against content hash 65115bcc52e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 2mo 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 8mo ago), licensed MIT. It adds 1,114 tokens to every session, about $0.0045 per session on Opus 5.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.

Related

cloud-mcp-server CLAUDE.md compared with instructions from other repositories

cloud-mcp-server CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloud-mcp-server CLAUDE.mdalexei-led/cloud-mcp-serverInstructions file1868mo agoMITC1,114Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode