mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-01-25 02:08:11 +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
|
import os
|
||||||
|
|
||||||
from fastmcp import FastMCP
|
from fastmcp import FastMCP
|
||||||
|
from prowler_mcp_server import __version__
|
||||||
from prowler_mcp_server.lib.logger import logger
|
from prowler_mcp_server.lib.logger import logger
|
||||||
from starlette.responses import JSONResponse
|
from starlette.responses import JSONResponse
|
||||||
|
|
||||||
@@ -54,9 +55,11 @@ async def setup_main_server():
|
|||||||
|
|
||||||
# Add health check endpoint
|
# Add health check endpoint
|
||||||
@prowler_mcp_server.custom_route("/health", methods=["GET"])
|
@prowler_mcp_server.custom_route("/health", methods=["GET"])
|
||||||
async def health_check() -> JSONResponse:
|
async def health_check(request) -> JSONResponse:
|
||||||
"""Health check endpoint."""
|
"""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
|
# Get or create the event loop
|
||||||
|
|||||||
Reference in New Issue
Block a user