Skip to main content

Crate chart_live_cli

Crate chart_live_cli 

Source
Expand description

chart-live: one command line and one MCP server for every chart-live engine.

chart-live mermaid render diagram.mmd -o out.svg   # = mermaid-live render ...
chart-live d3 sim chart.d3.js --actions @a.json     # = d3-live sim ...
chart-live mcp                                      # mermaid_live_* and d3_* tools together

The standalone mermaid-live and d3-live binaries keep working; this crate only routes.

Functionsยง

handle
Handles one JSON-RPC message by routing to the engine that owns the tool or prompt.
run
Runs the CLI with args (excluding argv[0]) and returns the exit code.
serve
Serves newline-delimited JSON-RPC 2.0 from input to output.