mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
fix(mcp): add missing argument to health check (#8967)
This commit is contained in:
committed by
GitHub
parent
206f23b5a5
commit
9c6c007f73
@@ -2,6 +2,7 @@ import asyncio
|
||||
import os
|
||||
|
||||
from fastmcp import FastMCP
|
||||
from prowler_mcp_server import __version__
|
||||
from prowler_mcp_server.lib.logger import logger
|
||||
from starlette.responses import JSONResponse
|
||||
|
||||
@@ -54,9 +55,11 @@ async def setup_main_server():
|
||||
|
||||
# Add health check endpoint
|
||||
@prowler_mcp_server.custom_route("/health", methods=["GET"])
|
||||
async def health_check() -> JSONResponse:
|
||||
async def health_check(request) -> JSONResponse:
|
||||
"""Health check endpoint."""
|
||||
return JSONResponse({"status": "healthy", "service": "prowler-mcp-server"})
|
||||
return JSONResponse(
|
||||
{"status": "healthy", "service": "prowler-mcp-server", "version": __version__}
|
||||
)
|
||||
|
||||
|
||||
# Get or create the event loop
|
||||
|
||||
Reference in New Issue
Block a user