Add per-tool enable/disable for MCP servers and agent tools + fetch_page tool#919
Merged
Add per-tool enable/disable for MCP servers and agent tools + fetch_page tool#919
Conversation
…ools MCP tool control: - Add disabledTools field (Set<String>) to MCPServer model - Create FilteredMcpToolProvider that wraps McpToolProvider and excludes disabled tools from being sent to the LLM - Update MCPExecutionService to wrap raw provider with FilteredMcpToolProvider - Update MCP settings tools dialog with checkboxes per tool, enable/disable all buttons, and persist selections on OK - Update MCPToolsManager popup to show per-tool checkboxes under each server - Update tools count display to show enabled/total counts - Support disabledTools in JSON import/export via MCPConfigurationParser Agent mode tool control: - Add disabledAgentTools field (List<String>) to DevoxxGenieStateService - Update BuiltInToolProvider.provideTools() to filter out disabled tools - Add "Built-in Tools" section in AgentSettingsComponent with checkboxes for each core tool (read_file, write_file, edit_file, list_files, search_files, run_command) - Wire up isModified/apply/reset for the new tool checkboxes https://claude.ai/code/session_01DpQ3ZWvMg4Ksw7xcasS57H
Add a new agent tool that fetches web pages by URL and returns readable text content with HTML/CSS/JS stripped via Jsoup. This enables the agent to read documentation, API references, and web pages during agentic interactions. - FetchPageToolExecutor using java.net.http.HttpClient + Jsoup parsing - Registered in BuiltInToolProvider with URL parameter - Added to READ_ONLY_TOOLS in AgentApprovalProvider for auto-approval - Added to CORE_AGENT_TOOLS in AgentSettingsComponent for enable/disable - 100K character truncation to protect LLM context window - Tests with MockWebServer covering HTML stripping, errors, truncation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… control - Agent Mode page: add fetch_page to read tools table, document per-tool enable/disable section with context window benefit, update architecture diagrams and sub-agent tool lists - MCP page: add per-tool enable/disable section with MCPToolsActivation image, explaining how to selectively disable individual MCP server tools - Update screenshots for agent mode built-in tools Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
fetch_pageagent tool: Fetches a web page by URL and returns readable text content with HTML/CSS/JS stripped via Jsoup. Useful for reading documentation, API references, and web pages during agentic interactions. Auto-approvable as a read-only tool, truncates at 100K charsChanged Files
Core
build.gradle.kts— Added Jsoup dependencyFetchPageToolExecutor.java— New tool executor using java.net.http.HttpClient + JsoupBuiltInToolProvider.java— Register fetch_page tool, updated tool listAgentApprovalProvider.java— Added fetch_page to read-only auto-approve setAgentSettingsComponent.java— Added fetch_page to core tools, per-tool checkboxesFilteredMcpToolProvider.java— New provider that filters disabled MCP toolsMCPServer.java— Added disabledTools fieldMCPToolsManager.java— Per-tool enable/disable UI in tools dialogMCPSettingsComponent.java— Updated settings UI for MCP tool controlDevoxxGenieStateService.java— State persistence for disabled toolsTests
BuiltInToolProviderTest.java— Updated tool counts (6→7, 7→8)FetchPageToolExecutorTest.java— 7 tests with MockWebServerDocumentation
agent-mode.md— fetch_page in tool tables, per-tool enable/disable section, architecture diagramsmcp_expanded.md— Per-tool enable/disable section with MCPToolsActivation screenshotTest plan
./gradlew test— all tests pass./gradlew buildPlugin— plugin builds successfully🤖 Generated with Claude Code