krexel-mcp
v0.3.2Ship and edit static sites from any MCP-compatible AI.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ship_site
Upload a built site folder to Krexel. Zips the folder, stages it locally, and POSTs to the Krexel orchestrator API. Returns a deploy_id (always) and preview_url. If the orchestrator is unreachable the response carries an `api_ok: false` flag with the upstream error — never fakes success.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Custom domain to attach (e.g. shop.example.com). |
folder * | string | Absolute or ~-relative path to the built site directory. |
framework | string | Build framework hint. Default 'auto' detects from package.json. |
list_deploys
List recent deploys from the local Krexel state file. Optionally filter by domain.
| Parameter | Type | Description |
|---|---|---|
domain | string | |
limit | number |
get_logs
Get build logs for a deploy. In Phase 1 these are mocked from the local manifest; Phase 2 will stream from the orchestrator.
| Parameter | Type | Description |
|---|---|---|
deploy_id * | string |
rollback
Mark a previous deploy as the current 'last_good' for a domain. Phase 2 will actually push the rollback; Phase 1 just records intent.
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
to * | string | deploy_id to roll back to |
set_env
Encrypt and persist an environment variable for a domain. Stored at $KREXEL_HOME/env/<domain>.enc with AES-256-GCM using KREXEL_MASTER_KEY.
| Parameter | Type | Description |
|---|---|---|
domain * | string | |
key * | string | |
value * | string |
get_status
Return current account, deploy count, platform, and state directory.
list_files
List the files in a deployed site (paths, sizes, sha256). Returns metadata only — use read_file to fetch content.
| Parameter | Type | Description |
|---|---|---|
deploy_id * | string | The deploy_id returned from ship_site (or any patch deploy). |
read_file
Read a single file's contents from a deployed site. Path is relative to the site root (e.g. 'index.html', 'assets/logo.svg').
| Parameter | Type | Description |
|---|---|---|
deploy_id * | string | The deploy_id that contains the file. |
path * | string | Path inside the deploy. No leading slash, no '..'. Examples: 'index.html', 'css/main.css'. |
edit_file
Patch a file on a live deployed site and ship a new patch deploy. The AI decides what to change; the MCP ships the patch. Returns the new deploy_id + preview_url.
| Parameter | Type | Description |
|---|---|---|
deploy_id * | string | The BASE deploy to patch on top of. The new patch deploy will have this as its parent_deploy_id. |
file * | string | Path of the file to create/replace/delete. |
op * | string | create = new file (requires value/content); replace = first match (requires find + value); replace_all = every match (requires find + value); delete = remove file. |
content | string | Alias for value (kept for ergonomics on create). If both given, value wins. |
find | string | For replace/replace_all: the exact substring to find inside the file's current content. |
message | string | Optional human-readable note stored with the patch deploy. |
value | string | For create/replace/replace_all: the new text. |