Skip to main content
Glama

Self-hosted LLM MCP Server

test-docker.sh1.16 kB
#!/bin/bash echo "Testing Docker build for MCP Server..." # Build the Docker image echo "1. Building Docker image..." docker build -t mcp-server-test . if [ $? -eq 0 ]; then echo "✅ Docker build successful" else echo "❌ Docker build failed" exit 1 fi # Test the Docker container echo "2. Testing Docker container..." docker run -d --name mcp-test -p 3001:3000 \ -e SUPABASE_URL=test \ -e SUPABASE_ANON_KEY=test \ -e LLM_BASE_URL=http://localhost:11434 \ mcp-server-test sleep 5 # Check if container is running if docker ps | grep -q mcp-test; then echo "✅ Docker container started successfully" # Test health endpoint if curl -s http://localhost:3001/health > /dev/null; then echo "✅ Health endpoint accessible" else echo "⚠️ Health endpoint not accessible (expected without proper env vars)" fi # Cleanup docker stop mcp-test docker rm mcp-test echo "✅ Container cleanup completed" else echo "❌ Docker container failed to start" docker logs mcp-test docker rm mcp-test exit 1 fi echo "🎉 Docker build test completed successfully!"

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