coolftp
v0.1.4Deploy a site to its SFTP/FTP host from a coding agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
coolftp_sites
List the servers saved in coolFTP (name, host, protocol, remote root). Secrets are never returned.
coolftp_status
Show which site the current project deploys to, whether the coolFTP desktop app is running (calls route through it when it is), and live connections.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
coolftp_init
Link a project directory to a site by writing .coolftp.json. Do this once so later deploys need no site argument.
| Parameter | Type | Description |
|---|---|---|
site * | string | Site name to deploy this project to |
build | string | Command to run before each deploy, e.g. "npm run build" |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
ignore | array | Extra gitignore-style patterns |
keepBackups | integer | Deploys whose previous versions stay on the server for undo (default 5, 0 disables) |
localDir | string | Sub-directory to deploy, e.g. "dist" |
remoteRoot | string | Remote directory for this project, if different from the site root |
url | string | Public URL that remote directory is served at, e.g. https://example.com. Enables post-deploy verification with correct URLs. |
coolftp_diff
Preview a deploy: which files would be added, changed or are stale on the server. Uploads nothing. Long lists are summarised by folder.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
force | boolean | Compare as if nothing had been deployed |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_deploy
Upload the project's changed files to its web server. Runs the configured build first. Use dryRun to preview, delete to remove stale remote files, commit to git-commit before deploying. The result says whether the site verified as live; only call it live when verify.ok is true. Previous versions of changed files stay on the server so coolftp_undo can revert.
| Parameter | Type | Description |
|---|---|---|
commit | boolean | git add -A && git commit before deploying |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
delete | boolean | Delete remote files that no longer exist locally |
deleteUntracked | boolean | Only with delete on a first deploy: also remove remote files coolFTP never uploaded. Ask the user before setting this. |
dryRun | boolean | |
force | boolean | Re-upload every file |
message | string | Short note stored with the deploy (and used as the commit message with commit=true) |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
skipBuild | boolean |
coolftp_undo
Put back the previous versions the last deploy set aside on the server: overwritten files are restored, files it added are removed, files it deleted come back. Needs no git. Use dryRun to see what it would do. The coolFTP app asks the user to approve when it is open.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
dryRun | boolean | Report what would be restored and removed without changing the server |
message | string | |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
to | string | Deploy id from coolftp_history to undo instead of the latest (only if no later deploy touched its files) |
coolftp_verify
Fetch the project's public URL and the files of the last deploy (or the given paths) and report status codes, plus whether static files are being served with the local bytes. Deploys nothing.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
paths | array | Paths relative to the project's remote directory to check instead of the last deploy's files |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_rollback
Put the server back to an earlier deploy's git commit. With no target, restores the previous commit that was live for this project. Requires git; for a quick revert of the last deploy without git use coolftp_undo. The coolFTP app asks the user to approve when it is open.
| Parameter | Type | Description |
|---|---|---|
build | boolean | Run the project build command inside the checkout before deploying |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
message | string | |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
to | string | Commit hash, branch, tag, or a deploy id from coolftp_history |
coolftp_history
Recent deploys for a site, newest first, with git commit, which agent did it, whether the live checks passed, and whether it can be undone.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_ls
List a remote directory. Relative paths are relative to the project's remote directory from .coolftp.json (the same place deploy writes to), or the site root when the project has none. Paths starting with / are absolute on the server.
| Parameter | Type | Description |
|---|---|---|
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
path | string | Remote directory; defaults to the project's remote directory |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_stat
Check whether a remote path exists and get its type, size and date, without downloading it. Relative paths are relative to the project's remote directory from .coolftp.json (the same place deploy writes to), or the site root when the project has none. Paths starting with / are absolute on the server.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_read
Read a text file from the server (up to 512 KB). Relative paths are relative to the project's remote directory from .coolftp.json (the same place deploy writes to), or the site root when the project has none. Paths starting with / are absolute on the server.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_write
Write text content to a file on the server, creating parent directories. Relative paths are relative to the project's remote directory from .coolftp.json (the same place deploy writes to), or the site root when the project has none. Paths starting with / are absolute on the server.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
path * | string | |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_upload
Upload a local file or directory to a remote path. The server confirms each file's size afterwards, and files inside the project's remote directory are recorded in the deploy manifest so the next deploy does not send them again. Relative paths are relative to the project's remote directory from .coolftp.json (the same place deploy writes to), or the site root when the project has none. Paths starting with / are absolute on the server.
| Parameter | Type | Description |
|---|---|---|
local * | string | Absolute or cwd-relative local path |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
remote | string | Remote path; defaults to the project's remote directory |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_download
Download a remote file or directory to a local path. Relative paths are relative to the project's remote directory from .coolftp.json (the same place deploy writes to), or the site root when the project has none. Paths starting with / are absolute on the server.
| Parameter | Type | Description |
|---|---|---|
local * | string | Local destination; defaults to the current directory |
remote * | string | |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_mkdir
Create a remote directory (and parents). Relative paths are relative to the project's remote directory from .coolftp.json (the same place deploy writes to), or the site root when the project has none. Paths starting with / are absolute on the server.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_delete
Delete a remote file or directory. Refuses to delete the site root. The coolFTP app asks the user to approve when it is open. Relative paths are relative to the project's remote directory from .coolftp.json (the same place deploy writes to), or the site root when the project has none. Paths starting with / are absolute on the server.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |
coolftp_rename
Rename or move a remote path. Relative paths are relative to the project's remote directory from .coolftp.json (the same place deploy writes to), or the site root when the project has none. Paths starting with / are absolute on the server.
| Parameter | Type | Description |
|---|---|---|
from * | string | |
to * | string | |
cwd | string | Project directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory. |
site | string | Site name. Defaults to the site in the nearest .coolftp.json, or the only saved site. |