Skip to main content
Glama
inspect-composition.js955 B
#!/usr/bin/env node import { createComposerFormatter } from '../src/tools/format-for-composer.js'; const testData = { metadata: { topic: "Fotossíntese: A Fábrica de Energia da Vida", subject: "Ciências", gradeLevel: "8º ano", duration: 50, learningObjectives: ["Compreender o processo da fotossíntese"] }, widgets: [ { type: "head-1", content: { category: "CIÊNCIAS - BIOLOGIA", author_name: "Professor(a) Virtual", author_office: "Especialista em Biologia Celular" } } ] }; const formatter = createComposerFormatter(); const result = await formatter.formatForComposer(testData); console.log('=== METADATA ==='); console.log(JSON.stringify(result.data.composerJSON.metadata, null, 2)); console.log('\n=== HEADER WIDGET ==='); const headerWidget = result.data.composerJSON.structure.find(w => w.type === 'head-1'); console.log(JSON.stringify(headerWidget, null, 2));

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/rkm097git/euconquisto-composer-mcp-poc'

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