Skip to main content
Glama

Model Context Protocol (MCP) Server

by infinyte
index.js1.08 kB
/** * MCP Server Unit Tests * * This suite tests individual components and functions. */ const { execSync } = require('child_process'); const path = require('path'); console.log('=== Running Unit Tests ==='); // Define the test files const testFiles = [ { name: 'Web Search Unit Test', path: './test-web-search.js' }, { name: 'Tools Available Module Test', path: './test-tools-available-module.js' }, { name: 'Tools Discovery Advanced Filters Test', path: './test-tools-discovery-advanced-filters.js' } ]; // Track overall success let allTestsPassed = true; // Run each test file testFiles.forEach(test => { const testPath = path.join(__dirname, test.path); console.log(`\nRunning ${test.name}...`); try { // Execute the test execSync(`node ${testPath}`, { stdio: 'inherit' }); console.log(`✅ ${test.name} passed`); } catch (error) { console.error(`❌ ${test.name} failed`); allTestsPassed = false; } }); // Exit with appropriate code if (!allTestsPassed) { process.exit(1); } console.log('\n✅ All Unit tests passed');

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/infinyte/mcp-server'

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