Mcp tool call revamp#68
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
browser_get_state,browser_set_viewport, andbrowser_get_network_requests, with full integration into tool lists, argument parsing, and assistant message presentation. [1] [2] [3] [4] [5] [6]canvas_validate_componentstool 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
Configuration and Coverage