Skip to main content
Glama
quick-test.jsโ€ข2.04 kB
#!/usr/bin/env node /** * Quick Test Script * * This script provides a simple way to verify that the ACI MCP server * components are working correctly. */ import { ACIApiService } from '../build/src/services/aciApi.js'; import { MockAPICServer } from '../build/test/mock-server.js'; console.log('๐Ÿงช ACI MCP Server Quick Test\n'); // Start mock server console.log('๐Ÿ“ก Starting Mock APIC Server...'); const mockServer = new MockAPICServer(8443); mockServer.start(); // Wait for server to start await new Promise(resolve => setTimeout(resolve, 2000)); try { // Test API service console.log('๐Ÿ”ง Testing ACI API Service...'); const config = { apicUrl: 'http://localhost:8443', username: 'admin', password: 'admin', validateCerts: false, timeout: 5000 }; const aciApi = new ACIApiService(config); // Test authentication console.log('๐Ÿ” Testing authentication...'); await aciApi.authenticate(); console.log('โœ… Authentication successful!'); // Test basic operations console.log('๐Ÿข Testing list tenants...'); const tenants = await aciApi.listTenants(); console.log(`โœ… Found ${tenants.imdata?.length || 0} tenants`); console.log('๐Ÿ’š Testing fabric health...'); const health = await aciApi.getFabricHealth(); console.log(`โœ… Fabric health: ${health.imdata?.[0]?.fabricHealthTotal?.attributes?.cur || 'Unknown'}`); console.log('๐Ÿšจ Testing faults...'); const faults = await aciApi.listFaults(); console.log(`โœ… Found ${faults.imdata?.length || 0} faults`); console.log('๐Ÿ–ฅ๏ธ Testing nodes...'); const nodes = await aciApi.listNodes(); console.log(`โœ… Found ${nodes.imdata?.length || 0} nodes`); console.log('\n๐ŸŽ‰ All tests passed! The ACI MCP Server is working correctly.'); } catch (error) { console.error('โŒ Test failed:', error.message); process.exit(1); } finally { console.log('\n๐Ÿ›‘ Stopping mock server...'); mockServer.stop(); } console.log('โœจ Quick test completed successfully!'); process.exit(0);

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/jim-coyne/ACI_MCP'

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