Skip to main content
Glama
test_main.py828 B
"""Tests for the main application.""" def test_health_check(client): """Test the health check endpoint returns proper structure.""" response = client.get("/apis/mcp/health") assert response.status_code == 200 data = response.json() # Verify response structure (DeepHealthResponse) assert "status" in data assert "components" in data assert "message" in data # Status should be one of the valid values assert data["status"] in ["healthy", "unhealthy", "degraded"] # Components should be a list assert isinstance(data["components"], list) # Each component should have required fields for component in data["components"]: assert "name" in component assert "status" in component assert component["status"] in ["healthy", "unhealthy", "degraded"]

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/BERDataLakehouse/datalake-mcp-server'

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