mcp-ssh-manager 4.4.5 → 4.4.6

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/CHANGELOG.md CHANGED
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.4.6] - 2026-12-03
11
+
12
+ **Copying from a shell works on Windows and Linux, and the `.xlsx` import is bounded.** One change of habit on
13
+ Windows: with text selected in a shell, Ctrl+C now copies it instead of interrupting, as Windows Terminal does.
14
+ With nothing selected it interrupts, as before.
15
+
16
+ ### Fixed
17
+
18
+ - **Import refuses an `.xlsx` that expands past 50 MB.** The reader unzipped whatever the file declared before looking at it: a 299 KB file became 300 MB in memory ([#192](https://github.com/bvisible/mcp-ssh-manager/pull/192), thanks @ofri-peretz).
19
+ - **Import reads at most 100,000 rows, 1,024 columns and 2,000,000 cells, and says so.** One cell referenced far to the right (`ZZZZZ1`), in a file of a few hundred bytes, made every row 12 million columns wide until the process ran out of memory. Empty cells, and formatted rows below a table, do not count.
20
+ - **An empty cell that only carries a style no longer swallows the next cell.** Excel writes it `<c r="A2" s="1"/>`; it was read as an opening tag, so the next column came out empty (an imported server could lose its host) and a number or a shared string landed one column to the left, the latter as its index.
21
+ - **Tags that never close are read in one pass.** The time grew with the square of their number: 60,000 unclosed `<t>` took 2 s to read, and take 1 ms.
22
+ - **Copying from a shell works on Windows and Linux** ([#195](https://github.com/bvisible/mcp-ssh-manager/issues/195), reported by @addy87). Ctrl+Shift+C copies the selection. On Windows, Ctrl+C copies it too when something is selected, then drops the selection; with nothing selected it interrupts, as before. On Linux Ctrl+C still interrupts, except in the read-only output panels, where it copies. macOS keys are unchanged.
23
+ - **A right click in the desktop application opens a menu** to copy and paste (and cut and select all in a text field), in a shell as elsewhere. It did nothing.
24
+
10
25
  ## [4.4.5] - 2026-12-02
11
26
 
12
27
  **A security release: upgrade if you use `readonly` mode.** The built-in list of `readonly` mode only knew a command
@@ -13,8 +13,8 @@
13
13
  class SshManager < Formula
14
14
  desc "SSH server management for AI agents, with approval and audit"
15
15
  homepage "https://github.com/bvisible/mcp-ssh-manager"
16
- url "https://registry.npmjs.org/mcp-ssh-manager/-/mcp-ssh-manager-4.4.4.tgz"
17
- sha256 "f546847a430d9a7b3b0c692041d167be04d7ec05917c352c42fe127d33c3be4f"
16
+ url "https://registry.npmjs.org/mcp-ssh-manager/-/mcp-ssh-manager-4.4.5.tgz"
17
+ sha256 "17650468bc7c99d17111da1ace76153a84f8d24b5d9df19d00f3e20b9f02f807"
18
18
  license "MIT"
19
19
 
20
20
  depends_on "node"
package/README.md CHANGED
@@ -25,7 +25,7 @@
25
25
  [![Desktop app downloads](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Fbvisible%2Fmcp-ssh-manager%2Fstats%2Fdesktop.json&style=flat-square)](https://github.com/bvisible/mcp-ssh-manager/releases/latest)
26
26
  [![GitHub stars](https://img.shields.io/github/stars/bvisible/mcp-ssh-manager?style=flat-square&color=c04500)](https://github.com/bvisible/mcp-ssh-manager/stargazers)
27
27
  [![MCP Toplist](https://mcptoplist.com/badge/io.github.bvisible%2Fmcp-ssh-manager.svg)](https://mcptoplist.com/server/io.github.bvisible%2Fmcp-ssh-manager)
28
- [![Version](https://img.shields.io/badge/release-4.4.5-c04500?style=flat-square)](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.4.5)
28
+ [![Version](https://img.shields.io/badge/release-4.4.6-c04500?style=flat-square)](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.4.6)
29
29
  [![Claude Code](https://img.shields.io/badge/Claude_Code-Compatible-5A67D8?style=flat-square&logo=anthropic)](https://claude.ai/code)
30
30
  [![OpenAI Codex](https://img.shields.io/badge/OpenAI_Codex-Compatible-00A67E?style=flat-square&logo=openai)](https://openai.com/codex)
31
31
  [![MCP](https://img.shields.io/badge/MCP-Server-orange?style=flat-square)](https://modelcontextprotocol.io)
@@ -58,9 +58,9 @@ An MCP SSH server is the most dangerous tool you can hand an agent: a shell on m
58
58
 
59
59
  ## Choose your workspace
60
60
 
61
- **Desktop application (`4.4.5`):** one installation with its own runtime,
61
+ **Desktop application (`4.4.6`):** one installation with its own runtime,
62
62
  terminal, file browser and server settings. No separate Node.js or npm
63
- installation. [Download it](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.4.5):
63
+ installation. [Download it](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.4.6):
64
64
 
65
65
  | Platform | File | Signature |
66
66
  |---|---|---|
@@ -68,7 +68,7 @@ installation. [Download it](https://github.com/bvisible/mcp-ssh-manager/releases
68
68
  | Windows x64 / arm64 | `…-setup.exe` | **Not code-signed yet.** Windows shows *"Windows protected your PC"*: *More info → Run anyway*. Check the file against the SHA-256 in `release-manifest-win32.json` on the release (`ssh-manager app` does it for you). Signing comes in a later release. |
69
69
  | Linux x64 | `.deb`, `.AppImage` | Unsigned, as Linux packages usually are |
70
70
 
71
- **Already using npm / the CLI?** `npm update -g mcp-ssh-manager` brings 4.4.5,
71
+ **Already using npm / the CLI?** `npm update -g mcp-ssh-manager` brings 4.4.6,
72
72
  and the V4 engine runs without an interface, from your existing `.env`, TOML or
73
73
  process variables — no automatic import, no forced wizard, no approval prompt
74
74
  unless you enable one per server. The one behaviour that tightens is **SSH
@@ -286,7 +286,7 @@ of them, and picked from a list inside any shell.
286
286
  <img src="docs/images/v4-servers-app.png" alt="The Servers screen: cards grouped by category" width="900">
287
287
  </p>
288
288
 
289
- On the same page: an interactive shell on any server, saved commands you pick from a list instead of retyping, groups you can run one command across, the audit trail of what agents ran and what you decided, and your known host keys.
289
+ On the same page: an interactive shell on any server (copy with Ctrl+Shift+C on Windows and Linux, or Ctrl+C on Windows when text is selected; Cmd+C on macOS), saved commands you pick from a list instead of retyping, groups you can run one command across, the audit trail of what agents ran and what you decided, and your known host keys.
290
290
 
291
291
  Every screenshot above is the desktop build; each has a browser twin in [`docs/images/`](docs/images/). See [ROADMAP-V4.md](ROADMAP-V4.md) for what is built and what isn't.
292
292
 
@@ -722,6 +722,8 @@ The hero animation ships twice, light and dark, swapped by `<picture>` on `prefe
722
722
 
723
723
  ## What's new
724
724
 
725
+ **[4.4.6](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.4.6) — copying from a shell works on Windows and Linux, and the `.xlsx` import is bounded.** Ctrl+Shift+C copies the selection; on Windows, Ctrl+C copies it too when something is selected and interrupts when nothing is, as in Windows Terminal. A right click in the desktop application opens a menu to copy and paste. An imported spreadsheet can no longer exhaust memory, and a styled empty cell no longer swallows the next one. Reported by @addy87; the first import limit is @ofri-peretz's work.
726
+
725
727
  **[4.4.5](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.4.5) — a security fix: `readonly` mode let a command inside a subshell run.** `(rm -rf /srv/data)` has a `(` before its `rm`, not a blank, and the built-in list of destructive commands missed it ([GHSA-c577-5jq9-pqq3](https://github.com/bvisible/mcp-ssh-manager/security/advisories/GHSA-c577-5jq9-pqq3), medium). A command is now also read inside `( )` and `{ }`, after `if`, `while`, `!` and a case pattern, behind a word that expands to nothing, and as zsh reads `=rm` and glob qualifiers. `restricted` mode was not affected. Reported by @InertFluid.
726
728
 
727
729
  **[4.4.4](https://github.com/bvisible/mcp-ssh-manager/releases/tag/v4.4.4) — a security fix: a path given to `ssh_sync` that starts with `-` was read as an option by rsync.** A pull to `local:--rsh=<command>` ran that command on the machine that runs the server ([GHSA-m727-8qhq-9f7f](https://github.com/bvisible/mcp-ssh-manager/security/advisories/GHSA-m727-8qhq-9f7f), high). `ssh_sync` now refuses a local or remote path that starts with `-` and always puts the two paths behind `--`. Also cross-spawn 7.1.2 (a critical advisory for Windows batch files, in the SDK's stdio client and the desktop build tools) and the pending dependency updates. Reported by @manus-use.
@@ -31,7 +31,7 @@ import electronUpdater from 'electron-updater';
31
31
  import { fileURLToPath, pathToFileURL } from 'url';
32
32
  import { localShellLaunch, localShellName } from './local-shell.mjs';
33
33
  import { nativeLanguage, nativeText } from './locale.mjs';
34
- import { applicationMenuTemplate } from './native-menu.mjs';
34
+ import { applicationMenuTemplate, contextMenuTemplate } from './native-menu.mjs';
35
35
  import { shouldQuitOnWindowAllClosed } from './window-close.mjs';
36
36
 
37
37
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -306,6 +306,11 @@ function createWindow(url) {
306
306
  }
307
307
  });
308
308
 
309
+ mainWindow.webContents.on('context-menu', (_event, params) => {
310
+ const template = contextMenuTemplate(params, nativeLang());
311
+ if (template.length) Menu.buildFromTemplate(template).popup({ window: mainWindow ?? undefined });
312
+ });
313
+
309
314
  // The page has to reserve room for the window buttons, which a hidden title
310
315
  // bar draws *over* the content. It cannot know that on its own — the same
311
316
  // page is served to an ordinary browser tab, where there is nothing to avoid.
@@ -42,3 +42,31 @@ export function applicationMenuTemplate({ isMac, onOpenBrowser, onCheckUpdates,
42
42
  ] },
43
43
  ];
44
44
  }
45
+
46
+ /**
47
+ * The menu of a right click, in a text field or on selected text.
48
+ *
49
+ * A browser tab has one of its own. A window of the application has none unless
50
+ * it builds it, so a right click did nothing, in a terminal included, where
51
+ * Windows users expect it to copy and paste.
52
+ *
53
+ * @param {{isEditable: boolean, selectionText: string,
54
+ * editFlags: {canCut: boolean, canCopy: boolean, canPaste: boolean, canSelectAll: boolean}}} params
55
+ * What Electron's `context-menu` event reports.
56
+ * @param {string} [language]
57
+ * @returns {Array<{role?: any, label?: string, enabled?: boolean, type?: 'separator'}>}
58
+ * Empty where there is nothing to edit or to copy.
59
+ */
60
+ export function contextMenuTemplate({ isEditable, selectionText, editFlags }, language = nativeLanguage()) {
61
+ if (!isEditable && !selectionText) return [];
62
+ const item = (role, label, enabled) => ({ role, label: nativeText(label, {}, language), enabled });
63
+ const copy = item('copy', 'Copy', editFlags.canCopy);
64
+ if (!isEditable) return [copy];
65
+ return [
66
+ item('cut', 'Cut', editFlags.canCut),
67
+ copy,
68
+ item('paste', 'Paste', editFlags.canPaste),
69
+ { type: 'separator' },
70
+ item('selectAll', 'Select All', editFlags.canSelectAll),
71
+ ];
72
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "ssh-manager-desktop",
3
- "version": "4.4.5",
3
+ "version": "4.4.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "ssh-manager-desktop",
9
- "version": "4.4.5",
9
+ "version": "4.4.6",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "electron-updater": "^6.8.9",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ssh-manager-desktop",
3
3
  "productName": "SSH Manager",
4
- "version": "4.4.5",
4
+ "version": "4.4.6",
5
5
  "private": true,
6
6
  "description": "The SSH Manager control plane as a desktop application",
7
7
  "main": "main.js",