Add client-neutral native MCP control

This commit is contained in:
Hakan Seven committed 2026-09-04 23:27:03 +03:00
1 parent 28cc473062
commit 071e224d26
17 files changed
+804 -118

No files matched your search

+10
View File
@@ -14,6 +14,8 @@ mod i18n;
mod io;
#[cfg(not(target_arch = "wasm32"))]
mod network;
#[cfg(not(target_arch = "wasm32"))]
mod mcp;
mod modules;
mod patreon;
mod discussions;
@@ -75,6 +77,14 @@ fn main() -> iced::Result {
std::process::exit(if ok { 0 } else { 1 });
}
// MCP is a client-neutral local entry point. It uses only stdin,
// stdout and the authenticated GUI bridge, so it must run before any
// logging or graphics setup can write to the protocol stream.
if args.mcp {
mcp::run();
return Ok(());
}
// Opt-in logging. `--log LEVEL` seeds RUST_LOG; the subscriber then
// surfaces wgpu / iced / winit diagnostics that are otherwise silent.
if let Some(level) = &args.log {