Repository navigation
Description
Problem
devstack mcp carries the pool's upstream tools and the skills' hooks (ADR-0069, ADR-0094), but whether an agent gets it is decided per repository: the dashboard's no MCP hint (ui/src/components/McpHint.vue, devstack-hub/src/mcp.rs) appears only in the head of a stack, and its prompt writes the entry into that repository's .mcp.json (or VS Code's, Cursor's, Codex's file).
A repository without a stack file is never offered the entry. An agent session there has no devstack tools at all, so:
- every pool upstream the user accepted in the hub is missing (seen with a time-tracking upstream: a skill that starts a timer at the beginning of each session found no tools and the session went unrecorded);
- hooks bound to those upstreams stay silent;
- nothing says why: the agent only sees that the tools are absent,
doctoris not run outside a stack, and the hub shows nothing for a folder it does not know.
The server itself works there. Started in an empty folder, devstack mcp answers initialize and lists 211 tools, the upstreams' included. Only the registration is missing.
Proposal
A setting per user/machine in the hub: where devstack's MCP server is registered for my agents
- per repository (today's behaviour, the default), or
- for me, in every folder: the hub writes the user-scope entry (
~/.claude.jsonmcpServers,~/.codex/config.toml,~/.cursor/mcp.json) for the agents the user picks, and removes it again when switched back, as it does for the agent hooks (ADR-0094).
The user decides; a pool or a stack file does not.
Questions for the card
- Two entries. If a user entry and a repository's
.mcp.jsonboth register it, does the agent load the server twice? As far as I know, Claude Code keeps one entry per name (local over project over user), so both nameddevstackload once, but a project entry under another name (ds) loads both and doubles every tool. Codex and Cursor still need checking. Options: write the user entry only under the namedevstack; haveregistered()anddoctorreport a second entry under another name; or letdevstack mcpnotice a sibling server (it cannot see the agent's config at runtime, so this probably belongs to the hub). - Trust. Today the hub reads agent configurations and never writes MCP entries (
agentmcp.rs, card point 4 of 2026-11-06). Writing a user-scope entry is a new write to a file outside devstack's own state. Does it follow ADR-0094's rules for the hook files (ordering kept, only its own entry touched, removed on switch-off)? - Outside a stack. Should
devstack doctor(and the MCP tooldoctor) report "devstack's MCP server is not registered for this folder" in a repository without a stack file too, so that an agent missing its tools can find out why?
What this does not ask for
No change to the per-repository default. It does not ask for a pool to push MCP registration onto members.
Activity