Sphinx extension for documenting FastMCP tools (cards, badges, cross-refs)
Project description
sphinx-autodoc-fastmcp
Sphinx extension that documents FastMCP tools with card-style desc layouts (aligned with sphinx-autodoc-api-style), safety badges, parameter tables, and cross-reference roles.
Features
fastmcp-tool: Renders a tool entry as anmcpdomaindesc(definition list card) plus a section for ToC and{ref}labels.fastmcp-tool-input: Parameter table for a tool (place after prose in MyST).fastmcp-toolsummary: Summary tables grouped by safety tier.- Roles:
:tool:,:toolref:,:toolicon/:tooliconl/:tooliconr/:tooliconil/:tooliconir:,:badge:
Configuration
In conf.py after sphinx_autodoc_fastmcp is listed in extensions:
fastmcp_tool_modules = [
"myproject.tools.server_tools",
"myproject.tools.session_tools",
]
fastmcp_area_map = {
"server_tools": "sessions",
"session_tools": "sessions",
}
fastmcp_model_module = "myproject.models"
fastmcp_model_classes = {"SessionInfo", "WindowInfo"}
fastmcp_section_badge_map = {"Inspect": "readonly", "Act": "mutating", "Destroy": "destructive"}
fastmcp_section_badge_pages = {"tools/index", "index"}
fastmcp_collector_mode = "register" # or "introspect"
See the package docstrings and sphinx_autodoc_fastmcp.setup() for defaults.
Dependencies
- Python 3.10+
- Sphinx
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_autodoc_fastmcp-0.0.1a7.tar.gz.
File metadata
- Download URL: sphinx_autodoc_fastmcp-0.0.1a7.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3788cfc26bdea6fc1b6555aa94b24700f054c1618390950c1c2786cd49456b71
|
|
| MD5 |
405eabd1f0f2cf9d8aa5a4e17835de6c
|
|
| BLAKE2b-256 |
b6f1a1b61f98d1dfba042bacffc823f7afea8c5b0a4a088f3896ae88d11f4636
|
Provenance
The following attestation bundles were made for sphinx_autodoc_fastmcp-0.0.1a7.tar.gz:
Publisher:
release.yml on git-pull/gp-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_autodoc_fastmcp-0.0.1a7.tar.gz -
Subject digest:
3788cfc26bdea6fc1b6555aa94b24700f054c1618390950c1c2786cd49456b71 - Sigstore transparency entry: 1278934553
- Sigstore integration time:
-
Permalink:
git-pull/gp-sphinx@041a86491ac6bef4b3a9a1a0c257585c14d88f8d -
Branch / Tag:
refs/tags/v0.0.1a7 - Owner: https://github.com/git-pull
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@041a86491ac6bef4b3a9a1a0c257585c14d88f8d -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_autodoc_fastmcp-0.0.1a7-py3-none-any.whl.
File metadata
- Download URL: sphinx_autodoc_fastmcp-0.0.1a7-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c282c46de60f27ba3970387ca2d721d9bac87d44e3a3e2708daa9873c00366ad
|
|
| MD5 |
3d43d6190623234342cbdcca99671a2c
|
|
| BLAKE2b-256 |
fa95ecbc501d5f1f1d8dc865447ca6a91f494bdaf61c3d508f0814cc14f4c304
|
Provenance
The following attestation bundles were made for sphinx_autodoc_fastmcp-0.0.1a7-py3-none-any.whl:
Publisher:
release.yml on git-pull/gp-sphinx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_autodoc_fastmcp-0.0.1a7-py3-none-any.whl -
Subject digest:
c282c46de60f27ba3970387ca2d721d9bac87d44e3a3e2708daa9873c00366ad - Sigstore transparency entry: 1278934670
- Sigstore integration time:
-
Permalink:
git-pull/gp-sphinx@041a86491ac6bef4b3a9a1a0c257585c14d88f8d -
Branch / Tag:
refs/tags/v0.0.1a7 - Owner: https://github.com/git-pull
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@041a86491ac6bef4b3a9a1a0c257585c14d88f8d -
Trigger Event:
push
-
Statement type: