Circuitarium MCP

v0.3.1
io.github.Craftiee/circuitarium Checked 3 days ago Published 4 months ago

MCP tools for CRUMB artifacts and Logisim-evolution analysis and non-interactive simulation.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

electronics_capabilities Orient to Circuitarium MCP

Zero-argument onboarding for model-neutral conventions, callable backends, truthful limitations, and recommended workflows. Call this first when unsure.

electronics_validate_experiment Validate a portable electronics experiment

Checks an arbitrary JSON value against the simulator-neutral circuit, firmware, probe, assertion, and timing contract. Invalid input returns ok=true and data.valid=false with diagnostics.

ParameterTypeDescription
experiment *

electronics_plan_verification Plan evidence-aware electronics verification

Builds a deterministic, simulator-neutral plan for explicit claims using bounded caller-reported evidence. It reads no files, runs no tools or simulators, authenticates no receipts, and never certifies physical hardware.

ParameterTypeDescription
claims *array
target *
declaredInterfaceobject
evidencearray

crumb_component_catalog List recognized CRUMB component schemas

Returns the version-pinned CRUMB tool-ID catalog, payload signatures, typed parameters, terminal labels, confidence values, and their machine-readable evidence vocabulary. Optionally filter by toolId.

ParameterTypeDescription
toolIdinteger

crumb_analyze_design Analyze a CRUMB design semantically

Recognizes version-pinned component parameters, terminal attachments, and inferred connection groups. Summary is the bounded default; components and connections use opaque cursors. Embedded firmware and geometry require explicit opt-in.

ParameterTypeDescription
path *stringWorkspace-relative .cru project ref
cursorstring
expectedProjectDigeststringOptional sha256: digest from a prior cross-model handoff
includeGeometryboolean
includeSourceCodeboolean
limitinteger
topologyModestring
viewstring

crumb_compare_designs Compare CRUMB files under the Unity profile

Read-only, GUID-matched comparison of a baseline and candidate .cru under crumb.unity/1.3.5. Distinguishes exact bytes, modeled equivalence, root changes, component changes, and unverified payload signatures without returning raw XML, firmware, EEPROM bytes, or thumbnails.

ParameterTypeDescription
baselinePath *stringWorkspace-relative baseline .cru project ref
candidatePath *stringWorkspace-relative candidate .cru project ref
compatibilityProfilestring
cursorstring
expectedBaselineDigeststringOptional sha256: digest previously recorded for the baseline
expectedCandidateDigeststringOptional sha256: digest previously recorded for the candidate
includeGeometryboolean
limitinteger
topologyModestring
viewstring

crumb_inspect_design Inspect compact CRUMB metadata

Returns a bounded save summary and tool-ID counts. Use crumb_analyze_design for paginated semantic component and connection details.

ParameterTypeDescription
path *stringWorkspace-relative .cru project ref
expectedProjectDigeststringOptional sha256: digest from a prior cross-model handoff

crumb_validate_design Validate a CRUMB design

Performs XML and CRUMB structural checks without launching the game. A bad design returns ok=true and data.valid=false.

ParameterTypeDescription
path *stringWorkspace-relative .cru project ref
expectedProjectDigeststringOptional sha256: digest from a prior cross-model handoff

crumb_generate_fixture Generate a synthetic CRUMB fixture

Creates one known fixture without overwriting. Provide outputPath for a file artifact; raw XML is returned only when includeXml=true.

ParameterTypeDescription
kind *string
includeXmlboolean
namestring
outputPathstring

crumb_list_projects List CRUMB projects in the workspace

Enumerates .cru files under the workspace root (or one subdirectory) with size, modification time, and SHA-256 digest, so a model can discover projects without being handed a path.

ParameterTypeDescription
dirstringWorkspace-relative directory ref to list
includeDigestsboolean
limitinteger
recursiveboolean

crumb_get_component Fetch one CRUMB component in full detail

Returns a single component by id with parameters, terminals, geometry, its inferred connection groups, and windowed access to embedded firmware source past the analyze cap. The read-back companion for iterative work on one part.

ParameterTypeDescription
componentId *stringComponent id from analyze/netlist output; matching is case-insensitive
path *stringWorkspace-relative .cru project ref
expectedProjectDigeststringOptional sha256: digest from a prior cross-model handoff
includeGeometryboolean
includeSourceCodeboolean
sourceOffsetintegerCharacter offset into embedded firmware source for continued reads
topologyModestring

crumb_bom Build a bill of materials

Groups recognized components by kind and decoded part values into quantities. State values such as switch positions are excluded from part identity; unknown and schema-mismatched components stay visible as their own lines.

ParameterTypeDescription
path *stringWorkspace-relative .cru project ref
expectedProjectDigeststring
limitinteger

