mcp library

Classes

Annotations
Optional client hints attached to MCP content objects.
AudioContent
Audio content block for LLM interactions.
BlobResourceContents
Binary resource content encoded as base64.
BooleanSchema
CallToolRequest
A tools/call JSON-RPC request.
CallToolRequestParams
Parameters for a tools/call request.
CallToolResult
The server's response to a tools/call request.
CallToolResultResponse
CancelledNotification
CancelledNotificationParams
CancelTaskRequest
CancelTaskResult
CancelTaskResultResponse
ClientCapabilities
Capabilities declared by the MCP client.
CompleteRequest
CompleteRequestParams
CompleteRequestParamsArgument
CompleteRequestParamsContext
CompleteResult
CompleteResultCompletion
CompleteResultResponse
ContentBlock
Base class for all MCP content blocks (text, image, audio, resource, etc.).
CreateMessageRequest
CreateMessageRequestParams
CreateMessageResult
CreateTaskResult
CreateTaskResultResponse
ElicitationCompleteNotification
ElicitationCompleteNotificationParams
ElicitRequest
ElicitRequestFormParams
ElicitRequestFormParamsSchema
ElicitRequestParams
ElicitRequestURLParams
ElicitResult
EmbeddedResource
An MCP resource embedded inside a prompt or tool-call result.
EmptyResult
A successful result that carries no data.
EnumSchema<T>
Error
A JSON-RPC 2.0 error object.
GetPromptRequest
GetPromptRequestParams
GetPromptResult
GetPromptResultResponse
GetTaskPayloadRequest
GetTaskPayloadResult
GetTaskPayloadResultResponse
GetTaskRequest
GetTaskRequestParams
Icon
An optionally-sized icon that may be displayed in a UI.
ImageContent
Image content block for LLM interactions.
Implementation
Describes an MCP client or server implementation.
InitializedNotification
InitializeRequest
The MCP initialize request sent by the client on first connect.
InitializeRequestParams
Parameters for an initialize request.
InitializeResult
The server's response to an initialize request.
InitializeResultResponse
InternalError
JSON-RPC internal error (code -32603).
InvalidParamsError
JSON-RPC invalid params error (code -32602).
InvalidRequestError
JSON-RPC invalid request error (code -32600).
JSONRPCErrorResponse
A JSON-RPC 2.0 error response.
JSONRPCMessage
Union base for all JSON-RPC wire objects.
JSONRPCNotification
A JSON-RPC 2.0 notification (a request with no expected response).
JSONRPCRequest
A JSON-RPC 2.0 request that expects a response.
JSONRPCResponse
Abstract base for all JSON-RPC response objects.
JSONRPCResultResponse
A successful JSON-RPC 2.0 response carrying a Result.
LegacyTitledEnumSchema
ListPromptsRequest
ListPromptsResult
ListPromptsResultResponse
ListResourcesRequest
ListResourcesResult
ListResourcesResultResponse
ListResourceTemplatesRequest
ListResourceTemplatesResult
ListResourceTemplatesResultResponse
ListRootsRequest
ListRootsResult
ListTasksRequest
ListTasksResult
ListTasksResultResponse
ListToolsRequest
ListToolsResult
ListToolsResultResponse
LoggingMessageNotificationParams
Parameters for a logging/message notification.
MapMC<K, V>
A MapModel that also satisfies MCP.
MCP
Base interface for all MCP model objects.
McpBuilder
Declarative MCP capability builder.
McpServerController
Abstract base for MCPP-compatible controllers in the Finch framework.
MetaObject
Holds the _meta map present on many MCP types.
MethodNotFoundError
JSON-RPC method not found error (code -32601).
ModelHint
ModelPreferences
MultiSelectEnumSchema<T>
NotificationParams
Parameters shared by MCP notifications.
NumberSchema
PaginatedRequestParams
Request params for paginated MCP list calls.
ParseError
JSON-RPC parse error (code -32700).
PingRequest
A ping request used to check liveness of the other party.
PingResultResponse
PrimitiveSchemaDefinition<T>
ProgressNotification
ProgressNotificationParams
Prompt
A prompt or prompt template offered by the server.
PromptArgument
Describes an argument accepted by a Prompt.
PromptListChangedNotification
PromptMessage
PromptReference
ReadResourceRequest
ReadResourceRequestParams
ReadResourceResult
ReadResourceResultResponse
Reference
RelatedTaskMetadata
RequestMetaObject
The _meta object carried inside request params.
RequestParams
Resource
A known resource that the server can serve.
ResourceContents
Base interface for resource content (text or blob).
A resource link returned by a tool or included in a prompt.
ResourceListChangedNotification
ResourceTemplate
A URI template (RFC 6570) describing a family of resources.
ResourceTemplateReference
ResourceUpdatedNotification
ResourceUpdatedNotificationParams
Result
Generic MCP result that may carry arbitrary extra fields.
Root
RootsListChangedNotification
SamplingMessage
Schema<T>
ServerCapabilities
Capabilities declared by the MCP server.
SetLevelRequest
SetLevelRequestParams
SetLevelResultResponse
SingleSelectEnumSchema<T>
StringSchema
SubscribeRequest
SubscribeRequestParams
SubscribeResultResponse
Task
Data associated with an MCP task.
TaskMetadata
TaskStatusNotification
TaskStatusNotificationParams
TextContent
Plain-text content for LLM interactions.
TextResourceContent
Plain-text resource content embedded in a content block.
TextResourceContents
UTF-8 text resource contents.
TitledMultiSelectEnumSchema
TitledSingleSelectEnumSchema
Tool
A tool that the server exposes for the client to call.
ToolAnnotations
Behavioural hints for a Tool (all properties are advisory).
ToolChoice
ToolExecution
Execution-related properties for a Tool.
ToolListChangedNotification
ToolResultContent
ToolSchema
JSON Schema object used for a tool's inputSchema or outputSchema.
ToolUseContent
UnsubscribeRequestParams
UnsubscribeResultResponse
UntitledMultiSelectEnumSchema
UntitledSingleSelectEnumSchema

Enums

ActionType
The user action in response to an elicitation request.
LoggingLevel
Syslog-compatible log severity levels (RFC-5424).
ResultType
Role
The sender or recipient role in an MCP conversation.
StringFormat
TaskStatus
The status of an MCP task.
Theme
UI theme variants for Icon.