Skip to main content
Glama
plesk-deploy-mcp

plesk-deploy-mcp

Generate the deploy kit

generate_deploy_kit
DestructiveIdempotent

Renders a Plesk deployment kit for a project, showing file diffs and a write plan first; writes only approved files inside the repository and refuses secret-like content.

Instructions

Renders the deploy kit for a project from explicit parameters: .github/workflows/deploy-plesk.yml and deploy/plesk/ (build-bundle.sh, the -deploy release manager, deploy.conf.example, server-setup.sh, the database dump helper, PM2 or systemd definitions, optional nginx directives, README.md). A DRY RUN by default: it returns each file’s action and a diff (against the vetted template for a new file, against the current file for an existing one) and writes nothing. With write: true it writes inside the repository root only, never through a symlink, never deletes, and never replaces an existing file unless its path is listed in overwrite. Values it doesn’t know are left as FILL IN and listed. Use it in phase 5, after the user agreed the plan; write only after they saw the diff. Refuses to write a kit that contains anything that looks like a secret.

Input Schema

NameRequiredDescriptionDefault
appYesThe app name used by the release manager (<app>-deploy, /etc/<app>/)
nginxNoOnly if the proxy needs changing; a working proxy is left alonenone
partsNoGenerate only these parts
stackYesWhich build-bundle.sh branch builds the release
writeNofalse (default): return the plan and diffs, write nothing
branchNoThe production branchmain
app_userNoThe account that runs the app, from the server. Left as FILL IN if unknown
base_dirYesBASE on the server: where releases/, current and shared/ live
databaseNoAdds the pre-migration dump for this enginenone
env_fileNoThe app's env file on the server (default /etc/<app>/app.env)
pm2_appsNoEach PM2 process: its name, its folder in the release, its script, and arguments
pm2_homeNoAn absolute path on the server
site_urlYesThe public site, checked from outside after each deploy
app_groupNoA Linux user or group name
overwriteNoExisting files that may be replaced. List one only after showing the user what is there and getting agreement
proxy_portNoA TCP port
static_dirNoStatic sites: the build output folder (default dist)
ci_workflowNoThe existing CI workflow the deploy calls for its testsci.yml
deploy_userNoThe SSH account GitHub Actions uses (default <app>-deploy)
migrate_cmdNoA shell command written into deploy.conf (this server never runs it)
php_versionNo
project_dirNoAbsolute path of the repository root. Defaults to the open project in Claude Code.
checkout_envNoThe env file inside the folder production runs from today
node_bin_dirNoThe folder with the node (and pm2) the app uses, e.g. /opt/plesk/node/24/bin
shared_linksNo
health_checksYesWhat the release manager checks after the switch; prefer the app’s own port, e.g. http://127.0.0.1:3001/health
systemd_unitsNo
required_filesNo
build_time_varsNoPublic build-time values (repository variables), names only
php_fpm_serviceNoThe domain's FPM service, e.g. plesk-php83-fpm
post_switch_cmdNoA shell command written into deploy.conf (this server never runs it)
process_managerYesWhat the server reloads after the switch; keep what runs today
checkout_uploadsNoRun-time files inside the folder production runs from today
health_commit_urlNoA URL whose answer must contain the release’s commit
public_health_urlYesA public URL whose answer contains the deployed commit (a health endpoint or version.json)
runtime_env_namesNoNames for the placeholder env file server-setup.sh creates, never values
not_deployed_pathsNoPath prefixes whose changes are tested but not deployed (.md files never deploy)

Output Schema

NameRequiredDescriptionDefault
adaptYes
filesYes
secretsYes
writtenYes
warningsYes
project_dirYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Although the annotations already flag destructiveHint=true, the description adds substantial context beyond them: dry run by default, repo-root confinement, no symlinks, no deletions, overwrite gating, FILL IN handling, and refusal to write secret-like content. These are precisely the behavioral details an agent needs before invoking a write-capable generator.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but front-loaded: purpose and default behavior come first, followed by write safety and usage sequencing. The file list is long but directly relevant to what the tool generates, and no sentence is merely repetitive.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 37-parameter generator with an output schema and destructive annotations, the description covers purpose, default dry-run behavior, write boundaries, error handling, secret refusal, and usage timing. An agent has enough context to call it correctly without needing return-value details that the output schema supplies.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 89%, so the schema already documents most of the 37 parameters. The description adds useful meaning about unknown values becoming FILL IN and overwrite needing prior user agreement, but it does not explain most individual parameters beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: it renders the deploy kit for a project. It enumerates the generated artifacts and makes clear this tool generates files, while sibling validate_deploy_kit validates them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly places the tool in phase 5, after the plan is agreed, and says to write only after the user has seen the diff. The default dry-run behavior and the write-only-after-diff sequence give clear when-to-use and when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.