sphinx-autodoc-fastmcp¶
Sphinx extension for documenting FastMCP tools: card-style desc layouts
(aligned with sphinx-autodoc-api-style), safety badges, parameter tables,
and cross-reference roles (:tool:, :toolref:, :badge:, etc.).
$ pip install sphinx-autodoc-fastmcp
Features¶
Tool cards:
mcp/tooldomaindescnodes with toolbar badgesCollectors:
register(mcp)-style modules orintrospectmode for@mcp.toolConfiguration: module list, area map, model classes for type cross-refs
MyST directives:
fastmcp-tool,fastmcp-tool-input,fastmcp-toolsummary
Package reference¶
Copyable config snippet
extensions = [
"sphinx_autodoc_fastmcp",
]
Package metadata
Source on GitHub: sphinx-autodoc-fastmcp
PyPI: sphinx-autodoc-fastmcp
Maturity:
Alpha
Registered Surface
sphinx_autodoc_fastmcp
Config values
Name |
Default |
Rebuild |
Types |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Directives
Name |
Kind |
Callable |
Summary |
|---|---|---|---|
|
directive |
Autodocument one MCP tool: section (ToC/labels) + card body. |
|
|
directive |
Emit the parameter table for a tool. |
|
|
directive |
Summary tables of tools grouped by safety tier. |
Roles
Name |
Kind |
Callable |
Summary |
|---|---|---|---|
|
role |
Role ``:tool:`name``` → link + badge (resolved later). |
|
|
role |
Role ``:toolref:`name``` → link without badge. |
|
|
role |
||
|
role |
||
|
role |
||
|
role |
||
|
role |
||
|
role |
Role ``:badge:`readonly``` → safety badge. |