Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

sphinx-autodoc-fastmcp

Sphinx extension that documents FastMCP tools with card-style section entries built from the shared api-* layout regions, plus safety badges, parameter tables, and cross-reference roles.

The shipped output intentionally keeps a section wrapper for stable ToC labels and :tool: / :toolref: behavior, but the inner card, badges, and type rendering now come from sphinx_ux_autodoc_layout, sphinx_ux_badges, and sphinx_autodoc_typehints_gp.

Features

  • fastmcp-tool: Renders a tool entry as a section card with shared api-header / api-content regions plus a section target for ToC and {ref} labels.
  • fastmcp-tool-input: Parameter table for a tool (place after prose in MyST).
  • fastmcp-tool-summary: 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 8.1+
  • sphinx-ux-badges, sphinx-ux-autodoc-layout, and sphinx-autodoc-typehints-gp are declared dependencies and installed automatically with this package.

sphinx_autodoc_fastmcp automatically registers sphinx_ux_badges, sphinx_ux_autodoc_layout, and sphinx_autodoc_typehints_gp via app.setup_extension(). You do not need to add them separately to your extensions list.

Documentation

See the full documentation for directive options, role reference, and live tool card demos.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_autodoc_fastmcp-0.0.1a34.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_autodoc_fastmcp-0.0.1a34-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_autodoc_fastmcp-0.0.1a34.tar.gz.

File metadata

File hashes

Hashes for sphinx_autodoc_fastmcp-0.0.1a34.tar.gz
Algorithm Hash digest
SHA256 44769bb6a984a7fc213bd922e7b3aef4409ffef929151c17c0ff8b2e3f2f8eda
MD5 6e0be4d169e790e4ac68b541982e4393
BLAKE2b-256 de1ad71e0a424a4685302c252343030ca3ca00ba18cf3a12576b3bad160b13ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_fastmcp-0.0.1a34.tar.gz:

Publisher: release.yml on git-pull/gp-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_autodoc_fastmcp-0.0.1a34-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_autodoc_fastmcp-0.0.1a34-py3-none-any.whl
Algorithm Hash digest
SHA256 f3fc345740fa8cd8c6d2754436d84d1f5eb76cfcd98d35bbaf3a2e66f9f0ba16
MD5 dfc4968dc38a15e06d8a0bdda2bdd7fb
BLAKE2b-256 c1d0fe4f3c6ff9b3bba315d94a0350ecbe199c7108c9690344e123348dd38600

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_fastmcp-0.0.1a34-py3-none-any.whl:

Publisher: release.yml on git-pull/gp-sphinx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.1a34 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page