Skip to main content
Glama

MCP Server

by foxywolf-hub
health.py833 B
from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.ext.asyncio import AsyncSession from app.db.database import get_db router = APIRouter(prefix="/health", tags=["health"]) @router.get("/health") async def health_check(): """ 서버 상태 확인을 위한 엔드포인트 """ return {"status": "ok", "message": "MCP Server is running"} @router.get("/db-check") async def db_health_check(db: AsyncSession = Depends(get_db)): """ 데이터베이스 연결 상태 확인을 위한 엔드포인트 """ try: # 간단한 쿼리 실행 result = await db.execute("SELECT 1") return {"status": "ok", "message": "Database connection is healthy"} except Exception as e: raise HTTPException(status_code=503, detail=f"Database connection error: {str(e)}")

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/foxywolf-hub/mcp-server1'

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