Write or revise a page under docs/ for gofastmcp.com. Use when adding a feature's documentation, fixing a docs issue, reworking a page, or auditing pages for ac
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-docs-84824e4d1c59 ,按照其中的说明把「docs」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
The docs are a Mintlify site built from docs/. A page exists only when docs/docs.json lists it, and a feature exists only when a page documents it. docs/python-sdk/** is generated from docstrings by a bot; edit the docstring, not the page.
rg -l "<feature>" docs --glob '!docs/python-sdk/**' --glob '!docs/v2/**' --glob '!docs/v3/**'. Extend it when the feature belongs to that page's subject; add a page when it has its own.docs.json group and match their section order and heading depth.main. Merged is not live: the site serves published-docs. A stable release from main opens a Publish FastMCP v<version> docs PR against published-docs that a maintainer merges; for a docs-only change between releases, follow "Publishing docs by hand" in .agents/skills/release/SKILL.md. Either way, the Deploy docs run's verdict is what says the site changed.---
title: Feature Name
sidebarTitle: Feature
description: One sentence a search result can show.
icon: some-fontawesome-icon
---
import { VersionBadge } from '/snippets/version-badge.mdx'
<VersionBadge version="<version that introduces the feature>" />
One paragraph on the problem this solves and when to reach for it.
## Basic usage
Explain what the example does, then show it.
```python
from fastmcp import FastMCP
mcp = FastMCP("Demo")
@mcp.tool
def greet(name: str) -> str:
return f"Hello, {name}!"
```
## Configuration
One subsection per option that changes behavior, each with a sentence on the default and an example of the override.
## How it works
Only when the mechanism affects what the reader should do. Put a one-sentence text description before any diagram.
Second person, present tense, plain assertions. Say what the feature does and what the reader should do; leave out marketing adjectives and reassurance. The first sentence of each section carries its point. Prose holds the important information; code comments hold none of it. Wrap bare {} in backticks, since Mintlify reads them as JSX.
Every <img> and ![]() gets alt text that says what the picture shows. Decorative media gets aria-hidden="true". Headings step one level at a time. Link text names the destination. Tables have a header row. Code fences carry a language. Diagrams get a text description. Custom CSS keeps text at 4.5:1 contrast and animations behind prefers-reduced-motion.
(cd docs && npx --yes mint@latest broken-links)
uv run pytest tests/docs -n 0
The first catches dead links and MDX parse errors and names the file and line. The second parses every Python block in docs/ and resolves every fastmcp import. A block that must not run takes test="skip" on its fence.
For a visual change, run npx --yes mint@latest dev in docs/ and look at the page at 1280px and 390px, light and dark.
VersionBadge marks when a feature arrived. Leave old badges alone; they are history, not staleness.docs/v2/ and docs/v3/ are frozen snapshots of earlier majors. Maintenance releases add changelog entries there and nothing else.docs/docs.json under navigation.versions[0].version and is bumped by hand.mcp_types is the real name of the protocol types package in 4.x.