clickup_cli/commands/mcp_cmd.rs
1use clap::Subcommand;
2use crate::error::CliError;
3
4#[derive(Subcommand)]
5pub enum McpCommands {
6 /// Start the MCP server (reads JSON-RPC from stdin, writes to stdout)
7 Serve,
8}
9
10pub async fn execute(command: McpCommands) -> Result<(), CliError> {
11 match command {
12 McpCommands::Serve => {
13 crate::mcp::serve()
14 .await
15 .map_err(|e| CliError::ConfigError(e.to_string()))
16 }
17 }
18}