Skip to main content
Glama
comprehensive_test.md•1.54 kB
# Comprehensive Mermaid Diagram Test Suite This file tests all supported Mermaid diagram types with both valid and invalid syntax. ## Valid Diagrams ### Flowchart ```mermaid flowchart TD A[Start] --> B{Decision} B -->|Yes| C[Action 1] B -->|No| D[Action 2] C --> E[End] D --> E ``` ### Sequence Diagram ```mermaid sequenceDiagram participant A as Alice participant B as Bob A->>B: Hello Bob B-->>A: Hello Alice A->>B: How are you? B->>A: I'm good! ``` ### Class Diagram ```mermaid classDiagram class Animal { +String name +int age +makeSound() } class Dog { +String breed +bark() } Animal <|-- Dog ``` ### State Diagram ```mermaid stateDiagram-v2 [*] --> Still Still --> [*] Still --> Moving Moving --> Still Moving --> Crash Crash --> [*] ``` ### ER Diagram ```mermaid erDiagram CUSTOMER ||--o{ ORDER : places ORDER ||--|{ LINE-ITEM : contains CUSTOMER }|..|{ DELIVERY-ADDRESS : uses ``` ### Gantt Chart ```mermaid gantt title A Gantt Diagram dateFormat YYYY-MM-DD section Section A task :a1, 2014-01-01, 30d Another task :after a1 , 20d ``` ## Invalid Diagrams (Should Fail) ### Invalid Flowchart ```mermaid flowchart TD A --> --> B invalid syntax ``` ### Invalid Sequence ```mermaid sequenceDiagram participant A->->->B: invalid arrows random text ``` ### Invalid Class ```mermaid classDiagram class <<< invalid ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ai-of-mine/fast-mermaid-validator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server