From 08a3b20dff6d08835e55690cbf82c656cfeae545 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Thu, 13 Aug 2026 00:59:34 -0500 Subject: [PATCH] test: register setup_mcp in the desktop_ui toolset + post-hook contracts The toolset inventory and the post-hook ownership contract both enumerate the GUI tools; the new tool joins both lists (and the emit-once parametrization actually exercises its executor path). --- tests/run_agent/test_run_agent.py | 1 + tests/tui_gateway/test_gui_surface_toolsets.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/run_agent/test_run_agent.py b/tests/run_agent/test_run_agent.py index 0c16a73ce7..17243d8935 100644 --- a/tests/run_agent/test_run_agent.py +++ b/tests/run_agent/test_run_agent.py @@ -2285,6 +2285,7 @@ class TestAgentRuntimePostHookOwnershipSync: ("read_terminal", {}), ("read_preview", {}), ("read_window_below", {}), + ("setup_mcp", {"server": "linear", "action": "install"}), ("delegate_task", {"goal": "Check the child path"}), ) diff --git a/tests/tui_gateway/test_gui_surface_toolsets.py b/tests/tui_gateway/test_gui_surface_toolsets.py index 13263bbab5..366c39334d 100644 --- a/tests/tui_gateway/test_gui_surface_toolsets.py +++ b/tests/tui_gateway/test_gui_surface_toolsets.py @@ -25,6 +25,7 @@ GUI_TOOLS = { "read_terminal", "read_window_below", "react_to_message", + "setup_mcp", }