fastmcp.utilities.inspect
Utilities for inspecting FastMCP instances.
Functions
inspect_fastmcp_v2
mcp
: The FastMCP v2.x instance to inspect
- FastMCPInfo dataclass containing the extracted information
inspect_fastmcp_v1
mcp
: The FastMCP v1.x instance to inspect
- FastMCPInfo dataclass containing the extracted information
inspect_fastmcp
mcp
: The FastMCP instance to inspect (v1.x or v2.x)
- FastMCPInfo dataclass containing the extracted information
format_fastmcp_info
format_mcp_info
format_info
mcp
: The FastMCP instanceformat
: Output format (“fastmcp” or “mcp”)info
: Pre-extracted FastMCPInfo (optional, will be extracted if not provided)
- JSON bytes in the requested format