fastmcp-docs CLAUDE.md

fastmcp-docs CLAUDE.md is an instructions file for coding agents 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

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/orco82/fastmcp-docs/claude-md
Clone the repo
git clone --depth 1 https://github.com/orco82/fastmcp-docs

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.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.svg" alt="Measured on agentmods" 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. 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.01363 $0.01363
Opus 5 $0.00681 $0.00681
Sonnet 5 $0.00273 $0.00273
Haiku 4.5 $0.00136 $0.00136

Measured 5d ago against content hash 45dbfc999668, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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. 5d 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 6mo ago), licensed MIT. It adds 1,363 tokens to every session, about $0.0068 per session on Opus 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.