@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 +3 -1
- package/dist/server.js +3 -1
- package/package.json +1 -1
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().
|
|
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().
|
|
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) => {
|