pub struct McpArgs {
pub serve: String,
}Expand description
Hidden args for ign mcp serve (14-01). serve is a RESTRICTED
POSITIONAL — not a subcommand — so the clap walk (tui_coverage.rs)
yields exactly ONE row-requiring node, mcp itself: an mcp serve subcommand leaf would need a second routes() row and extend
the pinned OutOfBand set past its four-member contract (an orphan
row fails the walk by design). clap’s value_parser = ["serve"]
keeps every other spelling (ign mcp, ign mcp bogus) a
usage-class clap error — exit 2 BEFORE any protocol byte is
written. Zero stdout-facing behavior here — the mode owns its own
I/O entirely (mcp::serve).
Fields§
§serve: StringStart the stdio MCP server
Trait Implementations§
Source§impl Args for McpArgs
impl Args for McpArgs
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 FromArgMatches for McpArgs
impl FromArgMatches for McpArgs
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.Auto Trait Implementations§
impl Forget for McpArgs
impl Freeze for McpArgs
impl RefUnwindSafe for McpArgs
impl Send for McpArgs
impl Sync for McpArgs
impl Unpin for McpArgs
impl UnsafeUnpin for McpArgs
impl UnwindSafe for McpArgs
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