pub enum McpSubcommand {
Serve {
policy: Option<PathBuf>,
spec: Option<PathBuf>,
allow_localhost: bool,
debug: bool,
log_decisions: Option<Option<PathBuf>>,
},
Http {
port: u16,
bind: String,
api_key: Option<String>,
policy: Option<PathBuf>,
spec: Option<PathBuf>,
base_url: Option<String>,
allow_localhost: bool,
debug: bool,
},
Tools,
Test {
tool: String,
query: Option<String>,
operation: Option<String>,
params: Option<String>,
},
Status,
}Variants§
Serve
Start the MCP server (stdio transport)
Fields
Http
Start HTTP REST server for trusted callers (Agent API)
Fields
Tools
List available MCP tools
Test
Test a tool locally without starting server
Fields
Status
Show server status
Trait Implementations§
Source§impl FromArgMatches for McpSubcommand
impl FromArgMatches for McpSubcommand
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for McpSubcommand
impl Subcommand for McpSubcommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for McpSubcommand
impl RefUnwindSafe for McpSubcommand
impl Send for McpSubcommand
impl Sync for McpSubcommand
impl Unpin for McpSubcommand
impl UnsafeUnpin for McpSubcommand
impl UnwindSafe for McpSubcommand
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