crumb_ic_reference Look up CRUMB IC packages and pinouts

Queries the version-pinned tool-5 IC registry by prefabId or by a label/package substring (for example "74HC138"). Returns package labels, ordered pin names, and explicit unresolved pins.

ParameterTypeDescription
prefabIdinteger
querystringCase-insensitive substring matched against IC label and package name

crumb_export_netlist Export named electrical nets

Collapses jumper wires out of the inferred connection graph and returns paged electrical nets with component terminals, VCC/GND names inferred from DC supply terminals, and optional saved-switch-state merges. Provenance and confidence are explicit.

ParameterTypeDescription
path *stringWorkspace-relative .cru project ref
applySwitchStatesbooleanMerge nets across saved switch positions using installed-build semantics
cursorstring
expectedProjectDigeststring
limitinteger
topologyModestring

crumb_trace_net Trace one inferred CRUMB electrical net

Selects one component terminal by stable index and returns a paged deterministic connectivity witness with structured attachment, board, jumper, and optional saved-switch provenance. It is static conductive inference, not current flow, path enumeration, or simulation.

ParameterTypeDescription
componentId *stringCase-insensitive component id from CRUMB analysis
path *stringWorkspace-relative .cru project ref
terminalIndex *integerZero-based terminal index; canonical within the exact project bytes
applySwitchStatesbooleanApply persisted switch closures as conditional installed-build evidence
cursorstring
expectedProjectDigeststring
expectedTerminalNamestringOptional exact-name guard for cross-model handoff
limitinteger
topologyModestring

crumb_check_design Run electrical rule checks

Lints the inferred netlist: supply shorts, LEDs directly across the rails, shorted two-terminal parts, floating IC power pins, resistor power ratings, and floating terminals. Findings carry evidence confidence and rule basis; a rule violation returns ok=true with data.valid=false.

ParameterTypeDescription
path *stringWorkspace-relative .cru project ref
applySwitchStatesboolean
expectedProjectDigeststring
topologyModestring

logisim_list_projects List Logisim-evolution projects

Discovers workspace .circ projects with stable raw-byte digests. This is static file discovery and does not launch Logisim.

ParameterTypeDescription
dirstringWorkspace-relative directory ref to list
limitinteger
recursiveboolean

logisim_analyze_design Analyze a Logisim-evolution project

Parses bounded .circ XML into project, circuit, pin, clock, component, and explicit conversion-loss summaries. Static parsing is not simulation evidence.

ParameterTypeDescription
path *stringWorkspace-relative .circ project ref
circuitstringCircuit name; defaults to the declared main circuit
expectedProjectDigeststringOptional sha256: digest from a prior cross-model handoff

logisim_export_netlist Export a partial Logisim netlist

Exports simulator-neutral coordinate-endpoint nets with explicit loss markers. It does not infer unmodeled gate geometry, mid-segment junctions, or behavior.

ParameterTypeDescription
path *stringWorkspace-relative .circ project ref
circuitstringCircuit name; defaults to the declared main circuit
cursorstring
expectedProjectDigeststringOptional sha256: digest from a prior cross-model handoff
limitinteger

logisim_component_stats Load a project and count Logisim components

Invokes the separately installed JAR, after it self-reports Logisim-evolution 4.1.0, with --tty stats. Success proves that configured process loaded the staged project, not behavioral simulation or binary authenticity.

ParameterTypeDescription
path *stringWorkspace-relative .circ project ref
circuitstringCircuit name; defaults to the declared main circuit
expectedProjectDigeststringOptional sha256: digest from a prior cross-model handoff
limitinteger
timeoutMsinteger

logisim_truth_table Simulate a bounded Logisim truth table

Invokes the separately installed JAR, after it self-reports Logisim-evolution 4.1.0, in CSV/binary table mode after statically bounding declared input width.

ParameterTypeDescription
path *stringWorkspace-relative .circ project ref
circuitstringCircuit name; defaults to the declared main circuit
expectedProjectDigeststringOptional sha256: digest from a prior cross-model handoff
limitinteger
maxInputBitsinteger
timeoutMsinteger

logisim_run_test_vector Run a Logisim test vector

Invokes the separately installed JAR, after it self-reports Logisim-evolution 4.1.0, with staged snapshots of a workspace-contained project and .vec/.txt file. Assertion failures return ok=true with data.valid=false.

ParameterTypeDescription
path *stringWorkspace-relative .circ project ref
vectorPath *stringWorkspace-relative .vec or .txt test-vector ref
circuitstringCircuit name; defaults to the declared main circuit
expectedProjectDigeststringOptional sha256: digest from a prior cross-model handoff
expectedVectorDigeststring
maxFailuresinteger
timeoutMsinteger