felix-lj-ct/dsh-mcp-workspace-scope

Scopes MCP tool injection by the directory a session was opened in, with per-session composer switches for the exceptions.

Narrows MCP tool injection per directory: a session opened in one project gets only that project's allow-listed servers, subdirectories inherit the rule, and every other folder is left exactly as it was. Because MCP is process-global in DSH, every enabled server otherwise ships its whole tool list into every session; this plugin cuts that both in context and as a hard boundary, and it reports each server's runtime state so an allowed but dead server is visible rather than silently missing.

Tools & Capabilities ★ 2
View on GitHub ↗

Install

dsh plugin --profile web add dsh-mcp-workspace-scope

The npm line, then restart the profile — a running instance keeps the old code in memory. Nothing changes until a rules document exists: with no rules, every session still injects every MCP server, which the README states explicitly rather than implying a safe default.

Compatibility

It only subtracts. Anything in an allow-list must already be enabled in the profile, and the plugin cannot conjure a disabled server. It hides the tools and refuses the calls, but saves no processes: a hidden server still runs and still holds its memory. A saved rule reaches running sessions immediately, and the composer pill narrows or widens only the current session without touching the rules.

Details

Alternatives

6Mikao9/dsh-wsl-workspace · somnusovis/dsh-multi-workspace · drfccv/dsh-mcp-center

More plugins in Tools & Capabilities

Browse more in Tools & Capabilities

Guides for Tools & Capabilities plugins