pub struct DraftAdapter;Expand description
Adapter for the draft MCP specification (DRAFT-2026-v1).
Passes through everything from 2025-11-25 plus supports the new
extensions field on capabilities.
Trait Implementations§
Source§impl Debug for DraftAdapter
impl Debug for DraftAdapter
Source§impl VersionAdapter for DraftAdapter
impl VersionAdapter for DraftAdapter
Source§fn version(&self) -> &ProtocolVersion
fn version(&self) -> &ProtocolVersion
The protocol version this adapter targets.
Source§fn filter_capabilities(&self, caps: ServerCapabilities) -> ServerCapabilities
fn filter_capabilities(&self, caps: ServerCapabilities) -> ServerCapabilities
Filter server capabilities for the target version. Read more
Source§fn filter_result(&self, _method: &str, result: Value) -> Value
fn filter_result(&self, _method: &str, result: Value) -> Value
Filter an outgoing JSON-RPC result value for the target version. Read more
Source§fn validate_method(&self, _method: &str) -> Result<(), String>
fn validate_method(&self, _method: &str) -> Result<(), String>
Validate that an incoming method is supported in the target version. Read more
Source§fn supported_methods(&self) -> &HashSet<&'static str>
fn supported_methods(&self) -> &HashSet<&'static str>
Methods that are valid in the target version.
Auto Trait Implementations§
impl Freeze for DraftAdapter
impl RefUnwindSafe for DraftAdapter
impl Send for DraftAdapter
impl Sync for DraftAdapter
impl Unpin for DraftAdapter
impl UnsafeUnpin for DraftAdapter
impl UnwindSafe for DraftAdapter
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