File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -2284,6 +2284,7 @@ async def readiness_check(db: Session = Depends(get_db)):
2284
2284
try :
2285
2285
# Run the blocking DB check in a thread to avoid blocking the event loop
2286
2286
await asyncio .to_thread (db .execute , text ("SELECT 1" ))
2287
+ return JSONResponse (content = {"status" : "ready" }, status_code = 200 )
2287
2288
except Exception as e :
2288
2289
error_message = f"Readiness check failed: { str (e )} "
2289
2290
logger .error (error_message )
Original file line number Diff line number Diff line change @@ -909,6 +909,7 @@ async def dummy_post(*_args, **_kwargs):
909
909
response = json .loads (data )
910
910
assert response == {"jsonrpc" : "2.0" , "id" : 1 , "result" : {}}
911
911
912
+ @patch ("mcpgateway.main.update_url_protocol" , new = lambda url : url )
912
913
@patch ("mcpgateway.main.session_registry.add_session" )
913
914
@patch ("mcpgateway.main.session_registry.respond" )
914
915
@patch ("mcpgateway.main.SSETransport" )
You can’t perform that action at this time.
0 commit comments