coolftp

v0.1.4
io.github.anivdel/coolftp Checked 1 hour ago Published 1 month ago

Deploy 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.

ParameterTypeDescription
cwdstringProject 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.

ParameterTypeDescription
site *stringSite name to deploy this project to
buildstringCommand to run before each deploy, e.g. "npm run build"
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
ignorearrayExtra gitignore-style patterns
keepBackupsintegerDeploys whose previous versions stay on the server for undo (default 5, 0 disables)
localDirstringSub-directory to deploy, e.g. "dist"
remoteRootstringRemote directory for this project, if different from the site root
urlstringPublic 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.

ParameterTypeDescription
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
forcebooleanCompare as if nothing had been deployed
sitestringSite 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.

ParameterTypeDescription
commitbooleangit add -A && git commit before deploying
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
deletebooleanDelete remote files that no longer exist locally
deleteUntrackedbooleanOnly with delete on a first deploy: also remove remote files coolFTP never uploaded. Ask the user before setting this.
dryRunboolean
forcebooleanRe-upload every file
messagestringShort note stored with the deploy (and used as the commit message with commit=true)
sitestringSite name. Defaults to the site in the nearest .coolftp.json, or the only saved site.
skipBuildboolean

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.

ParameterTypeDescription
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
dryRunbooleanReport what would be restored and removed without changing the server
messagestring
sitestringSite name. Defaults to the site in the nearest .coolftp.json, or the only saved site.
tostringDeploy 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.

ParameterTypeDescription
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
pathsarrayPaths relative to the project's remote directory to check instead of the last deploy's files
sitestringSite 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.

ParameterTypeDescription
buildbooleanRun the project build command inside the checkout before deploying
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
messagestring
sitestringSite name. Defaults to the site in the nearest .coolftp.json, or the only saved site.
tostringCommit 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.

ParameterTypeDescription
limitinteger
sitestringSite 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.

ParameterTypeDescription
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
pathstringRemote directory; defaults to the project's remote directory
sitestringSite 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.

ParameterTypeDescription
path *string
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
sitestringSite 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.

ParameterTypeDescription
path *string
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
sitestringSite 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.

ParameterTypeDescription
content *string
path *string
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
sitestringSite 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.

ParameterTypeDescription
local *stringAbsolute or cwd-relative local path
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
remotestringRemote path; defaults to the project's remote directory
sitestringSite 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.

ParameterTypeDescription
local *stringLocal destination; defaults to the current directory
remote *string
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
sitestringSite 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.

ParameterTypeDescription
path *string
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
sitestringSite 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.

ParameterTypeDescription
path *string
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
sitestringSite 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.

ParameterTypeDescription
from *string
to *string
cwdstringProject directory. Defaults to the COOLFTP_PROJECT setting, else the MCP server working directory.
sitestringSite name. Defaults to the site in the nearest .coolftp.json, or the only saved site.