mcp-hello-server CLAUDE.md

mcp-hello-server CLAUDE.md is an instructions file for Claude Code from mitchallen/mcp-hello-server. It costs 2,035 tokens per session, scanned A, original, MIT.

Project instructions for a small Python MCP server, a service that gives an AI coding agent callable tools. This server has a health check and a greeting tool that supports several languages.

In plain words
What is it for?
Checking server status, generating greetings, understanding the project structure, and running its unit and behavior-driven tests. BDD means testing software through user-visible behaviors.
Why use it?
They give the agent project-specific guidance about the code layout, conventions, tests, and known issues, so changes can follow the repository's rules.

Instructions file for Claude Code

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

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/mitchallen/mcp-hello-server/claude-md
Clone the repo
git clone --depth 1 https://github.com/mitchallen/mcp-hello-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 mcp-hello-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mitchallen/mcp-hello-server/claude-md.svg)](https://agentmods.dev/instructions/mitchallen/mcp-hello-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mitchallen/mcp-hello-server/claude-md"><img src="https://agentmods.dev/badge/instructions/mitchallen/mcp-hello-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,035 This file is loaded in full into every session.
When invoked 2,035 The same file — it is already loaded in full.
Security scan A 0 findings. 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.1 $0.02035 $0.02035
Opus 5 $0.01018 $0.01018
Sonnet 5 $0.00407 $0.00407
Haiku 4.5 $0.00203 $0.00203

Measured 5d ago against content hash 4510be233471, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

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

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.

CLAUDE.md · 120 lines

How it starts

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

mcp-hello-server — notes for Claude

A minimal MCP server built with Python / FastMCP — a good starting point for a new server or a demo. It exposes two tools: server_info (a health/status check) and greet (a friendly greeting in one of a handful of languages, defaulting to English). Built with uv, FastMCP, pytest, and make; multi-stage Docker on a distroless Chainguard/Wolfi Python base (cgr.dev/chainguard/python) for a near-zero-CVE image. It was scaffolded from the sibling random-mcp-server by stripping every tool down to server_info and adding the greet demo tool.

Layout

  • src/mcp_hello_server/greetings.py — greeting data (GREETINGS), language resolution (names, aliases, ISO codes), and the greet() builder.
  • src/mcp_hello_server/server.py — the FastMCP server (mcp), its tools (server_info, greet), and the main() console-script entry point (mcp-hello-server).
  • tests/ — pytest suite. test_server.py drives the tools through an in-memory FastMCP Client (no network, no subprocess); test_greetings.py unit-tests the resolver/builder; test_bdd.py + tests/features/*.feature are a pytest-bdd layer.

Conventions

  • Dependencies / venv: managed by uv. make install runs uv sync (creates .venv). uv.lock is committed and the Dockerfile installs --frozen from it, so run make lock (or uv lock) whenever pyproject.toml deps change.
  • Running: make run (stdio, the default MCP transport), make run-http (streamable HTTP on PORT, default 8000), make dev (FastMCP Inspector). The transport is chosen by MCP_TRANSPORT (stdio | http | sse).
  • Tests: make testuv run pytest.
  • Adding a tool: give it a title and MCP annotations. Both current tools are pure reads (readOnlyHint: True, openWorldHint: False); a tool that mutates state or reaches the network should flip those and add destructiveHint/idempotentHint, which are only meaningful when readOnlyHint is false.
  • Adding a language: add a row to GREETINGS in greetings.py (and, optionally, an alias / ISO code in _ALIASES). server_info reports the supported set automatically.
  • Docker: the image defaults to HTTP transport (MCP_TRANSPORT=http, HOST=0.0.0.0, PORT=8000) so it's reachable on a published port. The base is distroless Chainguard/Wolfi Python (cgr.dev/chainguard/python), which already runs as the non-root nonroot user (uid 65532) and has no shell / package manager. The venv is built on the matching -dev image so its interpreter symlink resolves at runtime. make scan should report 0 CRITICAL/HIGH.
  • Trivy version is pinned in two places that must move together. The Makefile's TRIVY_VERSION (used as aquasec/trivy:$(TRIVY_VERSION) by make scan) and the version: input on every aquasecurity/trivy-action step (image-scan.yml ×2, publish.yml, publish-dockerhub.yml, scan-scheduled.yml). Bump all of them in the same change. Dependabot covers neither: its docker ecosystem reads the Dockerfile only, so it never sees the Makefile tag, and its github-actions ecosystem bumps the action while the scanner binary inside it stays put — the action's own default lags badly (v0.36.0 still defaults to trivy v0.70.0, which is what CI silently ran until the pin landed). Leaving the Makefile on an unpinned aquasec/trivy is worse than a stale pin: local drifts to whatever :latest resolves to while CI sits on the action default, so a local pass stops predicting the required scan check.
  • Releasing: make release (BUMP=patch|minor|major, default patch) bumps the version and opens a release/vX.Y.Z PR carrying the bump plus the CHANGELOG.md section, waits for main's required checks, merges it, then tags vX.Y.Z — the tag triggers the GHCR, Docker Hub, and PyPI publish workflows (publish, publish-dockerhub, publish-pypi). It then creates the matching GitHub Release (gh release create) using that version's CHANGELOG.md section as the notes (extracted with awk), so the tag, images, package, and Release stay in sync — the Releases page previously drifted because the tag was pushed without a Release object.
    • Write the new version's CHANGELOG.md entry (Keep a Changelog format, top of the file) before running it — the release notes are only as good as that section, and the run aborts if the section is missing. You may leave that edit uncommitted; it rides along in the release PR. Everything else must be committed first.
    • It must not go back to pushing the bump straight to main. That only ever worked because enforce_admins was off, so the release commit reached main without running unit/bdd and the tag was built from an unchecked commit. Branch protection now enforces admins, so a direct push is refused outright.
    • The target is re-runnable: if a run stops (checks failed, merge declined), re-running resumes the existing release/vX.Y.Z branch and skips straight to whatever step is left, rather than bumping the version a second time. It also won't re-tag or re-create an existing Release.
  • Branch protection on main: required checks are unit, bdd, and scan (the Trivy image gate), with enforce_admins on — nothing reaches main without them, including releases. Because scan is required, a newly disclosed fixable CRITICAL/HIGH blocks merges until the bump that clears it lands; that's the intended behavior, and Dependabot's uv ecosystem opens that bump.
  • PyPI trusted publishing: publish-pypi.yml uploads to PyPI via OIDC trusted publishing (no stored token), from the pypi GitHub environment. The PyPI Trusted Publisher must stay constrained to the pypi environment (owner mitchallen, repo mcp-hello-server, workflow publish-pypi.yml). If it's ever reconfigured, don't leave the environment field blank — an unconstrained publisher lets any workflow/environment in the repo publish, and PyPI will nag you to constrain it. Version badges (PyPI, Python) are cached proxy images (shields.io + PyPI's own image cache) and can lag a release by hours — that's cosmetic, not drift; see the badge note in README.md.

Read the full file on GitHub · 120 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 · 120 lines · 2,035 tokens per session scan A 4510be233471

Subscribe to this mod's changes

mcp-hello-server CLAUDE.md is an instructions file published in the GitHub repository mitchallen/mcp-hello-server (0 stars, last pushed 5d ago), licensed MIT. It adds 2,035 tokens to every session, about $0.0102 per session on Opus 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-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens