fastmcp.cli.generate
Generate a standalone CLI script and agent skill from an MCP server.
Functions
serialize_transport
(expression, extra_imports) where extra_imports is a set of
import lines needed by the expression. Raises ValueError for a transport
that cannot be written as a Python expression.