Skip to main content
Glama

Adaptive Graph of Thoughts MCP Server

test_performance.jsβ€’1.73 kB
#!/usr/bin/env node // Test the server's performance under various loads import { spawn } from 'child_process'; async function testServerPerformance() { console.log('πŸš€ Testing Server Performance and Resource Limits...\n'); // Test 1: Multiple rapid startup/shutdown cycles console.log('πŸ“Š Test 1: Rapid startup/shutdown cycles'); const startTime = Date.now(); for (let i = 0; i < 5; i++) { const server = spawn('node', ['server/index.js'], { stdio: 'pipe' }); await new Promise(resolve => { setTimeout(() => { server.kill('SIGTERM'); server.on('exit', resolve); }, 1000); }); } const cycleTime = Date.now() - startTime; console.log(`βœ… Completed 5 cycles in ${cycleTime}ms (avg: ${Math.round(cycleTime/5)}ms per cycle)`); // Test 2: Memory usage check console.log('\nπŸ“Š Test 2: Memory usage baseline'); const server = spawn('node', ['server/index.js'], { stdio: 'pipe' }); await new Promise(resolve => setTimeout(resolve, 2000)); // Let it stabilize const memUsage = process.memoryUsage(); console.log(`βœ… Memory baseline: RSS=${Math.round(memUsage.rss/1024/1024)}MB, Heap=${Math.round(memUsage.heapUsed/1024/1024)}MB`); server.kill('SIGTERM'); // Test 3: Large input handling (test our 10MB limit) console.log('\nπŸ“Š Test 3: Large input validation'); const largeInput = 'x'.repeat(11 * 1024 * 1024); // 11MB - should be rejected console.log(`βœ… Created ${Math.round(largeInput.length/1024/1024)}MB test input`); console.log('βœ… Input size validation will be tested during tool calls'); console.log('\nπŸŽ‰ Performance tests completed successfully!'); } testServerPerformance().catch(console.error);

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/SaptaDey/Adaptive-Graph-of-Thoughts-MCP-server'

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