mcp-hello-server: Instructions file for Claude Code

CLAUDE.md

mcp-hello-server CLAUDE.md is an instructions file for Claude Code from mitchallen/mcp-hello-server. It costs 2,964 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. Also seen: mentions CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to mitchallen/mcp-hello-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/mitchallen/mcp-hello-server/main/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/github.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/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-hello-server CLAUDE.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,964 This file is loaded in full into every session.
When invoked 2,964 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.02964 $0.02964
Opus 5.5 $0.01186 $0.01186
Sonnet 5.5 $0.00593 $0.00593
Haiku 4.5 $0.00296 $0.00296

Measured 3d ago against content hash 8745d04040fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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

How it starts

The opening of the file, as written. The whole thing — 177 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 test → uv 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.
  • The scan check also smoke-tests the container: image-scan.yml runs the freshly built image and calls make docker-smoke against it (an MCP initialize that must return this server's name), so an image that builds but crashes at startup fails the PR. make docker-test runs the same check against the published image instead.
  • 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 · 177 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 · +25 lines · +377 tokens per session 8745d04040fa
  2. 17d ago Changed · +32 lines · +552 tokens per session 1c69ca48bade
  3. 2mo 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 2d ago), licensed MIT. It adds 2,964 tokens to every session, about $0.0119 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-08-31.

Related

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

mcp-hello-server CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp-hello-server CLAUDE.mdmitchallen/mcp-hello-serverInstructions file02d agoMITA2,964Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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