Module types

Source
Expand description

Common types and structures used throughout the crate

Structs§

CallToolRequest
Request to call a tool
CallToolResponse
Response from a tool call
ClientCapabilities
Capabilities supported by the client
CompletionCapabilities
Capabilities related to completion functionality
Implementation
Information about an MCP implementation (client or server)
InitializeRequest
Request to initialize an MCP connection
InitializeResponse
Response to an initialization request
ListRequest
Request to list items with pagination
LoggingCapabilities
Capabilities related to logging functionality
Progress
Progress information for a long-running operation
ProgressCancelRequest
Request to cancel a progress operation
ProgressCapabilities
Capabilities related to progress tracking
ProgressValue
Value representing the state of a progress operation
Prompt
Description of a prompt that can be used by the client
PromptArgument
Description of an argument required by a prompt
PromptCapabilities
Capabilities related to prompt functionality
PromptMessage
Represents a message in a prompt
PromptsListResponse
Response containing a list of prompts
ReadResourceRequest
Request to read a resource
Resource
Description of a resource that can be accessed by the client
ResourceCapabilities
Capabilities related to resource functionality
ResourceContents
Contents of a resource
ResourcesListResponse
Response containing a list of resources
RootCapabilities
Capabilities related to root functionality
SamplingCapabilities
Capabilities related to sampling functionality
ServerCapabilities
Capabilities supported by the server
Tool
Description of a tool that can be called by the client
ToolCapabilities
Capabilities related to tool functionality
ToolsListResponse
Response containing a list of tools

Enums§

Content
Content that can be returned by a tool
ErrorCode
Error codes for various error conditions in the MCP protocol
MessageContent
Message content types shared between prompts and tool responses

Constants§

LATEST_PROTOCOL_VERSION
The latest supported version of the MCP protocol