lv24-diagram

v0.2.1
io.github.LevapVeeskela/lv24-diagram Checked 1 hour ago Published 5 days ago

Mermaid 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.

ParameterTypeDescription
mermaid *stringMermaid source
backgroundstringCSS background colour, default #ffffff
pngbooleanRender a PNG screenshot (default true)
themestringdefault | base | dark | forest | neutral

diagram_lint Lint Mermaid

Check a Mermaid diagram against readability budgets (node count, depth, cycles, edge labels, label length).

ParameterTypeDescription
mermaid *string
max_nodesinteger

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.

ParameterTypeDescription
mermaid *string
title *string
backgroundstring
pngboolean
publish_to_brainbooleanBest-effort brain note (default true)
themestring

schema_tables List tables

List tables and views with row estimates from the configured PostgreSQL database.

ParameterTypeDescription
include_viewsbooleanInclude views and materialized views
patternstringSQL LIKE pattern, e.g. travel_%

schema_columns Describe columns

Return columns, types, nullability and PK/UK flags for the given tables.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
include_columnsboolean
max_entitiesinteger
saveboolean
tablesarray
titlestring

arch_scan Scan repository architecture

Detect services from docker-compose, nginx proxy targets and packages. Facts only; unknowns are reported explicitly.

ParameterTypeDescription
pathstringRepository root (default: current directory)

arch_diagram Architecture diagram

Build a Mermaid architecture view (container | context | deploy) from the repository scan, optionally save it.

ParameterTypeDescription
pathstring
saveboolean
titlestring
viewstring

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.

ParameterTypeDescription
mermaid *string
insert_modestring
modestring

drawio_export Export draw.io diagram

Export a page of the connected draw.io document to PNG, SVG or XML.

ParameterTypeDescription
format *string
output_path *string
embed_xmlboolean
pageinteger

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.

ParameterTypeDescription
dry_runboolean