Skip to main content
Glama

Self-hosted LLM MCP Server

test-build.sh1 kB
#!/bin/bash echo "Testing MCP Server build and startup..." # Test TypeScript compilation echo "1. Testing TypeScript compilation..." npm run build if [ $? -eq 0 ]; then echo "✅ TypeScript compilation successful" else echo "❌ TypeScript compilation failed" exit 1 fi # Test if dist files exist echo "2. Checking build output..." if [ -d "dist" ] && [ -f "dist/index.js" ] && [ -f "dist/http-server.js" ]; then echo "✅ Build output files exist" else echo "❌ Build output files missing" exit 1 fi # Test HTTP server startup (briefly) echo "3. Testing HTTP server startup..." timeout 5s npm run start:http & SERVER_PID=$! sleep 2 # Check if server is running if curl -s http://localhost:3000/health > /dev/null; then echo "✅ HTTP server started successfully" kill $SERVER_PID 2>/dev/null else echo "❌ HTTP server failed to start" kill $SERVER_PID 2>/dev/null exit 1 fi echo "🎉 All tests passed! MCP Server is ready for Docker deployment."

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/Krishnahuex28/MCP'

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