Skip to main content
Glama
test-photosynthesis-7th.jsโ€ข1.87 kB
#!/usr/bin/env node import { spawn } from 'child_process'; import { join } from 'path'; const PROJECT_ROOT = '/Users/ricardokawasaki/Desktop/euconquisto-composer-mcp-poc'; async function testPhotosynthesisLesson() { console.log('๐Ÿงช Testing Photosynthesis Lesson Creation for 7th Grade...\n'); const mcpProcess = spawn('node', [ join(PROJECT_ROOT, 'dist/browser-automation-api-direct-save-v4.0.3.js') ], { stdio: ['pipe', 'pipe', 'pipe'] }); // MCP request for photosynthesis lesson const request = { jsonrpc: "2.0", id: 1, method: "tools/call", params: { name: "create_educational_composition", arguments: { prompt: "Criar uma aula sobre fotossรญntese", subject: "Ciรชncias", gradeLevel: "7ยบ ano" } } }; console.log('๐Ÿ“ Sending request:', JSON.stringify(request, null, 2)); console.log('\n๐Ÿ”„ Processing...\n'); // Send the request mcpProcess.stdin.write(JSON.stringify(request) + '\n'); // Handle response let responseData = ''; mcpProcess.stdout.on('data', (data) => { responseData += data.toString(); }); mcpProcess.stderr.on('data', (data) => { console.log('โŒ Error:', data.toString()); }); mcpProcess.on('close', (code) => { if (responseData.trim()) { try { const response = JSON.parse(responseData); console.log('โœ… Response received:'); console.log(JSON.stringify(response, null, 2)); } catch (e) { console.log('๐Ÿ“„ Raw response:'); console.log(responseData); } } console.log(`\n๐Ÿ Process completed with code: ${code}`); }); // Keep process alive for browser automation setTimeout(() => { console.log('\nโฐ Test completed - browser should be running with the lesson!'); }, 10000); } testPhotosynthesisLesson().catch(console.error);

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