We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gvaibhav/TAM-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
demo-api-testing.shโข2.38 kB
#!/bin/bash
# Demo: Backend API Integration Testing
# This script demonstrates how to test real API integrations
echo "๐ฏ TAM MCP Server - Backend API Integration Testing Demo"
echo "======================================================"
echo ""
echo "๐ Current Test Status:"
echo "----------------------"
# Check what API keys are configured
echo "๐ API Key Configuration:"
if [ -n "$FRED_API_KEY" ]; then
echo " โ FRED API Key: Configured"
else
echo " โ ๏ธ FRED API Key: Not configured"
fi
if [ -n "$BLS_API_KEY" ]; then
echo " โ BLS API Key: Configured"
else
echo " โ ๏ธ BLS API Key: Not configured"
fi
if [ -n "$ALPHA_VANTAGE_API_KEY" ]; then
echo " โ Alpha Vantage API Key: Configured"
else
echo " โ ๏ธ Alpha Vantage API Key: Not configured"
fi
echo " โ IMF: Public API (no key required)"
echo " โ OECD: Public API (no key required)"
echo " โ World Bank: Public API (no key required)"
echo ""
echo "๐งช Running Live Integration Tests..."
echo "-----------------------------------"
echo "These tests make REAL API calls to external services:"
echo ""
# Run live tests with a timeout
timeout 60s npm run test:live --silent || echo "โฐ Tests timed out or completed"
echo ""
echo "๐ Test Results Summary:"
echo "-----------------------"
# Count test results
if [ -f "logs/test-results.log" ]; then
echo "๐ Detailed logs saved to: logs/test-results.log"
fi
echo ""
echo "๐ Available Testing Commands:"
echo "-----------------------------"
echo "npm run test:live # Run all live integration tests"
echo "npm run test:api-health # Quick health check of all APIs"
echo "npm run test:backend-apis # Comprehensive backend API test suite"
echo "npm test # Run unit tests (mocked APIs)"
echo ""
echo "๐ก To enable more API testing:"
echo "-----------------------------"
echo "1. Copy .env.example to .env"
echo "2. Add your API keys to .env file"
echo "3. Get free API keys from:"
echo " - FRED: https://fred.stlouisfed.org/docs/api/api_key.html"
echo " - Alpha Vantage: https://www.alphavantage.co/support/#api-key"
echo " - Census: https://api.census.gov/data/key_signup.html"
echo " - BLS: https://www.bls.gov/developers/api_signature_v2.htm"
echo ""
echo "๐ Full documentation: doc/BACKEND-API-TESTING.md"
echo ""
echo "โจ Demo complete!"