Skip to main content
Glama
test_docker_mcp.sh775 B
#!/bin/bash # Test Docker MCP Server echo "Testing Docker MCP Server..." # Test 1: Python path echo -e "\n1. Testing Python path:" cd /home/debian/docker-mcp-py python3 -c "import sys; print('Python:', sys.executable)" # Test 2: Import test echo -e "\n2. Testing imports:" python3 -c " import sys sys.path.insert(0, './src') try: from docker_mcp.server import main print('✓ Import successful') except Exception as e: print('✗ Import failed:', e) " # Test 3: Docker access echo -e "\n3. Testing Docker access:" if docker ps >/dev/null 2>&1; then echo "✓ Docker is accessible" else echo "✗ Docker is not accessible" fi # Test 4: Run server briefly echo -e "\n4. Testing server startup:" timeout 2 python3 ../docker_mcp_server.py 2>&1 | head -20

Latest Blog Posts

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/diegofornalha/docker-mcp-py'

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