Skip to main content
Glama
test-endpoints.ts960 B
// Simple test script for the listEndpoints functionality import fs from 'fs'; import path from 'path'; import { fileURLToPath } from 'url'; // Get the directory name const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); // Import the listEndpoints function import listEndpoints from '../build/services/listEndpoints.js'; async function testListEndpoints(): Promise<void> { try { console.log('Testing listEndpoints...'); // Use the mock Swagger file for testing const swaggerFilePath = path.join(__dirname, '..', 'ReferenceFiles', 'projects-api-v3.oas2.yml'); const endpoints = await listEndpoints({ swaggerFilePath }); console.log('Endpoints:'); console.log(JSON.stringify(endpoints, null, 2)); console.log(`Found ${endpoints.length} endpoints.`); } catch (error: any) { console.error('Error testing listEndpoints:', error); } } // Run the test testListEndpoints();

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/Vizioz/Swagger-MCP'

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