GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||
GeezerVison is showing github.com — [FEATURE]: Filter which tools are loaded from MCP servers (includeTools/excludeTools) · Issue #7399 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionFeature hasn't been suggested before.
Describe the enhancement you want to requestProblemMCP servers often expose many tools, but agents typically need only a subset. Currently, enabling an MCP loads all its tools into the context window, adding significant token overhead. Example: The chrome-devtools MCP provides 26 tools (~17k tokens). A UI preview agent might only need 4 of them (~1.5k tokens). Proposed SolutionAdd {
"mcp": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"],
"includeTools": ["navigate_page", "take_screenshot", "new_page", "list_pages"]
}
}
}Or with glob patterns: {
"mcp": {
"github": {
"includeTools": ["create_*", "list_*"],
"excludeTools": ["*_dangerous_*"]
}
}
}Per-Agent OverrideCombined with per-agent MCP enabling, this allows fine-grained control: {
"mcp": {
"chrome-devtools": {
"enabled": false,
"includeTools": ["navigate_page", "take_screenshot", "new_page", "list_pages"]
}
},
"agent": {
"ui-preview": {
"mcp": {
"chrome-devtools": { "enabled": true }
}
}
}
}Prior ArtAmp recently shipped this feature: Lazy-load MCP with Skills Their implementation uses a companion Benefits
Related Issues
ContributionHappy to submit a PR for this if the approach is acceptable. We're tracking this in aidevops and can implement a workaround in the meantime, but native OpenCode support would be cleaner. Reacted by Andrew Thal, Rafał W, fpv.dev, brenodahora-devsquad, Andrew, Chang Liu, Błażej Nowakowski, Jindřich Pilař, Florian Kaiser and rexzju Reacted by Sirio Balmelli Reacted by brenodahora-devsquad Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |