Crate agcodex_mcp_types

Crate agcodex_mcp_types 

Source

Structs§

Annotations
Optional annotations for the client. The client can use annotations to inform how objects are used or displayed
AudioContent
Audio provided to or from an LLM.
BaseMetadata
Base interface for metadata with name (identifier) and title (display name) properties.
BlobResourceContents
BooleanSchema
CallToolRequestParams
CallToolResult
The server’s response to a tool call.
CancelledNotificationParams
ClientCapabilities
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.
ClientCapabilitiesRoots
Present if the client supports listing roots.
CompleteRequestParams
CompleteRequestParamsArgument
The argument’s information
CompleteRequestParamsContext
Additional, optional context for completions
CompleteResult
The server’s response to a completion/complete request
CompleteResultCompletion
CreateMessageRequestParams
CreateMessageResult
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
ElicitRequestParams
ElicitRequestParamsRequestedSchema
A restricted subset of JSON Schema. Only top-level properties are allowed, without nesting.
ElicitResult
The client’s response to an elicitation request.
EmbeddedResource
The contents of a resource, embedded into a prompt or tool call result.
EnumSchema
GetPromptRequestParams
GetPromptResult
The server’s response to a prompts/get request from the client.
ImageContent
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.
InitializeRequestParams
InitializeResult
After receiving an initialize request from the client, the server sends this response.
JSONRPCError
A response to a request that indicates an error occurred.
JSONRPCErrorError
JSONRPCNotification
A notification which does not expect a response.
JSONRPCRequest
A request that expects a response.
JSONRPCResponse
A successful (non-error) response to a request.
ListPromptsRequestParams
ListPromptsResult
The server’s response to a prompts/list request from the client.
ListResourceTemplatesRequestParams
ListResourceTemplatesResult
The server’s response to a resources/templates/list request from the client.
ListResourcesRequestParams
ListResourcesResult
The server’s response to a resources/list request from the client.
ListRootsResult
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.
ListToolsRequestParams
ListToolsResult
The server’s response to a tools/list request from the client.
LoggingMessageNotificationParams
ModelHint
Hints to use for model selection.
ModelPreferences
The server’s preferences for model selection, requested of the client during sampling.
Notification
NumberSchema
PaginatedRequest
PaginatedRequestParams
PaginatedResult
ProgressNotificationParams
Prompt
A prompt or prompt template that the server offers.
PromptArgument
Describes an argument that a prompt can accept.
PromptMessage
Describes a message returned as part of a prompt.
PromptReference
Identifies a prompt.
ReadResourceRequestParams
ReadResourceResult
The server’s response to a resources/read request from the client.
Request
Resource
A known resource that the server is capable of reading.
ResourceContents
The contents of a specific resource or sub-resource.
ResourceLink
A resource that the server is capable of reading, included in a prompt or tool call result.
ResourceTemplate
A template description for resources available on the server.
ResourceTemplateReference
A reference to a resource or resource template definition.
ResourceUpdatedNotificationParams
Root
Represents a root directory or file that the server can operate on.
SamplingMessage
Describes a message issued to or received from an LLM API.
ServerCapabilities
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.
ServerCapabilitiesPrompts
Present if the server offers any prompt templates.
ServerCapabilitiesResources
Present if the server offers any resources to read.
ServerCapabilitiesTools
Present if the server offers any tools to call.
SetLevelRequestParams
StringSchema
SubscribeRequestParams
TextContent
Text provided to or from an LLM.
TextResourceContents
Tool
Definition for a tool the client can call.
ToolAnnotations
Additional properties describing a Tool to clients.
ToolInputSchema
A JSON Schema object defining the expected parameters for the tool.
ToolOutputSchema
An optional JSON Schema object defining the structure of the tool’s output returned in the structuredContent field of a CallToolResult.
UnsubscribeRequestParams

Enums§

CallToolRequest
CancelledNotification
ClientNotification
ClientRequest
ClientResult
CompleteRequest
CompleteRequestParamsRef
ContentBlock
CreateMessageRequest
CreateMessageResultContent
ElicitRequest
EmbeddedResourceResource
GetPromptRequest
InitializeRequest
InitializedNotification
JSONRPCMessage
Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent.
ListPromptsRequest
ListResourceTemplatesRequest
ListResourcesRequest
ListRootsRequest
ListToolsRequest
LoggingLevel
The severity of a log message.
LoggingMessageNotification
PingRequest
PrimitiveSchemaDefinition
Restricted schema definitions that only allow primitive types without nested objects or arrays.
ProgressNotification
ProgressToken
PromptListChangedNotification
ReadResourceRequest
ReadResourceResultContents
RequestId
ResourceListChangedNotification
ResourceUpdatedNotification
Role
The sender or recipient of messages and data in a conversation.
RootsListChangedNotification
SamplingMessageContent
ServerNotification
ServerRequest
ServerResult
SetLevelRequest
SubscribeRequest
ToolListChangedNotification
UnsubscribeRequest

Constants§

JSONRPC_VERSION
MCP_SCHEMA_VERSION

Traits§

ModelContextProtocolNotification
One-way message in the Model Context Protocol (MCP).
ModelContextProtocolRequest
Paired request/response types for the Model Context Protocol (MCP).

Type Aliases§

EmptyResult
Result