Commit a6da23d
authored
feat: perseus-vault connect -- one-command MCP client setup (PMB-inspired) (#333)
Add 'perseus-vault connect --client <name>' subcommand that auto-wires
an MCP client's config file, eliminating manual JSON/YAML/TOML editing
for first-time setup. Inspired by PMB's 'pmb connect' UX.
- Supports: claude-desktop, claude-code, hermes, cursor, windsurf,
vscode, zed, codex.
- Merges into existing config (JSON objects, YAML mappings, TOML
stanzas) without clobbering unrelated keys/servers already present.
- Writes a timestamped backup of the existing file before any write.
- --dry-run prints the would-be output without touching the filesystem.
- Codex TOML re-runs replace the existing [mcp_servers.mimir] stanza
in place instead of duplicating it.
- Config path overridable via MIMIR_CONNECT_CONFIG (used by tests and
non-standard installs).
- perseus-vault doctor now mentions 'connect' as the recommended setup
path.
- 7 new unit tests (CLI parsing + real file writes/merges/idempotency
across JSON/YAML/TOML backends); full suite 132 passed / 0 failed,
stable across repeated runs (no test-order flakiness from
set_current_dir / env var usage).
- Version bump 2.10.0 -> 2.11.0.1 parent 38f53aa commit a6da23d
4 files changed
Lines changed: 395 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
0 commit comments