@jwjp/ftp-mcp 0.4.1 → 0.5.0
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 +1 -1
- package/package.json +1 -1
- package/src/paths.js +6 -5
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ SFTP is SSH File Transfer Protocol, not FTP over TLS. For SFTP, get the SSH host
|
|
|
53
53
|
|
|
54
54
|
The former `FTP_*` variables still work for existing FTP/FTPS configurations. A missing `REMOTE_PROTOCOL` follows the old `FTP_SECURE` setting (`true` → `ftps`, `false` → `ftp`, `implicit` → `ftps-implicit`). If neither is set, the server uses `ftps` and prints a warning to stderr at startup. New configurations should use the `REMOTE_*` names and explicitly set the protocol.
|
|
55
55
|
|
|
56
|
-
The built-in exclusion list blocks these names anywhere in the path: `.git`, `.env` and `.env.*`, `vendor`, `node_modules`, credential files (`.ssh`, `.netrc`, `.git-credentials`, `.htpasswd`), and agent or MCP configuration (`.mcp.json`, `.claude`, `.codex`).
|
|
56
|
+
The built-in exclusion list blocks these names anywhere in the path: version control (`.git`, `.hg`), `.env` and `.env.*`, `vendor`, `node_modules`, credential files (`.ssh`, `.netrc`, `.git-credentials`, `.htpasswd`, `.npmrc`, `.pypirc`, `.pgpass`), and agent, editor, or MCP configuration (`.mcp.json`, `.claude`, `.codex`, `.cursor`, `.gemini`, `.vscode`). Configuration is excluded because a downloaded file could make a local agent or editor run commands, for example through an MCP server definition, a task that runs when the folder opens, or a Mercurial hook. Credential files are excluded so an upload cannot publish a token. There is no setting to allow a built-in exclusion. Extra entries match a name segment or an exact relative path and its descendants, case-insensitively. Review exclusions for each project. Install dependencies or build generated files locally when appropriate.
|
|
57
57
|
|
|
58
58
|
### VS Code with GitHub Copilot
|
|
59
59
|
|
package/package.json
CHANGED
package/src/paths.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
|
|
4
|
-
// Version control, secrets, dependency trees, and agent or MCP
|
|
5
|
-
// that a downloaded file could use to run commands on this
|
|
4
|
+
// Version control, secrets, dependency trees, and agent, editor, or MCP
|
|
5
|
+
// configuration that a downloaded file could use to run commands on this
|
|
6
|
+
// machine. Mercurial's .hg/hgrc can define hooks that run commands.
|
|
6
7
|
const DEFAULT_EXCLUDES = [
|
|
7
|
-
'.git', '.env', 'node_modules', 'vendor',
|
|
8
|
-
'.ssh', '.netrc', '.git-credentials', '.htpasswd',
|
|
9
|
-
'.mcp.json', '.claude', '.codex'
|
|
8
|
+
'.git', '.hg', '.env', 'node_modules', 'vendor',
|
|
9
|
+
'.ssh', '.netrc', '.git-credentials', '.htpasswd', '.npmrc', '.pypirc', '.pgpass',
|
|
10
|
+
'.mcp.json', '.claude', '.codex', '.cursor', '.gemini', '.vscode'
|
|
10
11
|
];
|
|
11
12
|
const TRANSFER_TEMP = /^\.mcp-(?:upload|backup|download)-[0-9a-f-]{36}\.tmp$/iu;
|
|
12
13
|
|