pub struct McpAddCommand { /* private fields */ }Implementations§
Source§impl McpAddCommand
impl McpAddCommand
pub fn stdio(name: impl Into<String>, command: impl Into<String>) -> Self
pub fn http(name: impl Into<String>, url: impl Into<String>) -> Self
Sourcepub fn config(self, key_value: impl Into<String>) -> Self
pub fn config(self, key_value: impl Into<String>) -> Self
Override a config key (-c key=value). May be called multiple times.
Sourcepub fn enable(self, feature: impl Into<String>) -> Self
pub fn enable(self, feature: impl Into<String>) -> Self
Enable an optional feature flag (--enable <feature>).
Sourcepub fn disable(self, feature: impl Into<String>) -> Self
pub fn disable(self, feature: impl Into<String>) -> Self
Disable an optional feature flag (--disable <feature>).
pub fn arg(self, value: impl Into<String>) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn bearer_token_env_var(self, env_var: impl Into<String>) -> Self
Sourcepub fn oauth_client_id(self, client_id: impl Into<String>) -> Self
pub fn oauth_client_id(self, client_id: impl Into<String>) -> Self
OAuth client id for an HTTP MCP server (--oauth-client-id).
No-op on stdio transports.
Sourcepub fn oauth_resource(self, resource: impl Into<String>) -> Self
pub fn oauth_resource(self, resource: impl Into<String>) -> Self
OAuth resource for an HTTP MCP server (--oauth-resource).
No-op on stdio transports.
Trait Implementations§
Source§impl Clone for McpAddCommand
impl Clone for McpAddCommand
Source§fn clone(&self) -> McpAddCommand
fn clone(&self) -> McpAddCommand
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 moreSource§impl CodexCommand for McpAddCommand
impl CodexCommand for McpAddCommand
Auto Trait Implementations§
impl Freeze for McpAddCommand
impl RefUnwindSafe for McpAddCommand
impl Send for McpAddCommand
impl Sync for McpAddCommand
impl Unpin for McpAddCommand
impl UnsafeUnpin for McpAddCommand
impl UnwindSafe for McpAddCommand
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