gui/pkg/mcp
Snider dfff893f16 feat(gui): webview devtools open/close MCP tools
display.go: menu builder now consults menu.Service.ShowDevTools()
and, when enabled, adds Developer > Open DevTools + Close DevTools
menu items. Handlers route to the focused window (or the only open
window) via the existing webview.devtoolsOpen /
webview.devtoolsClose actions — which already land on Wails
WebviewWindow.OpenDevTools / CloseDevTools.

Tests: Good/Bad/Ugly coverage for both MCP tool handlers in
tools_webview_test.go plus a menu-level test in display_test.go
that clicks the built items and verifies mock devtools state flips
open/closed, with a disabled-config case.

tools_webview.go already had the handlers + registration on this
branch; locked down with tests instead of re-implementing.

Closes tasks.lthn.sh/view.php?id=31

Co-authored-by: Codex <noreply@openai.com>
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-24 06:17:34 +01:00
..
mcp_test.go Harden display and MCP menu failures 2026-04-17 20:05:33 +01:00
subsystem.go Implement P2P, Deno, and container spec gaps 2026-04-15 22:12:19 +01:00
subsystem_test.go Add missing GUI contract tests 2026-04-15 21:48:54 +01:00
tools_browser.go Improve MCP tool descriptions for agents 2026-04-15 14:28:56 +01:00
tools_chat.go Add chat MCP tools 2026-04-15 21:13:17 +01:00
tools_clipboard.go Add MCP hardening tests 2026-04-17 18:47:28 +01:00
tools_clipboard_test.go Add MCP hardening tests 2026-04-17 18:47:28 +01:00
tools_container.go Implement P2P, Deno, and container spec gaps 2026-04-15 22:12:19 +01:00
tools_contextmenu.go Harden context menu MCP JSON bridge 2026-04-17 20:54:37 +01:00
tools_deno.go Implement P2P, Deno, and container spec gaps 2026-04-15 22:12:19 +01:00
tools_dialog.go Improve MCP tool descriptions for agents 2026-04-15 14:28:56 +01:00
tools_display.go Add MCP core route resolution tool 2026-04-15 19:02:31 +01:00
tools_display_test.go Add missing GUI unit coverage 2026-04-15 23:17:52 +01:00
tools_dock.go Expose dock badge removal MCP tool 2026-04-15 21:44:03 +01:00
tools_environment.go Add MCP hardening tests 2026-04-17 18:47:28 +01:00
tools_environment_test.go Add MCP hardening tests 2026-04-17 18:47:28 +01:00
tools_events.go Align GUI MCP surface with RFC aliases 2026-04-15 14:14:32 +01:00
tools_keybinding.go Implement chat, preload shims, and smart layouts 2026-04-15 13:39:13 +01:00
tools_layout.go refine gui docs and local names for AX 2026-04-15 14:33:56 +01:00
tools_lifecycle.go Implement chat, preload shims, and smart layouts 2026-04-15 13:39:13 +01:00
tools_lifecycle_test.go Add missing GUI unit coverage 2026-04-15 23:17:52 +01:00
tools_marketplace.go Add marketplace display and MCP actions 2026-04-15 20:53:13 +01:00
tools_menu.go Harden display and MCP menu failures 2026-04-17 20:05:33 +01:00
tools_notification.go refine gui docs and local names for AX 2026-04-15 14:33:56 +01:00
tools_p2p.go Implement P2P, Deno, and container spec gaps 2026-04-15 22:12:19 +01:00
tools_screen.go Add MCP hardening tests 2026-04-17 18:47:28 +01:00
tools_screen_test.go Add MCP hardening tests 2026-04-17 18:47:28 +01:00
tools_tray.go Align tray icon MCP input with base64 schema 2026-04-15 21:18:16 +01:00
tools_webview.go Implement remaining GUI integration tools 2026-04-15 13:58:56 +01:00
tools_webview_test.go feat(gui): webview devtools open/close MCP tools 2026-04-24 06:17:34 +01:00
tools_window.go Expose additional window MCP tools 2026-04-15 22:22:17 +01:00