symforge 11.18.3

SymForge — in-memory code intelligence MCP server for Claude Code, Codex, and Gemini CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! The symforge binary: a shim over the crate's public server door
//! (Feature 020 Slice 4, C5). The exposure flip retired the raw module
//! surface this file used to consume; all dispatch logic lives behind
//! `symforge::server_api::run`.

fn main() -> std::process::ExitCode {
    match symforge::server_api::run(std::env::args_os().collect()) {
        Ok(symforge::server_api::ServerExit::Success) => std::process::ExitCode::SUCCESS,
        // cli-serve contract: a refused start exits 2, distinct from a
        // generic failure, so operators/CI can detect a refused bind.
        Ok(symforge::server_api::ServerExit::RefusedToStart) => std::process::ExitCode::from(2),
        Err(error) => {
            eprintln!("Error: {error}");
            std::process::ExitCode::FAILURE
        }
    }
}