Metadata-Version: 2.4
Name: mechvane
Version: 0.1.0
Summary: Parametric 3D CAD for everyday mechanical engineering: you and your AI agent on the same model, built on SolidCraft
License-Expression: MIT OR Apache-2.0
Project-URL: Homepage, https://github.com/mechvane/mechvane
Project-URL: Website, https://mechvane.dev/
Project-URL: Roadmap, https://mechvane.dev/roadmap/
Project-URL: Issues, https://github.com/mechvane/mechvane/issues
Project-URL: Changelog, https://github.com/mechvane/mechvane/blob/main/CHANGELOG.md
Keywords: cad,parametric,mechanical-engineering,mcp,solidcraft,ai-agents
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Manufacturing
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE-MIT
License-File: LICENSE-APACHE
License-File: NOTICE
Requires-Dist: mcp<2,>=1.20
Requires-Dist: pillow>=10
Dynamic: license-file

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/mechvane/mechvane/main/docs/media/logo-wordmark-dark.png">
  <img alt="Mechvane" src="https://raw.githubusercontent.com/mechvane/mechvane/main/docs/media/logo-wordmark-light.png" width="320">
</picture>

# Mechvane

**You and your agent on the same model.**

**[Website](https://mechvane.dev/)** · **[Roadmap](https://mechvane.dev/roadmap/)** · [PyPI](https://pypi.org/project/mechvane/)

> **Where Mechvane is heading:** Mechvane's engineering knowledge is moving into SolidCraft's own app. First, Mechvane connects to the SolidCraft app you have open, so design checks with their sources, bolted connections and your agent work on the design in SolidCraft's window. Later, the same checks and assistants become SolidCraft plugins: a ribbon entry for you and a tool for your agent. The browser workspace stays available as a local preview.

The mechanical engineering layer for [SolidCraft](https://github.com/tangency-labs/solidcraft), for
individual engineers, makers and small and medium-sized companies: design checks with cited sources,
bolted connections, standard parts and assemblies whose joints stay where you put them. Model by hand
in SolidCraft, hand a step to an AI agent, or both: you work on the same parts and get the same
design checks either way. The core stays small; domain modules (sheet metal, frames, drawings …) load
only when a document or the user needs them.

![A joint jumps to the wrong bore after a part edit, update_links puts it back](https://raw.githubusercontent.com/mechvane/mechvane/main/docs/media/update_links.gif)

*Change a part, and `update_links` notices that a joint jumped to a different bore and
repairs it (regenerate with `python3 tools/demo_update_links.py`).*

## Guiding principles

- **One model, many hands.** Every action is a typed command. You in the GUI, your scripts,
  plugins and AI agents (MCP) share one interface, with undo, batch rollback and precise
  error messages, so you can pick up where your agent left off and the other way round.
- **Engineering knowledge for you and your agent.** An open, sourced knowledge catalog: standard
  values from freely accessible sources, best practice from public handbooks and design
  guides, our own measurement series on the printer. Every rule carries its source,
  rationale, exceptions and severity (error or hint), so `check_design` does not guess and
  an agent proposes what an experienced engineer would.
- **No dead weight.** What monolithic CAD suites carry around (piping, cable harness, BIM,
  rendering studio …) is a plugin here or left out.
- **Proven workflows where they work.** Design accelerators (bolted connections, shafts,
  gears), frame generator, standard parts, ISO drawings with parts list, rule-based
  configuration.
- **Text- and git-friendly file format.**

## Foundation

Mechvane builds on [SolidCraft](https://github.com/tangency-labs/solidcraft) (Rust,
Apache-2.0), an open CAD kernel and app where "everything is a command", with a built-in
MCP server. SolidCraft stays unchanged as a dependency; Mechvane adds its own layer on top
([ADR 0001](https://github.com/mechvane/mechvane/blob/main/docs/adr/0001-grundlage-solidcraft.md)).

## Quick start

Requirements: Python ≥ 3.11. Everything else comes with `mechvane setup`: it downloads the
pinned `solidcraft-cli` and SolidCraft web app (v0.43.0) from the
[SolidCraft release](https://github.com/tangency-labs/solidcraft/releases) for your platform
(Linux x86_64/aarch64, Windows x64/arm64, macOS) and checks their SHA256. No build needed;
rendering works headless too.

```sh
pip install mechvane
mechvane setup        # SolidCraft CLI and web app, about 170 MB, once
mechvane mcp          # MCP server for your agent (see below)
```

Everything runs locally and offline after `mechvane setup`. The browser workspace stays available as a
preview (`mechvane ui my-project/`); development now goes into working inside SolidCraft's own window.

Tested on Linux and Windows 11 (x64); macOS is expected to work but not yet tested.
If `mechvane` is not found after a user install on Windows, use `python -m mechvane setup` (and
`ui`, `mcp`) instead.

An existing `solidcraft-cli` is used when you set `SOLIDCRAFT_CLI` or skip `mechvane setup`
and have it on your `PATH`.

As an MCP server for an agent (e.g. Claude Code), `.mcp.json` in your project:

```json
{
  "mcpServers": {
    "mechvane": {
      "command": "mechvane",
      "args": ["mcp", "--workspace", "./workspace"]
    }
  }
}
```

To work in the SolidCraft window you have open, switch on **Settings > Assistant > Agents through MCP > Let AI agents connect** in
SolidCraft (or start the app with `--control PORT`) and ask your agent to `connect_window`. It reads and builds in your window,
and you save in the app as usual. From the terminal, `mechvane check` runs the design checks on the design in that window
(or on a file: `mechvane check part.solidcraft --profile cnc_alu`), every finding with its rule, value and source.

For development, clone the repo and run the checks:

```sh
git clone https://github.com/mechvane/mechvane && cd mechvane
pip install -e .
python3 tests/mechvane/check.py      # over 800 checks, a few minutes
python3 tests/reference/check.py     # reference parts with expected values
```

Then ask, for example: "Build an 80×40×8 plate with four M5 clearance holes, bolt it to a
bracket and check the design." The agent uses `new_part`, `run`, `bolted_connection`,
`add_joint` and `check_design`. When a part changes, `update_links` finds joints that
jumped to a different face and repairs them.
Step by step for Windows and Linux: [docs/installation.md](https://github.com/mechvane/mechvane/blob/main/docs/installation.md) (German).

## Status

Version 0.1: Mechvane runs as a Python layer on top of SolidCraft and as an MCP server for your agent, and it connects to the
SolidCraft app you have open (see the note at the top and the [roadmap](https://mechvane.dev/roadmap/)).

- **Parts and assemblies** as separate files, joints across files that `update_links` checks and repairs.
- **Your open SolidCraft window:** your agent and you work on the same design, and `mechvane check` runs the design checks there.
- **Standard parts** (screws, nuts, washers, ball bearings) and a **bolted connection assistant** that creates a connection in one call and takes it back in one call.
- **Design check** with sourced rules, ISO 286 fits and an open knowledge catalog; every finding shows
  its source and quoted passage.
- **MCP server** for your agent with clear error messages, a short report after every step and
  `verify_view` to check its work against a picture.
- **Browser preview** (`mechvane ui`): parameters, measuring, section view and the design check on your files.

## Contents

- [CHANGELOG.md](https://github.com/mechvane/mechvane/blob/main/CHANGELOG.md): what changed in each release
- [mechvane.dev](https://mechvane.dev/): the project website
- [Roadmap at a glance](https://mechvane.dev/roadmap/): what is available, what comes next
- [ROADMAP.md](https://github.com/mechvane/mechvane/blob/main/ROADMAP.md) and [mechvane.dev/roadmap](https://mechvane.dev/roadmap/): what works today, what comes next and what is planned
- [docs/adr/](https://github.com/mechvane/mechvane/tree/main/docs/adr): architecture decisions
- [MCP server](https://github.com/mechvane/mechvane/blob/main/docs/mechvane-mcp.md) (`mechvane/`): tools, data model, test reports
- [tests/](https://github.com/mechvane/mechvane/tree/main/tests): layer checks and reference parts
- [docs/research/](https://github.com/mechvane/mechvane/tree/main/docs/research): research notes and practice tests, dated. Notes
  marked as drafts (e.g. `-flash`, `-gemini`) are unverified unless a check note says
  otherwise.

Most project documentation is in German for now; code and comments are in English.

## License

MIT OR Apache-2.0, at your option (`LICENSE-MIT`, `LICENSE-APACHE`), like SolidCraft, so
code can move in both directions. Contributions are under the same terms. AGPL slicers
such as CuraEngine only run as separate processes and are not part of Mechvane
(`NOTICE`). See [CONTRIBUTING.md](https://github.com/mechvane/mechvane/blob/main/CONTRIBUTING.md).

Mechvane is an independent project and is not affiliated with Autodesk or any other CAD
vendor. Product names only describe workflows.
