pub struct McpServerBuilder {
name: String,
version: String,
instructions: Option<String>,
tools: BTreeMap<String, Arc<dyn Tool>>,
}Expand description
Builder for McpServer.
Fields§
§name: String§version: String§instructions: Option<String>§tools: BTreeMap<String, Arc<dyn Tool>>Implementations§
Source§impl McpServerBuilder
impl McpServerBuilder
Sourcepub fn instructions(self, text: &str) -> Self
pub fn instructions(self, text: &str) -> Self
The text the client delivers to the model once at session start:
how to use this server, in the protocol’s own instructions field.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for McpServerBuilder
impl !UnwindSafe for McpServerBuilder
impl Freeze for McpServerBuilder
impl Send for McpServerBuilder
impl Sync for McpServerBuilder
impl Unpin for McpServerBuilder
impl UnsafeUnpin for McpServerBuilder
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