forked from 1b-agent/opencadstudio-upstream
Add client-neutral native MCP control
This commit is contained in:
1 parent
28cc473062
commit
071e224d26
17 files changed
+804
-118
No files matched your search
+6
-1
@@ -1,7 +1,8 @@
|
||||
//! Command-line interface.
|
||||
//!
|
||||
//! Parsing lives here; `main` interprets the result. Three run modes split out
|
||||
//! Parsing lives here; `main` interprets the result. Four run modes split out
|
||||
//! of the parsed args:
|
||||
//! - `--mcp` local stdio MCP server for AI clients
|
||||
//! - `--serve` headless JSON automation server (see `app::serve`)
|
||||
//! - `--export IN OUT` one-shot headless format conversion, then exit
|
||||
//! - otherwise launch the GUI editor, configured via [`GuiConfig`]
|
||||
@@ -59,6 +60,10 @@ pub struct Cli {
|
||||
#[arg(long)]
|
||||
pub serve: bool,
|
||||
|
||||
/// Expose the running desktop editor to AI clients over MCP stdio.
|
||||
#[arg(long)]
|
||||
pub mcp: bool,
|
||||
|
||||
/// TCP port for --serve (defaults to stdin/stdout).
|
||||
#[arg(long, value_name = "PORT")]
|
||||
pub port: Option<u16>,
|
||||
|
||||
Reference in new issue
Block a user