You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Story] Per-server onlyAllow field in MCP config #571
Some MCP servers expose 100+ tools, but a user typically wants only a handful. Today the only way to limit them is `disabledTools`, which becomes an unwieldy 97-entry denylist when you want to enable just 3 tools.
This is also the first scoping primitive that the dynamic tool loading work depends on — it shrinks the candidate pool the ranker has to search.
Developer Notes
Add `onlyAllow?: string[]` to the per-server MCP config schema (`packages/types/src/mcp.ts`).
When `onlyAllow` is set and non-empty: enable only the listed tools (`enabledForPrompt: true`); disable all other tools on that server. Takes precedence over `disabledTools` on the same server.
When unset or empty: existing `disabledTools` behavior is unchanged.
Apply the filter in `McpHub.fetchToolsList()` (`src/services/mcp/McpHub.ts`) where `enabledForPrompt` is set.
Update the MCP settings UI (`webview-ui/src/components/mcp/McpView.tsx`) to surface the field.
Acceptance Criteria
`onlyAllow` field added to MCP server config schema
Unit test: `onlyAllow: [a, b]` with `disabledTools: [a]` → `a` is enabled (onlyAllow wins), `b` is enabled, all others disabled
Unit test: `onlyAllow` unset → `disabledTools` behavior unchanged
I came to add a feature request for exactly this. I added the Forgejo mcp server ("@ric_/forgejo-mcp") and it's just updated itself and added even more tools; I've only just finished clicking through and manually disabling approximately 440 tools in order to get the few that I actually want the model to use. There doesn't appear to be a better way than this via json or UI.
Even a button in the UI for "disable all", that would then let me click the few I want, would be better than the current state.
Activity
[-][Story] W0.1 — Per-server onlyAllow field in MCP config[/-][+][Story] Per-server onlyAllow field in MCP config[/+]thigger commentedon Oct 13, 2026
I came to add a feature request for exactly this. I added the Forgejo mcp server ("@ric_/forgejo-mcp") and it's just updated itself and added even more tools; I've only just finished clicking through and manually disabling approximately 440 tools in order to get the few that I actually want the model to use. There doesn't appear to be a better way than this via json or UI.
Even a button in the UI for "disable all", that would then let me click the few I want, would be better than the current state.