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
test-workflow-local.shโข1.51 kB
#!/bin/bash
# Local test script to simulate GitHub Actions workflow
echo "๐ Starting Local TAM MCP Server Workflow Test"
echo "=============================================="
# Exit on any error
set -e
echo "๐ฆ Step 1: Building project..."
npm run build
echo "โ Build completed successfully"
echo "๐งช Step 2: Running API health check..."
npm run test:api-health
echo "โ API health check completed"
echo "๐ง Step 3: Running unit tests..."
npm run test:unit
echo "โ Unit tests completed"
echo "๐ Step 4: Running integration tests..."
npm run test:integration
echo "โ Integration tests completed"
echo "๐ Step 5: Starting HTTP server for Postman tests..."
PORT=3000 npm run start:http &
SERVER_PID=$!
echo "Server started with PID: $SERVER_PID"
# Wait for server to start
echo "โณ Waiting for server to start..."
sleep 10
# Check if server is running
echo "๐ Testing server health..."
curl -f http://localhost:3000/health || (echo "โ Server health check failed" && exit 1)
echo "โ Server is healthy"
echo "๐ฎ Step 6: Running Newman/Postman tests..."
npx newman run examples/TAM-MCP-Server-Postman-Collection.json \
--env-var serverUrl=http://localhost:3000 \
--timeout-request 30000 \
--delay-request 2000 \
--bail
echo "โ Newman tests completed"
# Clean up
echo "๐งน Cleaning up..."
kill $SERVER_PID 2>/dev/null || true
echo "โ Server stopped"
echo ""
echo "๐ All tests completed successfully!"
echo "โ Your workflow is ready for GitHub Actions!"