Skip to main content

thndrs_lib/cli/commands/
mcp.rs

1//! MCP command definitions.
2
3use clap::Subcommand;
4
5/// MCP inspection and tool-call commands.
6#[derive(Clone, Debug, Eq, PartialEq, Subcommand)]
7pub enum McpCommand {
8    /// List configured MCP servers.
9    List,
10    /// Initialize one MCP server and report readiness.
11    Test {
12        /// Configured MCP server name.
13        name: String,
14    },
15    /// List tools exposed by one MCP server.
16    Tools {
17        /// Configured MCP server name.
18        name: String,
19    },
20    /// Call one MCP tool with JSON object arguments.
21    Call {
22        /// Configured MCP server name.
23        server: String,
24        /// Original MCP tool name.
25        tool: String,
26        /// JSON object arguments.
27        #[arg(long = "json")]
28        json: String,
29    },
30}