lv24-diagram
v0.2.1Mermaid render/lint, ER diagrams from PostgreSQL, architecture scan, draw.io bridge, brain sync
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
diagram_render Render Mermaid
Render a Mermaid diagram to SVG and/or PNG. Returns a text summary plus a PNG image when requested.
| Parameter | Type | Description |
|---|---|---|
mermaid * | string | Mermaid source |
background | string | CSS background colour, default #ffffff |
png | boolean | Render a PNG screenshot (default true) |
theme | string | default | base | dark | forest | neutral |
diagram_lint Lint Mermaid
Check a Mermaid diagram against readability budgets (node count, depth, cycles, edge labels, label length).
| Parameter | Type | Description |
|---|---|---|
mermaid * | string | |
max_nodes | integer |
diagram_save Save diagram
Render and store a diagram as NN-slug.mmd/.svg/.png under docs.dir, update the README index, and optionally publish a digest to lv24-brain.
| Parameter | Type | Description |
|---|---|---|
mermaid * | string | |
title * | string | |
background | string | |
png | boolean | |
publish_to_brain | boolean | Best-effort brain note (default true) |
theme | string |
schema_tables List tables
List tables and views with row estimates from the configured PostgreSQL database.
| Parameter | Type | Description |
|---|---|---|
include_views | boolean | Include views and materialized views |
pattern | string | SQL LIKE pattern, e.g. travel_% |
schema_columns Describe columns
Return columns, types, nullability and PK/UK flags for the given tables.
| Parameter | Type | Description |
|---|---|---|
tables * | array |
schema_query Read-only query
Run one read-only SELECT/WITH statement with a row limit. The DB user must still be read-only; the guard is not a permission boundary.
| Parameter | Type | Description |
|---|---|---|
sql * | string |
schema_er ER diagram from schema
Build a Mermaid erDiagram from the live database schema (tables ranked by size), optionally render and save it.
| Parameter | Type | Description |
|---|---|---|
include_columns | boolean | |
max_entities | integer | |
save | boolean | |
tables | array | |
title | string |
arch_scan Scan repository architecture
Detect services from docker-compose, nginx proxy targets and packages. Facts only; unknowns are reported explicitly.
| Parameter | Type | Description |
|---|---|---|
path | string | Repository root (default: current directory) |
arch_diagram Architecture diagram
Build a Mermaid architecture view (container | context | deploy) from the repository scan, optionally save it.
| Parameter | Type | Description |
|---|---|---|
path | string | |
save | boolean | |
title | string | |
view | string |
drawio_status draw.io status
Check the shared draw.io MCP server and list connected editor documents.
drawio_import_mermaid Import Mermaid into draw.io
Convert Mermaid into native draw.io cells on a page of the connected editor document.
| Parameter | Type | Description |
|---|---|---|
mermaid * | string | |
insert_mode | string | |
mode | string |
drawio_export Export draw.io diagram
Export a page of the connected draw.io document to PNG, SVG or XML.
| Parameter | Type | Description |
|---|---|---|
format * | string | |
output_path * | string | |
embed_xml | boolean | |
page | integer |
brain_context Project context from lv24-brain
Read the curated project state (goal, next action, active items) so diagrams match what the project is actually doing.
brain_publish Publish diagram digest to lv24-brain
Write one note describing the saved diagram set. Idempotent: skipped when the content hash was already published. Use dry_run to preview the note without writing.
| Parameter | Type | Description |
|---|---|---|
dry_run | boolean |