pub struct McpBuilder { /* private fields */ }
Expand description
Builder for Mcp
.
Implementations§
Source§impl McpBuilder
impl McpBuilder
Sourcepub fn server_label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn server_label<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A label for this MCP server.
Sourcepub fn server_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn server_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URL for the MCP server.
Sourcepub fn allowed_tools<VALUE: Into<AllowedTools>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn allowed_tools<VALUE: Into<AllowedTools>>( &mut self, value: VALUE, ) -> &mut Self
List of allowed tool names or filter object.
Sourcepub fn headers<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
pub fn headers<VALUE: Into<Value>>(&mut self, value: VALUE) -> &mut Self
Optional HTTP headers for the MCP server.
Sourcepub fn require_approval<VALUE: Into<RequireApproval>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn require_approval<VALUE: Into<RequireApproval>>( &mut self, value: VALUE, ) -> &mut Self
Approval policy or filter for tools.
Trait Implementations§
Source§impl Clone for McpBuilder
impl Clone for McpBuilder
Source§fn clone(&self) -> McpBuilder
fn clone(&self) -> McpBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for McpBuilder
impl RefUnwindSafe for McpBuilder
impl Send for McpBuilder
impl Sync for McpBuilder
impl Unpin for McpBuilder
impl UnwindSafe for McpBuilder
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