Skip to main content
Glama

Fast Mermaid Validator MCP

by ai-of-mine
test-direct.js•1.39 kB
/** * Direct test bypassing the API to show the working SVG generation */ const MermaidToSVGConverter = require('./src/services/mermaidToSvgConverter'); async function testDirect() { const converter = new MermaidToSVGConverter(); // Use the exact format that worked in our debug test const diagram = `graph TD A[Start] --> B{Decision} B -->|Yes| C[Action 1] B -->|No| D[Action 2] C --> E[End] D --> E`; try { console.log('šŸ”„ Converting diagram...'); const result = await converter.convertToSVG(diagram, { theme: 'forest', layout: 'hierarchical' }); if (result.success) { console.log('āœ… SVG Generated successfully!'); console.log('šŸ“Š Metadata:', { nodeCount: result.metadata.nodeCount, edgeCount: result.metadata.edgeCount, theme: result.metadata.theme, processingTime: result.metadata.processingTime + 'ms' }); // Save to file require('fs').writeFileSync('direct-test.svg', result.svg); console.log('šŸ’¾ SVG saved to: direct-test.svg'); // Show first part of SVG console.log('šŸŽØ SVG Preview (first 200 chars):'); console.log(result.svg.substring(0, 200) + '...'); } else { console.error('āŒ Conversion failed:', result.error); } } catch (error) { console.error('šŸ’„ Error:', error.message); } } testDirect();

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