Skip to main content

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 an mcp domain desc (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


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.1a6.tar.gz (14.9 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.1a6-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_autodoc_fastmcp-0.0.1a6.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_autodoc_fastmcp-0.0.1a6.tar.gz
Algorithm Hash digest
SHA256 aee2314d3c59d40dd4a320669727a21e11dfae631a3635dfcf662624534b2312
MD5 0cdcb8fabe27814002c31279175513a5
BLAKE2b-256 b27fe8f4ac95a6d203b9c9098fac6be6dbb9492310604ce2042fb9294f554a91

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_fastmcp-0.0.1a6.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.1a6-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_autodoc_fastmcp-0.0.1a6-py3-none-any.whl
Algorithm Hash digest
SHA256 8c5088390a8b255710e658719b289cbe2c5e93cb56ca2f9284a2c10e69e3c847
MD5 1b025fc976cf57757e6970d242dd5382
BLAKE2b-256 3647259f9641d3313592d247f292f9a27602bf3012de898f8d847e691db41ac1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_autodoc_fastmcp-0.0.1a6-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.

Supported by

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