Expand description
MCP Protocol Elicitation Types (Spec-Compliant)
This module provides the exact types defined in the MCP 2025-06-18 specification for elicitation/create requests and responses. These types are used for the protocol layer and must maintain 100% spec compliance.
Structs§
- Array
Schema Builder - Builder for array schemas
- Boolean
Schema - Boolean schema definition
- Boolean
Schema Builder - Builder for boolean schemas
- Elicitation
Create Request - Elicitation create request per MCP 2025-06-18 specification Method: “elicitation/create”
- Elicitation
Create Result - Elicitation response per MCP 2025-06-18 specification
- Elicitation
Schema - Restricted schema for elicitation requests Only allows flat objects with primitive properties
- Enum
Schema - Enum schema definition (string enumerations)
- Enum
Schema Builder - Builder for enum schemas
- Number
Schema - Number schema definition (supports both number and integer)
- Number
Schema Builder - Builder for number schemas
- Object
Schema - Object schema definition (for building objects)
- Object
Schema Builder - Builder for object schemas
- String
Schema - String schema definition
- String
Schema Builder - Builder for string schemas
Enums§
- Elicitation
Action - User action in response to elicitation
- Elicitation
Value - Values that can be submitted in elicitation responses Limited to string, integer, and boolean per spec
- Primitive
Schema Definition - Primitive schema definitions allowed in elicitation Restricted to only primitive types without nesting
- String
Format - Supported string formats per MCP spec
Functions§
- array
- Create an array schema
- boolean
- Create a boolean field with title - beautiful ergonomics!
- boolean_
builder - Create a boolean schema without title (for advanced usage)
- checkbox
- Alias for boolean() - checkbox semantic is clearer for UI
- choices
- Alias for options() - terser naming
- enum_of
- Create an enum schema
- integer
- Create an integer field with title - beautiful ergonomics!
- integer_
builder - Create an integer schema without title (for advanced usage)
- integer_
field - Alias for integer() - field semantic is clearer for UI
- number
- Create a number field with title - beautiful ergonomics!
- number_
builder - Create a number schema without title (for advanced usage)
- number_
field - Alias for number() - field semantic is clearer for UI
- object
- Create an object schema
- options
- World-class DX: Create enum schema from array slice (no Vec required!)
- string
- Create a string field with title - beautiful ergonomics!
- string_
builder - Create a string schema without title (for advanced usage)
- text
- Alias for string() - text semantic is clearer for UI