pub struct InitializeRequest {
pub protocol_version: String,
pub capabilities: ClientCapabilities,
pub client_info: Implementation,
}Expand description
The MCP wire form’s
initialize request. Sent by
the client as its first call.
Source of truth:
crates/protocol-droid-schema/spec/<pinned-revision>/schema.json
under definitions.InitializeRequest’s
params shape (the wrapper is
the JSON-RPC envelope; the typed
shape is the params value).
Fields§
§protocol_version: StringThe MCP revision the client supports. The schema names every published revision; the peer uses the revision the consumer selected at construction.
capabilities: ClientCapabilitiesThe client’s capabilities. The schema defaults this to an empty object; the typed default is the all-off capabilities block.
client_info: ImplementationInformation about the client. The schema marks this required in newer revisions; the wire form always carries it.
Trait Implementations§
Source§impl Clone for InitializeRequest
impl Clone for InitializeRequest
Source§impl Debug for InitializeRequest
impl Debug for InitializeRequest
impl Eq for InitializeRequest
Source§impl PartialEq for InitializeRequest
impl PartialEq for InitializeRequest
Source§impl Serialize for InitializeRequest
impl Serialize for InitializeRequest
impl StructuralPartialEq for InitializeRequest
Auto Trait Implementations§
impl Freeze for InitializeRequest
impl RefUnwindSafe for InitializeRequest
impl Send for InitializeRequest
impl Sync for InitializeRequest
impl Unpin for InitializeRequest
impl UnsafeUnpin for InitializeRequest
impl UnwindSafe for InitializeRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more