mcp_execution_cli/actions.rs
1//! Action type definitions for CLI commands.
2//!
3//! Defines the action enums used by various commands.
4
5use clap::Subcommand;
6
7/// Server management actions.
8///
9/// # Examples
10///
11/// ```
12/// use mcp_execution_cli::actions::ServerAction;
13/// use clap::Subcommand;
14///
15/// let list_action = ServerAction::List;
16/// // Can be used with clap for CLI parsing
17/// ```
18#[derive(Subcommand, Debug)]
19pub enum ServerAction {
20 /// List all configured servers
21 ///
22 /// Performs a brief, bounded live check against each http/sse server.
23 List,
24
25 /// Show detailed information about a server
26 Info {
27 /// Server name
28 server: String,
29 },
30
31 /// Validate a server command
32 Validate {
33 /// Server command to validate
34 command: String,
35 },
36}