fastmcp library
Classes
- CallToolResult
- The result of a successful tool call.
- CancellationToken
- A token that can be used to signal that an operation should be cancelled.
- Content
- Base class for all MCP content types, representing a piece of information in a message or tool result.
- FastMCP
- HttpTransport
- HttpTransportConfig
- ImageContent
- Represents an image.
- McpContext
- A context object injected into tool handlers for access to advanced features.
- Message
- Represents a single message in a prompt sequence (e.g., system, user, assistant).
- Param
- Annotation for providing metadata about a tool's parameter.
- Prompt
- Represents an MCP Prompt, serving as both an annotation and a data model.
- PromptResult
- The result returned from a prompt handler function.
- PromptResultWrapper
- ReadResourceResult
- The result returned from a resource handler function.
- Resource
- Represents an MCP Resource, serving as both an annotation and a data model.
- ResourceContent
- Represents the content of a resource, used in the result of a resource handler.
- ResourceResultWrapper
- ServerTransport
- Abstract base class for server transport implementations.
- StdioTransport
- Transport implementation using standard input/output streams.
- TextContent
- Represents a piece of textual information.
- Tool
- Represents an MCP Tool, serving as both an annotation and a data model.
- ToolResultWrapper