Skip to main content
Glama
pie.js•707 B
// Generated wrapper for pie Langium grammar // This provides basic validation without full Langium compilation module.exports = { name: 'pie', parse: function(content) { // Basic validation for pie diagrams const firstLine = content.trim().split('\n')[0].toLowerCase(); if (!firstLine.includes('pie')) { throw new Error('Invalid pie diagram: must start with "pie"'); } return { type: 'pie', 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