Expand description
Common types and structures used throughout the crate
Structs§
- Call
Tool Request - Request to call a tool
- Call
Tool Response - Response from a tool call
- Client
Capabilities - Capabilities supported by the client
- Completion
Capabilities - Capabilities related to completion functionality
- Implementation
- Information about an MCP implementation (client or server)
- Initialize
Request - Request to initialize an MCP connection
- Initialize
Response - Response to an initialization request
- List
Request - Request to list items with pagination
- Logging
Capabilities - Capabilities related to logging functionality
- Progress
- Progress information for a long-running operation
- Progress
Cancel Request - Request to cancel a progress operation
- Progress
Capabilities - Capabilities related to progress tracking
- Progress
Value - Value representing the state of a progress operation
- Prompt
- Description of a prompt that can be used by the client
- Prompt
Argument - Description of an argument required by a prompt
- Prompt
Capabilities - Capabilities related to prompt functionality
- Prompt
Message - Represents a message in a prompt
- Prompts
List Response - Response containing a list of prompts
- Read
Resource Request - Request to read a resource
- Resource
- Description of a resource that can be accessed by the client
- Resource
Capabilities - Capabilities related to resource functionality
- Resource
Contents - Contents of a resource
- Resources
List Response - Response containing a list of resources
- Root
Capabilities - Capabilities related to root functionality
- Sampling
Capabilities - Capabilities related to sampling functionality
- Server
Capabilities - Capabilities supported by the server
- Tool
- Description of a tool that can be called by the client
- Tool
Capabilities - Capabilities related to tool functionality
- Tools
List Response - Response containing a list of tools
Enums§
- Content
- Content that can be returned by a tool
- Error
Code - Error codes for various error conditions in the MCP protocol
- Message
Content - Message content types shared between prompts and tool responses
Constants§
- LATEST_
PROTOCOL_ VERSION - The latest supported version of the MCP protocol