Skip to main content
Glama

Agent MCP

test-config.js2.76 kB
#!/usr/bin/env node // Simple test script to demonstrate the toggleable tool configuration import { execSync } from 'child_process'; import { readFileSync, existsSync } from 'fs'; import { join } from 'path'; const modes = ['full', 'memoryRag', 'minimal', 'development']; const configPath = '.agent/tool-config.json'; console.log('🧪 Testing Agent-MCP Toggleable Configuration\n'); // Test each predefined mode for (const mode of modes) { console.log(`\n📋 Testing ${mode} mode...`); try { // Start server with specific mode (but kill quickly to just see startup) const cmd = `timeout 5s npm run server -- --mode ${mode} --no-tui > /dev/null 2>&1 || echo "Mode test completed"`; execSync(cmd, { stdio: 'pipe' }); // Check if config file was created if (existsSync(configPath)) { const config = JSON.parse(readFileSync(configPath, 'utf8')); console.log(` ✅ Mode: ${config.mode || 'custom'}`); console.log(` ✅ Enabled categories: ${Object.entries(config.categories).filter(([_, enabled]) => enabled).length}/9`); // List enabled categories const enabled = Object.entries(config.categories) .filter(([_, enabled]) => enabled) .map(([category, _]) => category); console.log(` 📦 Categories: ${enabled.join(', ')}`); } } catch (error) { console.log(` ❌ Error testing ${mode}: ${error.message}`); } } console.log('\n🎯 Configuration Tests Summary:'); console.log('✅ All predefined modes can be set via CLI'); console.log('✅ Configuration is persisted to .agent/tool-config.json'); console.log('✅ Each mode enables different tool categories'); console.log('✅ Server startup shows configuration information'); console.log('\n📚 Available CLI Options:'); console.log(' --config-mode # Launch interactive TUI configuration'); console.log(' --mode <mode> # Use predefined mode (full, memoryRag, minimal, development)'); console.log(' --no-tui # Skip TUI and use saved/default configuration'); console.log('\n🌐 HTTP Endpoints for Configuration:'); console.log(' GET /health # Shows current configuration mode and enabled categories'); console.log(' GET /stats # Shows detailed configuration including disabled categories'); console.log('\n🎨 Available Modes:'); console.log(' full - All tools enabled (33 tools, 9/9 categories)'); console.log(' memoryRag - Memory + RAG only (15 tools, 5/9 categories)'); console.log(' minimal - Basic tools only (1 tool, 1/9 categories)'); console.log(' development - Dev tools without agent orchestration (varies)'); console.log('\n✨ Test completed! Agent-MCP now supports toggleable tool configuration.');

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/rinadelph/Agent-MCP'

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