deployctl
This MCP server lets AI agents safely manage deployctl deployments over FTP/FTPS/SFTP without exposing credentials.
Deploy project files to a remote target, with dry-run diffs, zip deployment, fresh remote scans, production confirmation, and branch-policy override.
List configured projects, environments, protocols, and credential status.
Test server connectivity using stored credentials.
Inspect project/target configuration while keeping secrets protected.
Browse remote directories and files before choosing a deployment destination.
Download a remote file (e.g. logs) to a local deployctl downloads folder and return a redacted tail.
Change target safety/behavior options such as delete_missing, allowed_branches, require_clean, insecure_tls, post_deploy_delete, app_url, and zip_deploy.
Set the remote deployment path for a project/environment.
Deploys Composer vendor/ folders (and other large web application assets) to remote hosting, using a differential change-detection engine and a zip + PHP auto-extract bridge to upload them in seconds over FTP/FTPS/SFTP.
Provides an official GitHub Action (donotwaitx/deployctl) that runs differential deployments inside GitHub Actions workflows, along with CLI usage in CI that configures credentials and deployment targets via secrets for automated headless deployments.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@deployctl deploy my-webapp to production"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
deployctl 🚀
Secure, Ultra-Fast Differential Deployment CLI & Model Context Protocol (MCP) Server for AI Agents (Antigravity, Claude Code) and Developers.
Deploy large web applications and Composer vendor/ folders over FTP, FTPS, and SFTP in seconds instead of hours without exposing server credentials to AI agents or CI/CD logs.
⚡ Why deployctl?
⚡ Ultra-Fast Zip & Self-Destructing PHP Auto-Extract Bridge: Compresses differential changes into a temporary zip package, uploads in one stream, and extracts directly on remote hosting in <1 second (turning 45-minute sequential uploads into 30 seconds).
🔍 Fast Remote Manifest Scanner Bridge: Queries remote server state in 0.35 seconds over a single HTTP request using recursive server-side iteration instead of slow sequential FTP roundtrips.
🛡️ Zero-Leak Credential Isolation: Passwords and SSH keys are stored in native macOS Keychain, Linux SecretService, or permission-locked headless vaults (
chmod 0600). Agents and logs never see or expose raw secrets.🤖 Model Context Protocol (MCP) Server: Native stdio JSON-RPC 2.0 tools for Google Antigravity and Claude Code to perform deployments, remote explorations, and dry-run diffs autonomously and safely.
🎯 Change Detection Engine: Computes differential file diffs (Added, Modified, Deleted, Unchanged) locally or against remote state caches in ~0.02s.
📂 Interactive Remote Directory Explorer: Browse and select target deployment directories directly from the terminal or MCP before deploying.
🌐 Headless & CI/CD Ready: Works seamlessly inside GitHub Actions, GitLab CI, and Docker containers with automated confirmations (
--yes) and secret masking.
Related MCP server: ftp-mcp
🏛 Architecture
┌───────────────────────────┐
│ Antigravity / Claude Code │
└─────────────┬─────────────┘
│ (MCP stdio JSON-RPC)
┌─────────────▼─────────────┐
│ deployctl │
└─────────────┬─────────────┘
│
┌────────────────────────┼────────────────────────┐
▼ ▼ ▼
Local State Cache Encrypted Vault Fast Deployment
~/.deployctl/state/ macOS Keychain / Linux Differential Engine
│ │ │
└────────────────────────┴────────┬───────────────┘
│
┌──────────────────┴──────────────────┐
▼ ▼
Direct FTP / SFTP Zip & PHP Bridge
(Sequential sync mode) (High-speed mode <1s)
│ │
└──────────────────┬──────────────────┘
▼
100+ Remote HostingsThe Core Boundary: AI Agent knows the
project. CLI knows theserver. Keychain/Vault holds thesecret.
📦 Installation
Install globally using uv (recommended) or pip:
# Using uv (fastest)
uv tool install --editable . --force
# Or via standard pip
pip install -e .Verify installation:
deployctl --help🚀 Quick Start
1. Initialize Configuration
deployctl initThis generates default configuration files in ~/.deployctl/:
config.yaml: Global preferences and default exclude patterns.projects.yaml: Project deployment targets registry.
2. Add Server Credentials
Securely store your server credentials into the system Keychain/Vault:
deployctl credential add my-webapp-prod \
--host "ftp.example.com" \
--username "deployer" \
--protocol ftp
# (Prompts for password securely without terminal echo)3. Configure a Deployment Target
Link a project environment to the stored credentials:
deployctl project set my-webapp production \
--credential my-webapp-prod \
--remote-path "/public_html" \
--zip \
--app-url "https://example.com"4. Deploy!
# Preview changes with dry-run diff
deployctl deploy my-webapp production --dry-run
# Deploy with automatic confirmation
deployctl deploy my-webapp production --yes5. Target safeguards (optional)
Extra keys on a target in ~/.deployctl/projects.yaml:
projects:
my-webapp:
production:
allowed_branches: [main] # refuse to deploy from any other branch (use --force to override)
require_clean: true # refuse to deploy with uncommitted changes in local_path
post_deploy_delete: # server files removed after a successful deploy (framework caches)
- bootstrap/cache/*.php
insecure_tls: false # true only for self-signed hosts: skips certificate checks
delete_missing: owned # owned (default) | all | none - which server files a deploy may deleteEvery deployment records the git branch, commit and dirty state. Without
allowed_branches, deploying from a branch other thanmain/master/developonly prints a warning, as does deploying from a different branch than the last deployment (files that exist only in the other branch can linger on the server).Files whose deletion fails are reported, kept in the state cache and retried by the next deployment; deletions never run when an upload failed.
The state cache is ignored once it is older than
state_max_age_days(default 7, inconfig.yaml) and the server is scanned again.Server files take priority. By default (
delete_missing: owned) a deploy only deletes files deployctl itself deployed earlier and that are now gone locally. Files that exist only on the server (admin uploads, generated thumbnails) are never removed; they are listed asskipped_deletes.allrestores the old "mirror the local tree" behaviour,nonenever deletes. Change it withdeployctl project set <project> <env> --delete-missing owned|all|noneor the MCP toolset_target_option.Deleting server files always needs an explicit yes (
--yes, oryes=trueover MCP); until then the run stops withDELETIONS_NEED_CONFIRMATIONand the list of files.Only one deployment per
project:environmentruns at a time.post_deploy_deletepatterns are relative toremote_path; only the file-name part may contain wildcards.
6. What gets uploaded (gitignore-style rules)
deployctl follows git when it decides what to upload:
.gitignoreis honoured (nested files, global ignore and.git/info/excludetoo; files tracked by git are never dropped). Turn it off per target withuse_gitignore: false. Folders that are not git repositories skip this step.excludepatterns (~/.deployctl/config.yamldefault_excludesplus the target'sexclude:) use full gitignore syntax:#comments,!negation(last match wins),/leadinganchors to the project root,trailing/matches directories only,*,?,**..deployignorein the deploy folder: same syntax, one pattern per line, e.g. keep internal audit reports off the server:/connecttech.vn-audit/ *.psdNothing overrides
.deployignore, and its paths are also protected from deletion on the server.Laravel auto-include (detected by
artisan+composer.json): paths that git ignores but a FTP server needs are uploaded anyway:vendor/,public/(uploads, thumbs, built assets) and the.gitignoreplaceholders that keepstorage/**andbootstrap/cache/folders in place. Runtime files (storage/logs, caches, debugbar) are never uploaded or deleted. Disable it withauto_include: false, or give your own list:auto_include: ["/vendor/", "/public/"].
.git/, .env, .env.* and node_modules/ are never uploaded, whatever the rules say. Dry-run first (deployctl deploy <project> --dry-run) to see the exact list.
📖 CLI Reference
🚀 Deployments
Command | Description |
| Deploy changes to target server |
| Inspect differential changes without uploading |
| Force direct live remote scan via PHP bridge |
| Bypass production confirmation prompt |
🔑 Credentials Management
Command | Description |
| Save server credentials securely |
| List stored credential identifiers |
| Test connectivity with stored credentials |
| Delete credentials from Keychain/Vault |
📂 Remote Exploration
Command | Description |
| List files and directories on remote hosting |
| Interactively browse remote folders and save |
| Create remote directory on hosting server |
| Fast-sync remote manifest into local state cache |
📋 Audit & Configuration
Command | Description |
| View all configured projects, targets, and status |
| Display sanitized target configuration |
| Show past deployment audit logs |
| Test target connectivity |
| Launch MCP server on stdio |
🤖 Model Context Protocol (MCP) Integration
deployctl comes with a built-in MCP server for AI Coding Agents.
Antigravity Configuration
Add to ~/.gemini/antigravity/mcp_config.json or ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"deployctl": {
"command": "deployctl",
"args": ["mcp"]
}
}
}Claude Code Configuration
Add to ~/.claude.json or project settings:
{
"mcpServers": {
"deployctl": {
"command": "deployctl",
"args": ["mcp"]
}
}
}Available MCP Tools:
deploy_project: Deploy projects with differential diffs and zip strategy. Never prompts: a production deploy first returnsCONFIRMATION_REQUIREDwith the diff, and runs when repeated withyes=true. Returns a JSON report (status, git branch/commit, warnings, file lists, failed uploads/deletes).list_projects: Inspect configured projects and targets.test_connection: Test server connectivity.show_project: View sanitized target settings.browse_remote_directories: Browse remote server folder hierarchy.download_remote_file: Download one remote file (e.g. a log) to~/.deployctl/downloads/<project>/<env>/and return its redacted tail.set_target_option: Change a validated target option (delete_missing,allowed_branches,require_clean,insecure_tls,post_deploy_delete,app_url,zip_deploy).set_remote_path: Configure remote destination folder.
🧠 Official AI Agent Skill
deployctl provides an official Agent Skill (SKILL.md) that teaches AI coding assistants (Claude Code, Cursor, GitHub Copilot, Google Antigravity, OpenHands) how to safely inspect, preview diffs, and execute deployments without leaking credentials.
Option 1: Using deployctl CLI (Fastest)
# Install globally for all detected agents (Claude Code, Cursor, Antigravity)
deployctl skill install
# Or target a specific agent
deployctl skill install --agent claude
deployctl skill install --agent cursorOption 2: Using NPX (Zero Install)
npx deployctl-skill
# or target a specific agent
npx deployctl-skill --agent claudeOption 3: Package for Marketplaces (Agensi / Glama)
deployctl skill package
# -> Generates dist/deployctl-skill.zip ready for one-click marketplace uploadsSee skills/deployctl/README.md for detailed configuration options.
🔄 GitHub Actions CI/CD Integration
Option A: Using the Official GitHub Action (Recommended)
Simply use donotwaitx/deployctl@main in your workflow:
name: Deploy to Hosting
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout Code
uses: actions/checkout@v4
- name: 🚀 Ultra-Fast Deploy
uses: donotwaitx/deployctl@main
with:
host: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
protocol: ftp
remote_path: "/public_html"
app_url: "https://example.com"
zip_deploy: "true"
remote_scan: "true"Option B: Using CLI directly via uv
- name: 🐍 Set up uv
uses: astral-sh/setup-uv@v3
- name: 🚀 Deploy via deployctl CLI
env:
FTP_HOST: ${{ secrets.FTP_HOST }}
FTP_USER: ${{ secrets.FTP_USER }}
FTP_PASS: ${{ secrets.FTP_PASSWORD }}
run: |
uv tool install deployctl
deployctl credential add prod-cred --host "$FTP_HOST" --username "$FTP_USER" --password "$FTP_PASS"
deployctl project set my-app production --credential prod-cred --remote-path "/public_html" --zip --app-url "https://example.com"
deployctl deploy my-app production --yes --remote-scan🛡️ Security & Privacy Guarantees
Passwords Never Logged: Passwords, API tokens, and SSH keys are automatically masked (
[REDACTED]) in all logs, error traces, and MCP responses.Self-Destructing PHP Bridges: Temporary PHP worker scripts execute in memory, enforce 32-hex random authentication tokens, and self-delete immediately upon execution (
register_shutdown_function+@unlink).Project Isolation Safeguards: Prevents accidental cross-deployments when working in different repository working trees.
TLS Verified by Default: Requests to the PHP bridges verify the server certificate. Set
insecure_tls: trueon a target to skip verification; only then is the server-IP fallback (virtual hostHostheader) tried, since a certificate is never valid for a bare IP.Constant-time Token Check: The PHP bridges compare tokens with
hash_equals.
☕ Support
If deployctl saves you time, you can support its development:
MoMo: 0336679423
MB Bank:
910191005
📄 License
MIT License © 2026 deployctl Contributors. See LICENSE for details.
Available Tools
8 toolsbrowse_remote_directoriesARead-onlyIdempotent
Inspect and browse actual remote directories and files on the hosting server. Use this to explore what folders exist on the server before picking a remote deployment destination.
Inputs: project (required), path, environment.
deploy_projectADestructiveIdempotent
Deploy project files to a remote server using credentials securely loaded from macOS Keychain / Linux SecretService / Vault. Never requires or exposes passwords. Returns a JSON report: status, git branch/commit, warnings, added/modified/deleted files and any failed uploads or deletes.
Inputs: project (required), yes, app_url, dry_run, +4 more.
download_remote_fileAIdempotent
Download one file (e.g. storage/logs/laravel.log) from the remote server using Keychain credentials. The file is saved under ~/.deployctl/downloads/// (the response gives local_path, readable with a file tool) and the last lines are returned inline with secrets redacted. Refuses directories and files over max_bytes.
Inputs: project (required), remote_path (required), max_bytes, tail_lines, +1 more.
list_projectsARead-onlyIdempotent
List all configured projects, target environments, protocols, and credential status.
Inputs: no named parameters.
set_remote_pathAIdempotent
Configure the remote deployment destination directory (remote_path) for a project and environment in projects.yaml.
Inputs: project (required), remote_path (required), environment.
set_target_optionAIdempotent
Change one safety/behaviour option of an existing deployment target in projects.yaml. Options: delete_missing (owned = default, only delete files deployctl itself deployed; all; none), allowed_branches (list of branch names), require_clean (bool), insecure_tls (bool), post_deploy_delete (list of file patterns), app_url (string), zip_deploy (bool).
Inputs: option (required), project (required), value, environment.
show_projectARead-onlyIdempotent
Inspect project deployment configuration. All passwords remain strictly protected.
Inputs: project (required), environment.
test_connectionARead-onlyIdempotent
Test connectivity to a remote server target using stored credentials without deploying.
Inputs: project (required), environment.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools have clearly distinct actions: list/show projects, deploy, test connectivity, browse remote directories, download a remote file, and modify target configuration. There is mild overlap between list_projects and show_project, and between browse_remote_directories and download_remote_file when inspecting remote files, but descriptions largely clarify the boundaries.
All tool names use a consistent snake_case verb_noun pattern: list_projects, deploy_project, test_connection, show_project, browse_remote_directories, download_remote_file, set_target_option, set_remote_path. The convention is predictable throughout.
Eight tools is well within the appropriate range for a deployment management server. Each tool covers a distinct operational need such as listing, inspecting, testing, deploying, remote browsing, downloading, and target configuration.
The core deployment workflow is covered: inspect projects, test connectivity, browse remote paths, deploy, download remote files, and update target options/paths. However, notable lifecycle operations are missing, such as creating/removing projects or targets, listing deployment history, and rollback, which may force agents to work around the tool surface or fail on onboarding/recovery tasks.
Maintenance
Related MCP Connectors
Deploy sites and apps from your AI coding agent: domains, DNS, logs, env, versions and rollback.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Deploy and manage your apps, databases, storage, and scheduled jobs from your AI agent
Deploy local apps, add managed Postgres, and inspect logs from your AI coding agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceBridges AI coding assistants with website codebases, local git repositories, and shared hosting via FTP/SFTP, enabling code discovery, file management, git operations, smart deployments, backups, and rollbacks.MIT
- AlicenseBqualityDmaintenanceEnables AI agents to perform FTP/FTPS/SFTP file operations including upload, download, sync, and directory management with multi-server support.368MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI apps to connect to remote servers via SSH, SFTP, and tunnels.-
- AlicenseAqualityBmaintenanceEnables AI assistants to manage website deployments over SFTP/FTPS by listing sites, testing connections, comparing files, previewing changes with approval tokens, creating SHA-256 verified backups, and executing authorized uploads.71MIT