pub struct SessionRpcMcp<'a> { /* private fields */ }Expand description
session.mcp.* RPCs.
Implementations§
Source§impl<'a> SessionRpcMcp<'a>
impl<'a> SessionRpcMcp<'a>
Sourcepub fn oauth(&self) -> SessionRpcMcpOauth<'a>
pub fn oauth(&self) -> SessionRpcMcpOauth<'a>
session.mcp.oauth.* sub-namespace.
Sourcepub async fn list(&self) -> Result<McpServerList, Error>
pub async fn list(&self) -> Result<McpServerList, Error>
Wire method: session.mcp.list.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn enable(&self, params: McpEnableRequest) -> Result<(), Error>
pub async fn enable(&self, params: McpEnableRequest) -> Result<(), Error>
Wire method: session.mcp.enable.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Sourcepub async fn disable(&self, params: McpDisableRequest) -> Result<(), Error>
pub async fn disable(&self, params: McpDisableRequest) -> Result<(), Error>
Wire method: session.mcp.disable.
Experimental. This API is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases. Pin both the SDK and CLI versions if your code depends on it.
Trait Implementations§
Source§impl<'a> Clone for SessionRpcMcp<'a>
impl<'a> Clone for SessionRpcMcp<'a>
Source§fn clone(&self) -> SessionRpcMcp<'a>
fn clone(&self) -> SessionRpcMcp<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for SessionRpcMcp<'a>
Auto Trait Implementations§
impl<'a> Freeze for SessionRpcMcp<'a>
impl<'a> !RefUnwindSafe for SessionRpcMcp<'a>
impl<'a> Send for SessionRpcMcp<'a>
impl<'a> Sync for SessionRpcMcp<'a>
impl<'a> Unpin for SessionRpcMcp<'a>
impl<'a> UnsafeUnpin for SessionRpcMcp<'a>
impl<'a> !UnwindSafe for SessionRpcMcp<'a>
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