feat: manage MCP server configs across agents - #17
Merged
Conversation
New 'mcp' artifact kind (mcps/<name>/mcp.yaml) rendered into each agent's
native MCP config via json-merge: claude-code (~/.claude.json / .mcp.json),
gemini-cli (settings.json), cursor (mcp.json). Secrets are ${VAR}
placeholders only — literals rejected at new/add, doctor, bundle import and
render. Adds TargetFile.Root (agent-home/user-home/project), --project
scope, root-qualified state keys and a path-escape fence. Codex/antigravity
MCP parked in ROADMAP. Spec 006 + plan included.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ PR title follows the required formatCurrent title: |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
New
mcpartifact kind: define an MCP server once (mcps/<name>/mcp.yaml), loadout merges it into each agent's native MCP config through the normal plan → confirm → apply gate.~/.claude.json<project>/.mcp.json~/.gemini/settings.json<project>/.gemini/settings.json~/.cursor/mcp.json<project>/.cursor/mcp.json${VAR}placeholders (passed through verbatim); literals are rejected atnew/add,doctor, bundle import, and sync render.TargetFile.Root(agent-home / user-home / project),--projecton sync/status/diff, root-qualified state keys (old state files load unchanged), path-escape fence on every target, root-aware snapshots.n/a— parked in ROADMAP with rationale.Spec:
docs/specs/006-mcp-configs.md(+ plan, R9 amended to match the repo'snew/addsplit).Tests
--project(state stays in the data dir); hand-edit →drifted-local, foreignmcpServersentries survive re-sync; literal secret refused end-to-end.make ci+make test-integrationgreen;internal/web/distrebuilt (mcp glyph).🤖 Generated with Claude Code