Skip to content

The agent that grows with you

refactor(tools): drop section-banner comments in MCP health mixin

Tekniumd23f885c5996
diff --git a/tools/mcp_tool_health.py b/tools/mcp_tool_health.py
index d76f1403189..d213d7df0ed 100644
--- a/tools/mcp_tool_health.py
+++ b/tools/mcp_tool_health.py
@@ -37,8 +37,6 @@ class MCPServerHealthMixin:
self._lifecycle_started_at = self._last_tool_call_at = time.monotonic()
self._recycled_reason = None
- # -- stdio recycling --
-
def _stdio_recycle_deadlines(self):
"""``[(deadline, reason), ...]`` for the configured lifetime/idle limits; empty for HTTP
servers or while an RPC holds the lock."""
@@ -62,8 +60,6 @@ class MCPServerHealthMixin:
self._recycled_reason = reason
self.session = None
- # -- notifications / logs --
-
def _schedule_tools_refresh(self) -> asyncio.Task:
"""Schedule a background tool refresh (failures logged) and keep it strongly referenced."""
async def _run():
@@ -165,8 +161,6 @@ class MCPServerHealthMixin:
logger.info("MCP server '%s': dynamically refreshed %d tool(s) (no changes)",
self.name, len(self._registered_tool_names))
- # -- keepalive / health --
-
async def _keepalive_probe(self) -> None:
"""Exercise the session; raise on a genuine connection failure. ``ping`` first (cheap,
OPTIONAL); on -32601 latch ``_ping_unsupported`` (reset per transport connection) and fall