@akms/mcp-ssh 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -7
- package/lib/cli.cjs +1268 -467
- package/lib/cli.cjs.map +1 -1
- package/lib/cli.js +1266 -465
- package/lib/cli.js.map +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,14 +23,19 @@ npx -y @akms/mcp-ssh config --target codex # claude-code | codex | claude-desk
|
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
```
|
|
26
|
-
Claude Code (user scope)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
a
|
|
26
|
+
Claude Code (user scope) /home/me/.claude.json
|
|
27
|
+
|
|
28
|
+
? 1 SSH host — pick it to manage it
|
|
29
|
+
❯ ssh-prod deploy@10.0.0.5:22 key · readonly, pinned
|
|
30
|
+
────────────────────────
|
|
31
|
+
Add a host
|
|
32
|
+
Switch client also found: Codex CLI
|
|
33
|
+
Quit
|
|
34
|
+
↑↓ move · enter select · esc back
|
|
32
35
|
```
|
|
33
36
|
|
|
37
|
+
The hosts are the menu: pick one to edit, check, print or remove it. Adding or editing a host opens a settings form — every setting listed with its value, picked and changed in any order, with **Test the connection** and **Save** below. Choices are picked with the arrow keys — the private key from the keys found in `~/.ssh`, the route as "directly / through a jump host / through a proxy command". Where the terminal cannot send arrow keys (a pipe, Git Bash's mintty), the same lists are numbered and answered by number.
|
|
38
|
+
|
|
34
39
|
| Client | Config file | How it is written |
|
|
35
40
|
|---|---|---|
|
|
36
41
|
| Claude Code | `~/.claude.json` (user scope) | through `claude mcp add-json … -s user`, never by editing the file |
|
|
@@ -38,7 +43,7 @@ Claude Code (user scope) — /home/me/.claude.json
|
|
|
38
43
|
| Claude Desktop | `claude_desktop_config.json` | `mcpServers.<name>` is set, every other key kept |
|
|
39
44
|
| Cursor | `~/.cursor/mcp.json` | same |
|
|
40
45
|
|
|
41
|
-
Only entries that launch this package are listed or touched. An edit keeps every `SSH_*` variable the wizard does not ask about (timeouts, deny patterns, `SSH_CWD`, …).
|
|
46
|
+
Only entries that launch this package are listed or touched. An edit keeps every `SSH_*` variable the wizard does not ask about (timeouts, deny patterns, `SSH_CWD`, …). **Print** shows an entry as JSON, as a Codex TOML table and as a `claude mcp add-json` line, for when pasting is easier. On Windows the entry launches through `cmd /c npx`, the form Claude Code expects for npx servers there.
|
|
42
47
|
|
|
43
48
|
**Or by hand — one server entry per host** — plain `SSH_*` variables, no config file, no JSON inside JSON. Claude Code reads `.mcp.json` in the project or `~/.claude.json` globally; Claude Desktop takes the same block inside `claude_desktop_config.json`:
|
|
44
49
|
|