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§
- Cancel
Task Params - Request params for tasks/cancel
- Client
Info - Client information with version validation
- Complete
Request - Request for completion suggestions
- Complete
Result - Completion result containing suggestions
- Completion
Argument - Argument being completed
- Completion
Info - Information about completion suggestions
- Completion
Value - A single completion suggestion
- Create
Elicitation Request - Request to elicit structured input from user
- Create
Elicitation Result - Result of elicitation request
- Create
Message Request - Request to create an LLM message/completion
- Create
Message Result - Result of creating an LLM message
- Create
Task Result - A response to a task-augmented request
- GetTask
Params - Request params for tasks/get
- Implementation
- Server/Client implementation information
- Json
RpcError - JSON-RPC 2.0 error object
- Json
RpcRequest - JSON-RPC 2.0 request
- Json
RpcResponse - JSON-RPC 2.0 response
- List
Roots Result - Result of listing roots
- Model
Hint - Model hint for LLM selection
- Model
Preferences - Model selection preferences
- Root
- Represents a root URI provided by the client
- Roots
List Changed Notification - Notification that the client’s root list has changed
- Sampling
Message - A message in a sampling conversation
- SetLevel
Request - Request to set the minimum logging level
- Task
- Data associated with a task
- Task
Metadata - Metadata for augmenting a request with task execution
- Tool
Annotations - Tool annotations (hints for LLMs about tool behavior)
- Tool
Execution - Tool execution metadata
Enums§
- Completion
Ref - Reference to what is being completed
- Context
Inclusion - Specifies how much context should be included in sampling requests
- Elicitation
Action - Action taken by user in response to elicitation
- Role
- Role in a conversation
- Task
Status - Task status in lifecycle
- Task
Support - Task support level for a tool
Functions§
- version_
gte - Compare semantic versions (simple: major.minor.patch)