Repository navigation
feat: the user can register devstack's MCP server for every folder (ADR-0100) - #494
Merged
Merged
Conversation
…DR-0100) A setting per coding agent on the MCP upstreams page: devstack's MCP server per repository (as before) or for the user, in every folder. Then the hub writes one entry `devstack` into the agent's user configuration (Claude Code's ~/.claude.json, Codex's config.toml with its comments kept, Cursor's mcp.json) and removes the entry it wrote when switched back; the rest of the file stays. An entry that runs `devstack mcp` under another name beside one of the same agent is a double: the stack's head shows "MCP twice", `doctor` warns. `doctor` says in any folder, a stack's or not, whether the server is registered there. GET/PUT /hub/mcp/scope. Closes #492 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
devstack mcpcarries the pool's upstreams and the hooks bound to them, but an agent got it only where a repository's own file registered it; a repository without a stack file was never offered it, and an agent there had no devstack tools, without saying why (#492). Now the user can choose, per coding agent: devstack's MCP server per repository (as before, the default) or for me, in every folder: the hub writes one entrydevstackinto the agent's user configuration and takes it out again when switched back.Closes #492
Review card
Approved by the owner in the conversation on 2026-11-09, all five points.
devstackinto the agent's user configuration (~/.claude.jsonmcpServers,~/.codex/config.toml[mcp_servers.devstack],~/.cursor/mcp.json); only that entry, the rest of the file kept, removed again when switched off, by ADR-0094's rules for the hooks.devstack; an entry that runsdevstack mcpunder another name is reported as a double bydoctorand the dashboard, not removed.devstack mcpnoticing a sibling at runtimedevstack doctor(and the MCP tool) says in a folder without a stack file too whether the server is registered there; the dashboard's hint offers every folder.doctorinside a stack onlyGET/PUT /hub/mcp/scopewith{agents: {<id>: "repository" | "user"}}.Decided on my own: the entry's command line is the repository entry's (
devstack mcp); Codex's file is edited withtoml_edit(MIT/Apache, new dependency) so comments and layout stay; an entrydevstackthe user had before is left on and not removed (the setting keeps what the hub wrote); one that runs something else is an error, not overwritten; VS Code keeps the per-repository prompt (its user MCP file lives in a settings profile); Cursor's merge of a same-named user and project entry is not checked, so only different names count as a double.Verified
~/.claude.json's other keys keep their order and their text; Codex keeps its comments and is byte for byte the same after on and off; the user's own entry stays; a foreigndevstackentry is not overwritten; a missing file is made; doubles per agent.devstack doctoroutside a stack (info: … not registered for …) and in this repository (ok … registered … .mcp.json).~/.claude.json(the unit tests write the same code path into temporary homes).ADR-0100,
docs/dashboard-api.md, the devstack skill, CHANGELOG.🤖 Generated with Claude Code