Skip to main content
Glama
architecture.js•770 B
// Generated wrapper for architecture Langium grammar // This provides basic validation without full Langium compilation module.exports = { name: 'architecture', parse: function(content) { // Basic validation for architecture diagrams const firstLine = content.trim().split('\n')[0].toLowerCase(); if (!firstLine.includes('architecture')) { throw new Error('Invalid architecture diagram: must start with "architecture"'); } return { type: 'architecture', valid: true }; }, validate: function(content) { try { this.parse(content); return { valid: true, errors: [] }; } catch (error) { return { valid: false, errors: [{ message: error.message, line: 1 }] }; } } };

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