mcp-server

v0.2.17
@coral-viz/mcp-server Checked 1 day ago Published 4 days ago

MCP server for Coral diagram parsing, conversion, and layout

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

coral_generate

Heuristically extract a basic Coral diagram from a natural-language description. Review the result before use.

ParameterTypeDescription
description *stringNatural language description of the system architecture to diagram
formatstringOutput format: 'dsl' for Coral DSL (default), 'json' for Graph-IR JSON
stylestringOutput style: 'minimal' for basic diagram, 'detailed' for descriptions and metadata

coral_validate

Validate Coral DSL or Graph-IR JSON for syntax, schema, and reference errors.

ParameterTypeDescription
content *stringCoral DSL or Graph-IR JSON to validate
strictbooleanTreat warnings as errors

coral_check_conformance

Run an explicit, read-only 0.2.8 profile-rule check. Returns full findings and unverified obligations; partial rule cards never certify conformance. A 0.2.9 document in which a node selects a local. user symbol is reported as not checked.

ParameterTypeDescription
content *stringCoral source or GraphIR 3 JSON to inspect
levelstringOptional one-off level. Coral source uses its saved level when omitted; GraphIR 3 defaults to typical.
notificationLevelstringNotice threshold, separate from full findings; default error

coral_convert

Convert Mermaid, Graphviz DOT, PlantUML, or Coral to JSON, or deterministically transpile Top-5 Mermaid diagrams (flowchart/graph, sequenceDiagram, classDiagram, erDiagram, stateDiagram/stateDiagram-v2) to self-verified Coral saved source. Saved @diagram Coral emits a GraphIR 4 candidate; Coral identity conversion preserves source.

ParameterTypeDescription
content *stringThe diagram content to convert
edgeStyleModestringEdge style emission policy when transpiling Mermaid to Coral: 'visual-safe' guarantees visual renderability; 'portable' preserves portable Coral 0.2.14 edge styles (default: 'visual-safe')
flowchartTargetstringTarget Coral notation when transpiling Mermaid flowcharts to Coral (default: 'flowchart')
fromstringSource format (use 'auto' to detect)
stateTargetEditionstringTarget Coral edition when transpiling Mermaid state diagrams: '0.2.17' (visual & hierarchical) or '0.2.8' (legacy flat character-compatible) (default: '0.2.17')
strictbooleanFail the conversion when anything is lost, rather than reporting it and continuing
tostringTarget format

coral_layout

Run ELK on Graph-IR JSON or Coral DSL and return computed geometry.

ParameterTypeDescription
content *stringGraph-IR JSON or Coral DSL to lay out
optionsobject

coral_render

Generate a deterministic SVG, standalone HTML, or plain-text visualization of a Coral diagram or Graph-IR.

ParameterTypeDescription
content *stringGraph-IR JSON or Coral DSL to render
optionsobjectRendering options

coral_explain

Generate a natural language explanation of a Coral diagram or Graph-IR JSON.

ParameterTypeDescription
content *stringThe Coral DSL or Graph-IR JSON to explain
focusstringOptional node ID to focus the explanation on
levelstringLevel of detail: brief (1 paragraph), standard (sections), detailed (comprehensive)