_is_pydantic_serializable
- type_annotation: The type annotation to check
_validate_function_types
- func (Callable[…, Any]): The function to validate.
MCPServer
BaseToolkit) with a FastMCP server.
Parameters:
- function_names (Optional[list[str]]): A list of method names to expose via the MCP server. If not provided and the class is a subclass of
BaseToolkit, method names will be inferred from the tools returned byget_tools(). - server_name (Optional[str]): A name for the MCP server. If not provided, the class name of the decorated object is used.
init
make_wrapper
- func (Callable[…, Any]): The function to wrap.
call
- cls (type): The class being decorated.