Skip to main content

opencode_ctl_cc_mcp/
mcp.rs

1//! `opencode-ctl-cc-mcp`: the Claude Code front of opencode-ctl-mcp. All behaviour lives in
2//! the `opencode-ctl` engine; this file only names the host, the product and the version.
3
4use opencode_ctl::cli::dispatch;
5use opencode_ctl::host::Host;
6
7#[tokio::main(flavor = "current_thread")]
8async fn main() {
9    let args: Vec<String> = std::env::args().skip(1).collect();
10    let code = dispatch(
11        Host::Claude,
12        env!("CARGO_BIN_NAME"),
13        env!("CARGO_PKG_VERSION"),
14        std::env::args().next().as_deref(),
15        args,
16    )
17    .await;
18    if code != 0 {
19        std::process::exit(code);
20    }
21}