ssh-mcp 2.8.0 → 2.8.1
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.
|
@@ -16,7 +16,11 @@ export function registerFileTools({ server }, pipeline) {
|
|
|
16
16
|
await new SftpClient(rt.conn).upload({ remotePath, content });
|
|
17
17
|
return {
|
|
18
18
|
audited: syntheticSuccess(rt.profileName),
|
|
19
|
-
|
|
19
|
+
// Byte count, not string length: `content` is a JS string, so
|
|
20
|
+
// `.length` counts UTF-16 code units and under-reports every
|
|
21
|
+
// multi-byte character. SftpClient.upload writes Buffer.from(content),
|
|
22
|
+
// which is utf8, so this is exactly what lands on the remote side.
|
|
23
|
+
output: textResult(`Uploaded ${Buffer.byteLength(content, 'utf8')} bytes to ${remotePath}`),
|
|
20
24
|
};
|
|
21
25
|
});
|
|
22
26
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ssh-mcp",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "2.8.
|
|
4
|
+
"version": "2.8.1",
|
|
5
5
|
"description": "MCP server exposing policy-gated, audited SSH access for Linux and Windows hosts via the Model Context Protocol.",
|
|
6
6
|
"mcpName": "io.github.tufantunc/ssh-mcp",
|
|
7
7
|
"type": "module",
|