BREP_mcp 0.1.0

The BREP MCP automation server: hosts the BREP CAD app headlessly under egui_kittest and serves the BREP_mcp_core Model Context Protocol surface over stdio or streamable HTTP, so an agent can drive the CAD app with no display attached. The same server the app embeds behind `brep-app --mcp`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! brep_mcp — the BREP MCP automation server, hosted headlessly.
//!
//! The server itself lives in `brep_mcp_core` (re-exported here module for
//! module, so `brep_mcp::server::BrepServer` is the same type the app embeds
//! behind `brep-app --mcp`). This crate adds what needs the app compiled in:
//! the [`headless`] host — the whole `BrepApp` under `egui_kittest` on a wgpu
//! device — and the `brep-mcp` binary (`serve`, `schema`, `test`, `shot`).
pub use brep_mcp_core::{generate, host, http, image, runner, schema, script, server, session, tools, validate};

pub mod headless;

/// The backend every `brep-mcp` server runs on: one headless app per session.
pub fn headless_backend() -> host::Backend {
    host::Backend::Spawn { name: "headless", spawn: std::sync::Arc::new(|cfg| headless::spawn(cfg)) }
}