pub struct McpServeCommand { /* private fields */ }Expand description
Start the Claude Code MCP server.
§Example
use claude_wrapper::{Claude, ClaudeCommand, McpServeCommand};
let claude = Claude::builder().build()?;
McpServeCommand::new()
.verbose()
.execute(&claude)
.await?;Implementations§
Trait Implementations§
Source§impl ClaudeCommand for McpServeCommand
impl ClaudeCommand for McpServeCommand
Source§impl Clone for McpServeCommand
impl Clone for McpServeCommand
Source§impl Debug for McpServeCommand
impl Debug for McpServeCommand
Auto Trait Implementations§
impl Freeze for McpServeCommand
impl RefUnwindSafe for McpServeCommand
impl Send for McpServeCommand
impl Sync for McpServeCommand
impl Unpin for McpServeCommand
impl UnsafeUnpin for McpServeCommand
impl UnwindSafe for McpServeCommand
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
Source§impl<T> ClaudeCommandSyncExt for Twhere
T: ClaudeCommand<Output = CommandOutput>,
impl<T> ClaudeCommandSyncExt for Twhere
T: ClaudeCommand<Output = CommandOutput>,
Source§fn execute_sync(&self, claude: &Claude) -> Result<CommandOutput, Error>
fn execute_sync(&self, claude: &Claude) -> Result<CommandOutput, Error>
Blocking analog of
ClaudeCommand::execute for commands
producing CommandOutput.