Skip to main content
Glama

Orchestrator MCP

test-tools-manual.jsโ€ข3.41 kB
#!/usr/bin/env node /** * Manual tool testing script for the Orchestrator MCP Server * Tests each tool individually to verify functionality */ import { Client } from '@modelcontextprotocol/sdk/client/index.js'; import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js'; console.log('๐Ÿงช Starting manual tool testing...'); async function testTools() { // Create client and transport const transport = new StdioClientTransport({ command: 'node', args: ['-r', 'dotenv/config', 'dist/index.js'], env: { ...process.env, // Add any required environment variables here } }); const client = new Client({ name: 'test-client', version: '1.0.0' }, { capabilities: {} }); try { console.log('๐Ÿ”Œ Connecting to MCP server...'); await client.connect(transport); console.log('โœ… Connected successfully!'); // Test 1: List available tools console.log('\n๐Ÿ“‹ Test 1: Listing available tools...'); const toolsResponse = await client.listTools(); console.log(`Found ${toolsResponse.tools.length} tools:`); toolsResponse.tools.forEach((tool, index) => { console.log(` ${index + 1}. ${tool.name} - ${tool.description}`); }); // Test 2: get_info tool console.log('\n๐Ÿ” Test 2: Testing get_info tool...'); try { const infoResult = await client.callTool({ name: 'get_info', arguments: {} }); console.log('โœ… get_info result:', JSON.stringify(infoResult, null, 2)); } catch (error) { console.error('โŒ get_info failed:', error.message); } // Test 3: ai_status tool console.log('\n๐Ÿฅ Test 3: Testing ai_status tool...'); try { const statusResult = await client.callTool({ name: 'ai_status', arguments: {} }); console.log('โœ… ai_status result:', JSON.stringify(statusResult, null, 2)); } catch (error) { console.error('โŒ ai_status failed:', error.message); } // Test 4: analyze_intelligence_layer tool console.log('\n๐Ÿง  Test 4: Testing analyze_intelligence_layer tool...'); try { const analysisResult = await client.callTool({ name: 'analyze_intelligence_layer', arguments: { includeQuality: true, includeArchitecture: true } }); console.log('โœ… analyze_intelligence_layer result:', JSON.stringify(analysisResult, null, 2)); } catch (error) { console.error('โŒ analyze_intelligence_layer failed:', error.message); } // Test 5: ai_process tool (simple request) console.log('\n๐Ÿค– Test 5: Testing ai_process tool with simple request...'); try { const processResult = await client.callTool({ name: 'ai_process', arguments: { request: 'List the files in the current directory' } }); console.log('โœ… ai_process result:', JSON.stringify(processResult, null, 2)); } catch (error) { console.error('โŒ ai_process failed:', error.message); } console.log('\n๐ŸŽ‰ All tool tests completed!'); } catch (error) { console.error('โŒ Test failed:', error); } finally { try { await client.close(); console.log('๐Ÿ”Œ Client connection closed'); } catch (error) { console.error('Error closing client:', error); } } } // Run the tests testTools().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/Phoenixrr2113/Orchestrator-MCP'

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