clickup-cli 0.6.1

CLI for the ClickUp API, optimized for AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Subcommand;
use crate::error::CliError;

#[derive(Subcommand)]
pub enum McpCommands {
    /// Start the MCP server (reads JSON-RPC from stdin, writes to stdout)
    Serve,
}

pub async fn execute(command: McpCommands) -> Result<(), CliError> {
    match command {
        McpCommands::Serve => {
            crate::mcp::serve()
                .await
                .map_err(|e| CliError::ConfigError(e.to_string()))
        }
    }
}