fix: implement MCP ping health checks (#600)

This commit is contained in:
grtninja
2026-04-11 19:16:37 -04:00
committed by GitHub
parent c4d8662de8
commit 154e8a78ec
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -92,6 +92,13 @@ class TestHandleRequest:
resp = handle_request({"method": "notifications/initialized", "id": None, "params": {}})
assert resp is None
def test_ping_returns_empty_result(self):
from mempalace.mcp_server import handle_request
resp = handle_request({"method": "ping", "id": 11, "params": {}})
assert resp["id"] == 11
assert resp["result"] == {}
def test_tools_list(self):
from mempalace.mcp_server import handle_request