Skip to content

Mcp tool call revamp#68

Merged
HumbleBee14 merged 8 commits into
developfrom
mcp-tool-call-revamp
Jan 31, 2026
Merged

Mcp tool call revamp#68
HumbleBee14 merged 8 commits into
developfrom
mcp-tool-call-revamp

Conversation

@HumbleBee14

Copy link
Copy Markdown
Member

This pull request introduces several enhancements and refinements to the Roopik IDE assistant, focusing on improved tool coverage, more robust design mode guidance, and better handling of component health verification. The changes expand the available native tools, clarify mode-switching logic, and update documentation and configuration to reflect these improvements.

Roopik IDE Tooling Enhancements

  • Added new browser tools: browser_get_state, browser_set_viewport, and browser_get_network_requests, with full integration into tool lists, argument parsing, and assistant message presentation. [1] [2] [3] [4] [5] [6]
  • Introduced canvas_validate_components tool for batch component health verification, including usage guidance in both capabilities documentation and assistant prompts. [1] [2] [3] [4] [5]

Mode and Workflow Guidance Updates

  • Refined the logic and documentation for when to use browser/project tools in Code mode, and clarified when to prompt users to switch to Design mode for canvas-related tasks. [1] [2]
  • Updated design mode instructions to emphasize bold, intentional aesthetics, distinctive typography, and modern UI practices, replacing generic design guidance.
  • Improved mode-switching and tool usage instructions for planning, design, and Ask modes, removing unnecessary group assignments and clarifying workflow boundaries. [1] [2]

Configuration and Coverage

  • Updated ESLint configuration to apply header rule overrides to both Roopik extension and core files, ensuring consistent linting.
  • Increased the documented count of Roopik IDE tools to reflect new additions, ensuring accurate tool coverage in code and documentation. [1] [2] [3]

Introduce unified tool service implementations used by both WebSocket MCP and Native IPC: CDPMonitorService, BrowserToolService, ProjectToolService, CanvasToolService, and ComponentToolService, plus an index export file.
…ol services

Refactor ToolExecutor as part of Phase 3 migration to use unified tool services from electron-main/tools. Replaces the old BrowserExecutor/CanvasExecutor/ProjectExecutor with CDPMonitorService, BrowserToolService, CanvasToolService, ComponentToolService and ProjectToolService, constructs CDPMonitorService first (used by BrowserToolService) and delegates all tool routing to these services. Keeps the storageService parameter (renamed _storageService) for backward compatibility; this file is now a thin adapter/dispatcher that forwards tool calls to the unified services.
Phase 4 migration: RoopikToolsChannel now instantiates and delegates to unified tool services (CDPMonitorService, BrowserToolService, CanvasToolService, ComponentToolService, ProjectToolService) instead of containing inlined browser/CDP/canvas logic. Many handlers (screenshot, close, action input, navigate, reload, executeScript, inspectElement, CDP APIs, viewport/network requests, project/canvas/component ops) were refactored to call the new services and responses adapted where needed. The legacy browser executor implementation was removed and MCP executor modules (browserExecutor, canvasExecutor, projectExecutor) are being consolidated into the unified tool services. This centralizes logic, reuses CDP monitoring, and simplifies the IPC channel to a thin orchestration layer.
Rename browser_get_cdp_info to browser_get_state and add two new browser tools: browser_set_viewport and browser_get_network_requests. Wire up handlers and client methods for the new tools and adjust browserOpen return type. Enhance CDPMonitorService with noise filtering, static-vs-api classification, auto-clear on page reload, network filtering/limit handling, and a compressed network summary API; add internal helpers. Update tool schemas and descriptions to expose includeStaticAssets and clarify error behavior. Include runtime error data in ComponentToolService responses and make runtime errors take precedence when computing component status. Also remove frameworkDisplayName mapping in the channel. These changes improve browser inspection, reduce noise, and provide richer component and network diagnostics for agents.
@HumbleBee14 HumbleBee14 merged commit d870b87 into develop Jan 31, 2026
1 of 4 checks passed
@HumbleBee14 HumbleBee14 deleted the mcp-tool-call-revamp branch February 1, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant