mirror of
https://github.com/storytold/cadcraft.git
synced 2026-11-02 16:31:48 -06:00
Workspace (geom, dxf, color, doc, fonts, render, io, engine, ui-egui, mcp; apps cadcraft, cadcraft-cli, cadcraft-web; xtask), AutoCAD-for-Mac style UI with code-drawn icons, command line with prompts/keywords/AutoComplete, draw and modify commands, object snaps, polar/ortho, selection, undo, layers and properties palettes, DXF read/write, SVG/PNG export, MCP server, JSON control channel, CLI, wasm build, README, ROADMAP, AGENTS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
784 B
Rust
20 lines
784 B
Rust
//! CADCraft MCP server.
|
|
//!
|
|
//! JSON-RPC 2.0 over stdio (newline-delimited), implementing the MCP lifecycle, tools and
|
|
//! resources. Tools map onto the app's control-channel methods, served either by a headless
|
|
//! [`Headless`] session in-process or by a running app through its loopback control port
|
|
//! ([`Remote`]). Agents can type at the command line exactly like a user (`command_line`), call
|
|
//! any command with JSON (`execute`), inspect the drawing and render it to a PNG.
|
|
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
|
#![forbid(unsafe_code)]
|
|
|
|
mod backend;
|
|
mod server;
|
|
mod tools;
|
|
|
|
pub use backend::{Backend, Headless, Remote};
|
|
pub use server::{PROTOCOL_VERSION, Server};
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|