krexel-mcp

v0.3.2
io.github.Syfer-web/krexel-mcp Checked 21 hours ago Published 4 months ago

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

ParameterTypeDescription
domain *stringCustom domain to attach (e.g. shop.example.com).
folder *stringAbsolute or ~-relative path to the built site directory.
frameworkstringBuild framework hint. Default 'auto' detects from package.json.

list_deploys

List recent deploys from the local Krexel state file. Optionally filter by domain.

ParameterTypeDescription
domainstring
limitnumber

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.

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

ParameterTypeDescription
domain *string
to *stringdeploy_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.

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

ParameterTypeDescription
deploy_id *stringThe 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').

ParameterTypeDescription
deploy_id *stringThe deploy_id that contains the file.
path *stringPath 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.

ParameterTypeDescription
deploy_id *stringThe BASE deploy to patch on top of. The new patch deploy will have this as its parent_deploy_id.
file *stringPath of the file to create/replace/delete.
op *stringcreate = new file (requires value/content); replace = first match (requires find + value); replace_all = every match (requires find + value); delete = remove file.
contentstringAlias for value (kept for ergonomics on create). If both given, value wins.
findstringFor replace/replace_all: the exact substring to find inside the file's current content.
messagestringOptional human-readable note stored with the patch deploy.
valuestringFor create/replace/replace_all: the new text.