pub struct McpAddArgs {
pub name: String,
pub target: String,
pub transport: Option<TransportKind>,
pub headers: Vec<String>,
pub env: Vec<String>,
pub approval: ApprovalPolicy,
pub replace: bool,
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub callback_port: Option<u16>,
pub scopes: Vec<String>,
pub args: Vec<String>,
}Fields§
§name: StringName for the MCP server
target: StringServer URL (for HTTP) or command (for stdio)
transport: Option<TransportKind>Transport type: ‘http’ or ‘stdio’ (inferred when omitted)
headers: Vec<String>HTTP header in KEY=VAL form (repeatable)
env: Vec<String>Environment variable in KEY=VAL form for stdio servers (repeatable)
approval: ApprovalPolicyTool approval policy: ‘read_only’ (default), ‘auto’, or ‘ask’
replace: boolOverwrite an existing server with the same name
client_id: Option<String>Pre-registered OAuth client ID for non-DCR HTTP servers (supports ${ENV_VAR})
client_secret: Option<String>Pre-registered OAuth client secret for HTTP servers (supports ${ENV_VAR})
callback_port: Option<u16>Fixed localhost callback port for OAuth redirect URI http://127.0.0.1:
scopes: Vec<String>Explicit OAuth scope to request (repeatable)
args: Vec<String>Arguments passed to a stdio server command (after --)
Trait Implementations§
Source§impl Args for McpAddArgs
impl Args for McpAddArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for McpAddArgs
impl Clone for McpAddArgs
Source§impl Debug for McpAddArgs
impl Debug for McpAddArgs
Source§impl FromArgMatches for McpAddArgs
impl FromArgMatches for McpAddArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl PartialEq for McpAddArgs
impl PartialEq for McpAddArgs
impl StructuralPartialEq for McpAddArgs
Auto Trait Implementations§
impl Forget for McpAddArgs
impl Freeze for McpAddArgs
impl Move for McpAddArgs
impl RefUnwindSafe for McpAddArgs
impl Send for McpAddArgswhere
RawVecInner: Send,
impl Sync for McpAddArgswhere
RawVecInner: Sync,
impl Unpin for McpAddArgs
impl UnsafeUnpin for McpAddArgswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for McpAddArgswhere
RawVecInner: UnwindSafe,
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