mcp-server
v0.2.17MCP 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.
| Parameter | Type | Description |
|---|---|---|
description * | string | Natural language description of the system architecture to diagram |
format | string | Output format: 'dsl' for Coral DSL (default), 'json' for Graph-IR JSON |
style | string | Output 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.
| Parameter | Type | Description |
|---|---|---|
content * | string | Coral DSL or Graph-IR JSON to validate |
strict | boolean | Treat 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.
| Parameter | Type | Description |
|---|---|---|
content * | string | Coral source or GraphIR 3 JSON to inspect |
level | string | Optional one-off level. Coral source uses its saved level when omitted; GraphIR 3 defaults to typical. |
notificationLevel | string | Notice 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.
| Parameter | Type | Description |
|---|---|---|
content * | string | The diagram content to convert |
edgeStyleMode | string | Edge 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') |
flowchartTarget | string | Target Coral notation when transpiling Mermaid flowcharts to Coral (default: 'flowchart') |
from | string | Source format (use 'auto' to detect) |
stateTargetEdition | string | Target Coral edition when transpiling Mermaid state diagrams: '0.2.17' (visual & hierarchical) or '0.2.8' (legacy flat character-compatible) (default: '0.2.17') |
strict | boolean | Fail the conversion when anything is lost, rather than reporting it and continuing |
to | string | Target format |
coral_layout
Run ELK on Graph-IR JSON or Coral DSL and return computed geometry.
| Parameter | Type | Description |
|---|---|---|
content * | string | Graph-IR JSON or Coral DSL to lay out |
options | object |
coral_render
Generate a deterministic SVG, standalone HTML, or plain-text visualization of a Coral diagram or Graph-IR.
| Parameter | Type | Description |
|---|---|---|
content * | string | Graph-IR JSON or Coral DSL to render |
options | object | Rendering options |
coral_explain
Generate a natural language explanation of a Coral diagram or Graph-IR JSON.
| Parameter | Type | Description |
|---|---|---|
content * | string | The Coral DSL or Graph-IR JSON to explain |
focus | string | Optional node ID to focus the explanation on |
level | string | Level of detail: brief (1 paragraph), standard (sections), detailed (comprehensive) |