Add backend state MCP tool

This commit is contained in:
jbjardine
2026-05-23 23:08:23 +02:00
parent ece116d563
commit 21fc0702ac
6 changed files with 304 additions and 1 deletions

View File

@@ -59,3 +59,10 @@ class TestTsToolRegistry:
assert SRC_TOOLS_DIR.is_dir(), f"src/tools/ not found at {SRC_TOOLS_DIR}"
ts_files = list(SRC_TOOLS_DIR.glob("**/*.ts"))
assert ts_files, "No .ts files found in src/tools/"
def test_backend_state_tool_is_registered(self):
"""Backend observability must be exposed as a first-class MCP tool."""
registrations = self._collect_registrations()
tool_names = {name for name, _, _ in registrations}
assert "get_backend_state" in tool_names