fastmcp-docs: Instructions file for Claude Code

CLAUDE.md

fastmcp-docs CLAUDE.md is an instructions file for Claude Code from orco82/fastmcp-docs. It costs 1,363 tokens per session, scanned C, original, MIT.

Repository instructions for FastMCP Docs, a Python library that creates Swagger-like web documentation for FastMCP servers. FastMCP is a tool for building servers that expose functions to AI assistants.

In plain words
What is it for?
Use it when developing, testing, documenting, packaging, or publishing the FastMCP Docs Python package.
Why use it?
It records the setup, testing, formatting, type-checking, build, and release commands needed to work on the library. This avoids guessing how to verify or publish changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is orco82/fastmcp-docs's own configuration. It tells Claude Code how to work on fastmcp-docs 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 fastmcp-docs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to orco82/fastmcp-docs. 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/orco82/fastmcp-docs/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/orco82/fastmcp-docs

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 fastmcp-docs CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/orco82/fastmcp-docs/claude-md/github.svg)](https://agentmods.dev/instructions/orco82/fastmcp-docs/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/orco82/fastmcp-docs/claude-md"><img src="https://agentmods.dev/badge/instructions/orco82/fastmcp-docs/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 fastmcp-docs CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/orco82/fastmcp-docs/claude-md"><img src="https://agentmods.dev/badge/instructions/orco82/fastmcp-docs/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,363 This file is loaded in full into every session.
When invoked 1,363 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.01363 $0.01363
Opus 5.5 $0.00545 $0.00545
Sonnet 5.5 $0.00273 $0.00273
Haiku 4.5 $0.00136 $0.00136

Measured 2mo ago against content hash 45dbfc999668, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

fastmcp-docs 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf dist/ fastmcp_docs.egg-info/
CLAUDE.md · 171 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

FastMCP Docs is a Python library that generates Swagger-style documentation for FastMCP servers. It automatically extracts tool information from FastMCP instances and provides a web-based UI similar to Swagger/OpenAPI documentation interfaces.

Key Commands

Development Setup

# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install package in development mode
pip install -e ".[dev]"

Testing

# Run all tests
pytest

# Run with verbose output
pytest -v

# Run specific test file
pytest tests/test_extractor.py

Code Formatting

# Format all code
black fastmcp_docs/

Type Checking

# Type check with mypy
mypy fastmcp_docs/

Building and Distribution

# Clean previous builds
rm -rf dist/ fastmcp_docs.egg-info/

# Build package
uv run python -m build

# Check distribution
uv run python -m twine check dist/*

# Upload to PyPI
uv run python -m twine upload dist/*

# Install from local build
pip install -e .

Version Bump Process:

  1. Update version in pyproject.toml
  2. Run full build and distribution process above
  3. Commit and tag the release:
    git add -A
    git commit -m "Release v1.0.0: Add FastMCP v3 support"
    git tag -a v1.0.0 -m "Version 1.0.0"
    git push && git push --tags
    

Running Examples

# Run basic usage example
python examples/basic_usage.py

Architecture

Core Components

The library consists of five main modules:

  1. __init__.py - Main entry point exposing the FastMCPDocs class

    • Provides the public API for library users
    • Coordinates between extractor, routes, and config modules
    • Setup is async because it needs to call async methods on FastMCP server
  2. config.py - Configuration dataclasses

    • FastMCPDocsConfig: Main configuration with route paths, OpenAPI settings, UI customization
    • DocsLink: Simple dataclass for documentation links
    • Configuration supports dict-to-DocsLink conversion in __post_init__

Read the full file on GitHub · 171 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 · 171 lines · 1,363 tokens per session scan C 45dbfc999668

Subscribe to this mod's changes

fastmcp-docs CLAUDE.md is an instructions file published in the GitHub repository orco82/fastmcp-docs (5 stars, last pushed 8mo ago), licensed MIT. It adds 1,363 tokens to every session, about $0.0055 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

fastmcp-docs CLAUDE.md compared with instructions from other repositories

fastmcp-docs CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fastmcp-docs CLAUDE.mdorco82/fastmcp-docsInstructions file58mo agoMITC1,363Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot