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
Project-level MCP: make MCP servers a first-class, project-scoped capability
#13149
MCP configuration in DSH is mounted per profile, so every project opened under the same profile inherits the same server set and the same global mcp__<server>__<tool> tools. There is no canonical, first-class notion of "the MCP servers of this project". I'd like project-level MCP to become a supported capability of the harness itself — config discovery, per-project lifecycle, and isolation — instead of a gap that each community plugin fills with its own file format.
What is missing today
One toolset for every project. A GitLab or database server declared once at profile level is connected for every session under that profile, and its tools land in the global tool layer, so the servers of repository A are visible in a session opened in repository B.
No canonical project config file. Plugins already picked different paths and dialects: .dsh/mcp.servers.yml, .dsh/mcp.yml / .dsh/mcp.json (plus a read-only .mcp.json), and .dsh/cordis.yml composition. A user cannot write one file that "just works".
Lifecycle is process-scoped, not project-scoped. Nothing guarantees one connection per project shared by its sessions, reference-counted disposal when the last session leaves, or re-attachment on resume.
No trust boundary. A stdio row in a checked-out repository is executable code. First-class support needs a per-project approval step rather than silently running a command: someone else committed.
Prior art in this repo's own discussions: #941 (RFC: workspace-scoped configuration and runtime state), #4076 (dsh-project-mcp-manager), #1320 (plugin showcase). This is not a new idea — it is a request to standardize it in core, or at least publish a versioned contract for it.
Proposed behaviour
Discovery: <project-root>/.dsh/mcp.yml (project root = nearest directory containing .git, the rule skills already use), with ${VAR} expansion and an optional .env-style overlay applied to spawned stdio processes only.
Merge and precedence: project / user / profile layers, case- and --insensitive name normalization, and "same command + args = same server" dedupe, so a project can override a single row without forking the whole list.
Scope: servers owned by a workspace scope — one process per project, shared by all sessions in it, reference-counted, re-attached on session resume, hot-reloaded when the file changes.
Isolation: project servers registered into a workspace-scoped tool layer, so a project's mcp__db__query is never offered in another project's session; deterministic namespacing when two projects declare the same server name.
Trust: the first load of a project config prompts with the resolved commands and env names (never values); approval is keyed by project root + config content hash and re-prompts on change; a switch disables project MCP entirely for CI/headless use.
Observability: dsh mcp status listing every server with its source file, state, and tool count.
Minimal acceptance criteria
Project A declares a server, project B declares none: A's session sees mcp__a__*; B's session does not, and B pays no startup cost.
Two sessions in the same project share one connection; closing both disposes it.
A committed config in an untrusted clone does not execute until approved.
Questions for maintainers
Is project-level MCP intended as core (dsh-mcp-client gaining a project scope) or as an official plugin service? Either works — but the config format and the scope contract should be published so ecosystem plugins stop inventing incompatible ones.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
MCP configuration in DSH is mounted per profile, so every project opened under the same profile inherits the same server set and the same global
mcp__<server>__<tool>tools. There is no canonical, first-class notion of "the MCP servers of this project". I'd like project-level MCP to become a supported capability of the harness itself — config discovery, per-project lifecycle, and isolation — instead of a gap that each community plugin fills with its own file format.What is missing today
.dsh/mcp.servers.yml,.dsh/mcp.yml/.dsh/mcp.json(plus a read-only.mcp.json), and.dsh/cordis.ymlcomposition. A user cannot write one file that "just works".command:someone else committed.Prior art in this repo's own discussions: #941 (RFC: workspace-scoped configuration and runtime state), #4076 (dsh-project-mcp-manager), #1320 (plugin showcase). This is not a new idea — it is a request to standardize it in core, or at least publish a versioned contract for it.
Proposed behaviour
<project-root>/.dsh/mcp.yml(project root = nearest directory containing.git, the rule skills already use), with${VAR}expansion and an optional.env-style overlay applied to spawned stdio processes only.--insensitive name normalization, and "same command + args = same server" dedupe, so a project can override a single row without forking the whole list.mcp__db__queryis never offered in another project's session; deterministic namespacing when two projects declare the same server name.dsh mcp statuslisting every server with its source file, state, and tool count.Minimal acceptance criteria
mcp__a__*; B's session does not, and B pays no startup cost.Questions for maintainers
dsh-mcp-clientgaining a project scope) or as an official plugin service? Either works — but the config format and the scope contract should be published so ecosystem plugins stop inventing incompatible ones.All reactions