pub struct McpStdioClient { /* private fields */ }Implementations§
Source§impl McpStdioClient
impl McpStdioClient
pub fn new( server_name: String, command: &str, args: &[String], env: &BTreeMap<String, String>, ) -> Result<Self, String>
pub fn list_tools(&mut self) -> Result<Vec<McpToolSpec>, String>
pub fn call_tool( &mut self, tool_name: &str, arguments: Value, ) -> Result<String, String>
pub fn list_resources(&mut self) -> Result<Vec<McpResource>, String>
pub fn read_resource( &mut self, uri: &str, ) -> Result<Vec<McpResourceContent>, String>
pub fn server_name(&self) -> &str
pub fn is_initialized(&self) -> bool
Trait Implementations§
Source§impl Debug for McpStdioClient
impl Debug for McpStdioClient
Auto Trait Implementations§
impl Freeze for McpStdioClient
impl RefUnwindSafe for McpStdioClient
impl Send for McpStdioClient
impl Sync for McpStdioClient
impl Unpin for McpStdioClient
impl UnsafeUnpin for McpStdioClient
impl UnwindSafe for McpStdioClient
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