BREP_mcp_core — the BREP CAD application's MCP server
BREP_mcp_core is the Model Context Protocol
server of the BREP CAD application, as a library that does not depend on the
application. Its tools and schemas are generated from the application's own
command registry, so an agent drives exactly the commands a person can. It is
embedded in BREP_app behind
brep-app --mcp, which serves the visible window over loopback HTTP.
Hosts implement the protocol in host: an attached host is a running
application the server lives inside (every session shares it), a spawning
host builds an application per session. Either way the same tool, session and
transport code runs.
What is in it
server,session,tools,schema— the MCP surface: registry-derived tools and JSON schemas, sessions, feature validation.http— the streamable-HTTP transport; stdio is supported too.script,runner— JSON automation scripts: steps, waits, assertions and screenshots, run against a session.image— screenshot processing and comparison.render_mesh— a CPU mesh rasteriser and silhouette comparison that need no GPU, window or browser; therender_meshexample is its command line.generate— the generated tool reference.
It depends on BREP_render, and on
rmcp and tokio.
Feature flags
None.
Licence
The Autodrop3d licence in LICENSE.md, shipped in the crate (license-file
in the manifest). It is not an SPDX licence: read it before you modify or
redistribute the crate.