README'ye Antigravity için lokal uvx kurulumunu otomatik yapan kopyala-yapıştır komutu eklendi (~/.gemini/config/mcp_config.json). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
36 lines
942 B
Python
36 lines
942 B
Python
"""
|
||
ASGI application for Yargı MCP Server (simple deployment variant).
|
||
|
||
This is a minimal ASGI application that can be run with:
|
||
uvicorn app:app --host 0.0.0.0 --port 8000
|
||
|
||
The MCP server will be available at:
|
||
http://localhost:8000/mcp/
|
||
|
||
For the FastAPI-wrapped variant with CORS and extra metadata routes,
|
||
see asgi_app.py instead.
|
||
"""
|
||
|
||
from starlette.responses import JSONResponse
|
||
from mcp_server_main import create_app
|
||
|
||
mcp = create_app()
|
||
|
||
|
||
@mcp.custom_route("/health", methods=["GET"])
|
||
async def health_check(request):
|
||
"""Health check endpoint for monitoring services (Fly.io, Render, etc.)."""
|
||
return JSONResponse({
|
||
"status": "healthy",
|
||
"service": "Yargı MCP Server",
|
||
"version": "0.2.1",
|
||
})
|
||
|
||
|
||
# Create ASGI app directly from FastMCP server
|
||
app = mcp.http_app()
|
||
|
||
# Endpoints:
|
||
# - /mcp/ - MCP server (Streamable HTTP transport, default FastMCP path)
|
||
# - /health - Health check for monitoring
|