Keep HTTP health checks responsive during tool calls#63
Conversation
Greptile SummaryThis PR keeps the ASGI event loop responsive during HTTP MCP tool calls by offloading synchronous Appwrite SDK work to an anyio worker thread, and fixes a concurrent-access bug in
Confidence Score: 5/5Safe to merge — the thread offload and ResultStore locking are both correct and directly validated by new tests. The core change is well-scoped: No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Address HTTP tool offload review feedbac..." | Re-trigger Greptile |
Summary
Testing
uv run python -m unittest tests.unit.test_server -vuv run python -m unittest discover -s tests/unit -vuv run --group dev ruff check src/mcp_server_appwrite/server.py tests/unit/test_server.pyuv run --group dev black --check src/mcp_server_appwrite/server.py tests/unit/test_server.pyuv run --group dev pyright