pub struct McpArgs { /* private fields */ }
Expand description
Builder for Mcp
.
Implementations§
Source§impl McpArgs
impl McpArgs
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§
Auto Trait Implementations§
impl Freeze for McpArgs
impl RefUnwindSafe for McpArgs
impl Send for McpArgs
impl Sync for McpArgs
impl Unpin for McpArgs
impl UnwindSafe for McpArgs
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