pub struct McpAddJsonCommand { /* private fields */ }Expand description
Add an MCP server using raw JSON configuration.
Implementations§
Source§impl McpAddJsonCommand
impl McpAddJsonCommand
Sourcepub fn new(name: impl Into<String>, json: impl Into<String>) -> Self
pub fn new(name: impl Into<String>, json: impl Into<String>) -> Self
Create a new MCP add-json command.
Sourcepub fn client_secret(self) -> Self
pub fn client_secret(self) -> Self
Prompt for the OAuth client secret (--client-secret; or set
it via the MCP_CLIENT_SECRET env var).
Parity with McpAddCommand::client_secret.
Trait Implementations§
Source§impl ClaudeCommand for McpAddJsonCommand
impl ClaudeCommand for McpAddJsonCommand
Source§impl Clone for McpAddJsonCommand
impl Clone for McpAddJsonCommand
Source§fn clone(&self) -> McpAddJsonCommand
fn clone(&self) -> McpAddJsonCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 McpAddJsonCommand
impl RefUnwindSafe for McpAddJsonCommand
impl Send for McpAddJsonCommand
impl Sync for McpAddJsonCommand
impl Unpin for McpAddJsonCommand
impl UnsafeUnpin for McpAddJsonCommand
impl UnwindSafe for McpAddJsonCommand
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.