Module types

Module types 

Source
Expand description

Core JSON-RPC 2.0 and MCP protocol types

Extracted from crimson/dictator implementations and enhanced with patterns from the Go mcphost implementation.

Structs§

CancelTaskParams
Request params for tasks/cancel
ClientInfo
Client information with version validation
CompleteRequest
Request for completion suggestions
CompleteResult
Completion result containing suggestions
CompletionArgument
Argument being completed
CompletionInfo
Information about completion suggestions
CompletionValue
A single completion suggestion
CreateElicitationRequest
Request to elicit structured input from user
CreateElicitationResult
Result of elicitation request
CreateMessageRequest
Request to create an LLM message/completion
CreateMessageResult
Result of creating an LLM message
CreateTaskResult
A response to a task-augmented request
GetTaskParams
Request params for tasks/get
Implementation
Server/Client implementation information
JsonRpcError
JSON-RPC 2.0 error object
JsonRpcRequest
JSON-RPC 2.0 request
JsonRpcResponse
JSON-RPC 2.0 response
ListRootsResult
Result of listing roots
ModelHint
Model hint for LLM selection
ModelPreferences
Model selection preferences
Root
Represents a root URI provided by the client
RootsListChangedNotification
Notification that the client’s root list has changed
SamplingMessage
A message in a sampling conversation
SetLevelRequest
Request to set the minimum logging level
Task
Data associated with a task
TaskMetadata
Metadata for augmenting a request with task execution
ToolAnnotations
Tool annotations (hints for LLMs about tool behavior)
ToolExecution
Tool execution metadata

Enums§

CompletionRef
Reference to what is being completed
ContextInclusion
Specifies how much context should be included in sampling requests
ElicitationAction
Action taken by user in response to elicitation
Role
Role in a conversation
TaskStatus
Task status in lifecycle
TaskSupport
Task support level for a tool

Functions§

version_gte
Compare semantic versions (simple: major.minor.patch)