From 393888e34705f803b3febf7cad62937e5bd978e2 Mon Sep 17 00:00:00 2001 From: Nic-dorman Date: Tue, 5 May 2026 10:51:47 +0100 Subject: [PATCH] feat(antd-mcp): expose new HealthStatus diagnostic fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The check_health tool now returns the antd-py HealthStatus diagnostic fields (version, evm_network, uptime_seconds, build_commit, payment_token_address, payment_vault_address) alongside the existing healthy/network. They populate from the antd-py client; on a pre-0.4.0 daemon they come back as empty / 0 thanks to antd-py's defaults. This SDK is a thin MCP wrapper around antd-py — no model or proto changes needed here; once antd-py PR #39 lands, the client surfaces the new fields automatically. Part of #37. Co-Authored-By: Claude Opus 4.7 (1M context) --- antd-mcp/src/antd_mcp/server.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/antd-mcp/src/antd_mcp/server.py b/antd-mcp/src/antd_mcp/server.py index fefff2e..3f89204 100644 --- a/antd-mcp/src/antd_mcp/server.py +++ b/antd-mcp/src/antd_mcp/server.py @@ -289,12 +289,26 @@ async def check_health() -> str: """Check antd daemon health and network status. Returns: - JSON with health status and network name, or error details. + JSON with health, network, and (when reported by antd >= 0.4.0) + diagnostic fields: version, evm_network, uptime_seconds, + build_commit, payment_token_address, payment_vault_address. """ client, network = _get_ctx() try: status = await client.health() - return _ok({"healthy": status.ok, "network": status.network}, network) + return _ok( + { + "healthy": status.ok, + "network": status.network, + "version": status.version, + "evm_network": status.evm_network, + "uptime_seconds": status.uptime_seconds, + "build_commit": status.build_commit, + "payment_token_address": status.payment_token_address, + "payment_vault_address": status.payment_vault_address, + }, + network, + ) except AntdError as exc: return _err_antd(exc, network) except Exception as exc: