Commit 6488a9a
committed
scripts(docs[mcp_swap]): clarify global-config + simple-detection scope
The script's previous docstring implied broad cross-CLI parity with
the actual CLIs' install/discovery surface. In practice it writes
only to the four canonical *global* config paths and probes binaries
via ``shutil.which`` + file-exists. Workspace configs
(``$PWD/.cursor/mcp.json``, ``$PWD/.gemini/settings.json``), npm
prefixes, Homebrew paths, and post-migration locations like
``~/.claude/local/claude`` are intentionally not handled — those
match each CLI's native installer logic, which this script does not
duplicate.
Add an explicit "Scope" section to the module docstring and an "Out
of scope" subsection to ``scripts/README.md`` so contributors know
where to use ``cursor mcp add`` / ``gemini mcp add`` directly. No
behaviour change.1 parent 58a0ce2 commit 6488a9a
2 files changed
Lines changed: 37 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
28 | 51 | | |
29 | 52 | | |
30 | 53 | | |
| |||
0 commit comments