mcp-server

v1.6.2
@markdy/mcp-server Checked 1 hour ago Published 3 days ago

Model Context Protocol server for Markdy diagram validation, transpilation, and generation.

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

validate_markdy_code

Validates MarkdyScript diagram syntax, detects architectural rule violations, and outputs diagnostic suggestions with AI healing prompts.

ParameterTypeDescription
code *stringThe complete MarkdyScript (.markdy) diagram code starting with 'scene'.
checkArchitecturebooleanWhether to run Well-Architected governance rule checks (e.g. layer boundaries, cycle detection, gateway checks). Default: true.

diagnose_markdy_syntax

Deep diagnostic tool that analyzes MarkdyScript diagram syntax, detects typos in keywords/node kinds/operators/nodes, identifies flow cycle overlaps, unquoted strings, and provides 'Did you mean?' suggestions with auto-repaired code.

ParameterTypeDescription
code *stringThe MarkdyScript (.markdy) diagram code to inspect.
checkArchitecturebooleanWhether to include Well-Architected governance rules in the report. Default: true.

fix_markdy_code

Automatically repairs common MarkdyScript syntax errors, typos, missing colons, invalid flow operators, unquoted strings, cycle return edges, and wraps top-level bare cues into a valid scene.

ParameterTypeDescription
code *stringThe broken or draft MarkdyScript diagram code to automatically repair.

transpile_to_markdy

Converts external infrastructure or diagram code (Mermaid, Docker Compose, Kubernetes manifests, Terraform state, or Draw.io XML) into animated MarkdyScript scenes.

ParameterTypeDescription
format *stringThe source format to transpile from. Must be exactly one of: 'mermaid', 'docker-compose', 'k8s', 'terraform', 'drawio'.
source *stringThe source code or markup content to transpile into MarkdyScript.
titlestringOptional human-readable title for the generated scene header.

explain_architecture

Analyzes a MarkdyScript AST to output structural topology summaries, component role counts, and governance health metrics.

ParameterTypeDescription
code *stringThe MarkdyScript diagram code to inspect.

generate_markdy_prompt

Generates optimal LLM system prompts and grammar constraints for building high-quality, hallucination-resistant Markdy architecture animations.

ParameterTypeDescription
userGoal *stringThe architecture, workflow, or system flow description the user wants to visualize.

get_architecture_catalog

Returns the catalog of production-grade golden architecture templates (Microservices, RAG, Kafka, Kubernetes Ingress, GitOps CI/CD, OAuth2, HA Multi-Region, Flowcharts) with full runnable MarkdyScript code.

ParameterTypeDescription
filterCategorystringOptional filter string (e.g. 'Cloud', 'AI', 'Messaging', 'Security', 'DevOps').

get_markdy_intellicode

Provides zero-dependency intelligent code completion, predictive ghost-text next-line suggestions, and Well-Architected proactive recommendations for MarkdyScript diagrams.

ParameterTypeDescription
code *stringThe MarkdyScript diagram code.
columnnumberOptional 0-indexed column character where the cursor is positioned.
linenumberOptional 0-indexed line number where the cursor is positioned.