@yawlabs/ssh-mcp 0.11.4 → 0.11.5

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/dist/index.js CHANGED
@@ -1437,7 +1437,9 @@ ${result.stderr}`);
1437
1437
  "Read a file from a remote host via SFTP.",
1438
1438
  {
1439
1439
  ...connectionParams,
1440
- path: z.string().describe("Absolute path to the remote file")
1440
+ path: z.string().refine((p) => p.startsWith("/"), {
1441
+ message: "Path must be absolute (start with /). Relative paths resolve against the remote user's CWD, which is rarely what you want."
1442
+ }).describe("Absolute path to the remote file. Must start with /.")
1441
1443
  },
1442
1444
  async ({ path, ...conn }) => {
1443
1445
  return connectionPool.withConnection(conn, async (client) => {
package/dist/server.js CHANGED
@@ -1443,7 +1443,9 @@ ${result.stderr}`);
1443
1443
  "Read a file from a remote host via SFTP.",
1444
1444
  {
1445
1445
  ...connectionParams,
1446
- path: z.string().describe("Absolute path to the remote file")
1446
+ path: z.string().refine((p) => p.startsWith("/"), {
1447
+ message: "Path must be absolute (start with /). Relative paths resolve against the remote user's CWD, which is rarely what you want."
1448
+ }).describe("Absolute path to the remote file. Must start with /.")
1447
1449
  },
1448
1450
  async ({ path, ...conn }) => {
1449
1451
  return connectionPool.withConnection(conn, async (client) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yawlabs/ssh-mcp",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
4
4
  "mcpName": "io.github.YawLabs/ssh-mcp",
5
5
  "description": "MCP server for SSH operations with built-in diagnostics",
6
6
  "type": "module",