Expand description
Re-export the upstream MCP types so the fork stays in lockstep with codex-rs.
Structs§
- Annotations
- Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
- Audio
Content - Audio provided to or from an LLM.
- Base
Metadata - Base interface for metadata with name (identifier) and title (display name) properties.
- Blob
Resource Contents - Boolean
Schema - Call
Tool Request Params - Call
Tool Result - The server’s response to a tool call.
- Cancelled
Notification Params - Client
Capabilities - Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
- Client
Capabilities Roots - Present if the client supports listing roots.
- Complete
Request Params - Complete
Request Params Argument - The argument’s information
- Complete
Request Params Context - Additional, optional context for completions
- Complete
Result - The server’s response to a completion/complete request
- Complete
Result Completion - Create
Message Request Params - Create
Message Result - The client’s response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
- Cursor
- Elicit
Request Params - Elicit
Request Params Requested Schema - A restricted subset of JSON Schema. Only top-level properties are allowed, without nesting.
- Elicit
Result - The client’s response to an elicitation request.
- Embedded
Resource - The contents of a resource, embedded into a prompt or tool call result.
- Enum
Schema - GetPrompt
Request Params - GetPrompt
Result - The server’s response to a prompts/get request from the client.
- Image
Content - An image provided to or from an LLM.
- Implementation
- Describes the name and version of an MCP implementation, with an optional title for UI representation.
- Initialize
Request Params - Initialize
Result - After receiving an initialize request from the client, the server sends this response.
- JSONRPC
Error - A response to a request that indicates an error occurred.
- JSONRPC
Error Error - JSONRPC
Notification - A notification which does not expect a response.
- JSONRPC
Request - A request that expects a response.
- JSONRPC
Response - A successful (non-error) response to a request.
- List
Prompts Request Params - List
Prompts Result - The server’s response to a prompts/list request from the client.
- List
Resource Templates Request Params - List
Resource Templates Result - The server’s response to a resources/templates/list request from the client.
- List
Resources Request Params - List
Resources Result - The server’s response to a resources/list request from the client.
- List
Roots Result - The client’s response to a roots/list request from the server. This result contains an array of Root objects, each representing a root directory or file that the server can operate on.
- List
Tools Request Params - List
Tools Result - The server’s response to a tools/list request from the client.
- Logging
Message Notification Params - Model
Hint - Hints to use for model selection.
- Model
Preferences - The server’s preferences for model selection, requested of the client during sampling.
- Notification
- Number
Schema - Paginated
Request - Paginated
Request Params - Paginated
Result - Progress
Notification Params - Prompt
- A prompt or prompt template that the server offers.
- Prompt
Argument - Describes an argument that a prompt can accept.
- Prompt
Message - Describes a message returned as part of a prompt.
- Prompt
Reference - Identifies a prompt.
- Read
Resource Request Params - Read
Resource Result - The server’s response to a resources/read request from the client.
- Request
- Resource
- A known resource that the server is capable of reading.
- Resource
Contents - The contents of a specific resource or sub-resource.
- Resource
Link - A resource that the server is capable of reading, included in a prompt or tool call result.
- Resource
Template - A template description for resources available on the server.
- Resource
Template Reference - A reference to a resource or resource template definition.
- Resource
Updated Notification Params - Root
- Represents a root directory or file that the server can operate on.
- Sampling
Message - Describes a message issued to or received from an LLM API.
- Server
Capabilities - Capabilities that a server may support. Known capabilities are defined here, in this schema, but this is not a closed set: any server can define its own, additional capabilities.
- Server
Capabilities Prompts - Present if the server offers any prompt templates.
- Server
Capabilities Resources - Present if the server offers any resources to read.
- Server
Capabilities Tools - Present if the server offers any tools to call.
- SetLevel
Request Params - String
Schema - Subscribe
Request Params - Text
Content - Text provided to or from an LLM.
- Text
Resource Contents - Tool
- Definition for a tool the client can call.
- Tool
Annotations - Additional properties describing a Tool to clients.
- Tool
Input Schema - A JSON Schema object defining the expected parameters for the tool.
- Tool
Output Schema - An optional JSON Schema object defining the structure of the tool’s output returned in the structuredContent field of a CallToolResult.
- Unsubscribe
Request Params
Enums§
- Call
Tool Request - Cancelled
Notification - Client
Notification - Client
Request - Client
Result - Complete
Request - Complete
Request Params Ref - Content
Block - Create
Message Request - Create
Message Result Content - Elicit
Request - Embedded
Resource Resource - GetPrompt
Request - Initialize
Request - Initialized
Notification - JSONRPC
Message - Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
- List
Prompts Request - List
Resource Templates Request - List
Resources Request - List
Roots Request - List
Tools Request - Logging
Level - The severity of a log message.
- Logging
Message Notification - Ping
Request - Primitive
Schema Definition - Restricted schema definitions that only allow primitive types without nested objects or arrays.
- Progress
Notification - Progress
Token - Prompt
List Changed Notification - Read
Resource Request - Read
Resource Result Contents - Request
Id - Resource
List Changed Notification - Resource
Updated Notification - Role
- The sender or recipient of messages and data in a conversation.
- Roots
List Changed Notification - Sampling
Message Content - Server
Notification - Server
Request - Server
Result - SetLevel
Request - Subscribe
Request - Tool
List Changed Notification - Unsubscribe
Request
Constants§
Traits§
- Model
Context Protocol Notification - One-way message in the Model Context Protocol (MCP).
- Model
Context Protocol Request - Paired request/response types for the Model Context Protocol (MCP).