impreza-mcp 0.42.0 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +760 -747
- package/dist/server.js +71 -24
- package/dist/server.js.map +1 -1
- package/package.json +63 -63
package/README.md
CHANGED
|
@@ -1,747 +1,760 @@
|
|
|
1
|
-
# impreza-mcp
|
|
2
|
-
|
|
3
|
-
[Model Context Protocol](https://modelcontextprotocol.io) server for
|
|
4
|
-
[Impreza Host](https://imprezahost.com). Lets AI coding tools (Claude
|
|
5
|
-
Code, Cursor, Codex CLI, Continue, Zed, ...) deploy customer-built
|
|
6
|
-
apps to managed Impreza VPSes without leaving the chat.
|
|
7
|
-
|
|
8
|
-
When you say "deploy this for me" to Claude with this MCP server
|
|
9
|
-
loaded, Claude calls `impreza_deploy_custom` directly — packages your
|
|
10
|
-
project, uploads it, builds + runs on your Impreza VPS, and reports
|
|
11
|
-
back the URL.
|
|
12
|
-
|
|
13
|
-
## Deployment progress and agent restarts
|
|
14
|
-
|
|
15
|
-
Compose review and deployment accept
|
|
16
|
-
`context_id` for one retained upload containing local build contexts and runtime
|
|
17
|
-
`env_file`, configs or secrets. The same context must be supplied at review and
|
|
18
|
-
deployment. Runtime files require agent 0.6.11+ with `compose-source-files-v1`.
|
|
19
|
-
|
|
20
|
-
Custom Node server/static deployments
|
|
21
|
-
accept `node_package_manager`, such as `pnpm@10.26.1` or `yarn@4.9.2`, matching the
|
|
22
|
-
project's exact `packageManager` and committed lockfile. Omit for npm. Supported
|
|
23
|
-
versions are standalone pnpm 10–12 and Yarn 4 projects, without combining
|
|
24
|
-
this field with `npm_workspace`. Inspection infers the pin and saved plans retain
|
|
25
|
-
it. See the deployment documentation for supported inputs and limits.
|
|
26
|
-
|
|
27
|
-
Read `last_operation.progress` from `impreza_list_deployments` for the last
|
|
28
|
-
reported step and timestamp. Agent 0.6.6+ saves final results before sending them;
|
|
29
|
-
after restart it resends the same receipt without repeating the deploy.
|
|
30
|
-
Agent 0.6.7+ can verify a completed preparation checkpoint and restore previous
|
|
31
|
-
configuration without replaying the deploy (`recovery=reconciling`). Wait for the
|
|
32
|
-
terminal failure or confirmed cancellation before retrying.
|
|
33
|
-
`recovery=required` means automatic reconciliation could not be verified; contact
|
|
34
|
-
support. Busy builds, missing checkpoints and replacement uncertainty stay blocked. A long-running build can
|
|
35
|
-
continue after the agent exits. Progress is not a live percentage or proof of
|
|
36
|
-
current runtime health. Existing agents update explicitly before the next deploy.
|
|
37
|
-
See [deployment progress](https://docs.imprezahost.com/deployment-progress.html).
|
|
38
|
-
|
|
39
|
-
## Cancel a deployment
|
|
40
|
-
|
|
41
|
-
Use `impreza_cancel_deployment` with the deployment ID and exact
|
|
42
|
-
`last_operation.command_id`. Requires manage permission. Queued cancellation
|
|
43
|
-
is immediate; running preparation needs agent 0.6.5+. Agent 0.6.12+ can interrupt an owned build after the server administrator
|
|
44
|
-
enables controlled builds on supported Ubuntu 24.04 amd64 hosts. Other preparation
|
|
45
|
-
waits for its current step. Confirmation still requires verified cleanup and restored
|
|
46
|
-
configuration. `requested` is not `cancelled`. Replacement/recovery cannot
|
|
47
|
-
be cancelled. Cancelling a tracking Task remains separate.
|
|
48
|
-
Read [the cancellation guide](https://docs.imprezahost.com/deployment-cancellation.html).
|
|
49
|
-
|
|
50
|
-
## Runtime health and deployment operations
|
|
51
|
-
|
|
52
|
-
`impreza_list_deployments` returns `runtime` and `last_operation` separately.
|
|
53
|
-
A failed build can leave the previous application healthy. Read runtime state,
|
|
54
|
-
observation time and reason; old or missing readings remain unknown.
|
|
55
|
-
Running without a confirmed healthcheck is not healthy. This requires agent
|
|
56
|
-
0.6.4+ for observations and does not verify external HTTP/DNS/TLS. Existing
|
|
57
|
-
servers update explicitly. See [runtime health](https://docs.imprezahost.com/runtime-health.html).
|
|
58
|
-
|
|
59
|
-
## Saved project plans and safe retries
|
|
60
|
-
|
|
61
|
-
`impreza_plan_project` also accepts
|
|
62
|
-
`git_url` and an exact 40-character `git_commit` instead of `context_id`.
|
|
63
|
-
Optional `git_username` and `git_token` are used only for the fetch. The server
|
|
64
|
-
captures an immutable retained archive, accounts for its upload quota, and
|
|
65
|
-
returns `source.origin` alongside the archive SHA256. Review those values before
|
|
66
|
-
preparing/applying the saved configuration. Only public-network HTTPS on port
|
|
67
|
-
443 is supported; redirects and submodules are refused. Project code is not
|
|
68
|
-
executed by inspection. These options require the corresponding control-plane
|
|
69
|
-
capabilities; update the local MCP package before using them.
|
|
70
|
-
|
|
71
|
-
Use `impreza_plan_project` with a retained `context_id` to inspect the archive
|
|
72
|
-
inventory and selected configuration files. Choose `project_dir`,
|
|
73
|
-
`dockerfile_path`, a Python `start_command` or `php_document_root` as needed.
|
|
74
|
-
Review the findings and `analysis.deployment_options`.
|
|
75
|
-
|
|
76
|
-
With MCP **0.32.0+**, call `impreza_prepare_project_deployment` with `plan_id`,
|
|
77
|
-
zero-based `option_index`, app name, server and runtime settings. It validates
|
|
78
|
-
and saves the effective configuration without creating an app, job or DNS
|
|
79
|
-
record. Review the returned configuration, then call
|
|
80
|
-
`impreza_apply_project_deployment` with only `execution_id` and
|
|
81
|
-
`configuration_digest`. Later form/request changes cannot override that record.
|
|
82
|
-
|
|
83
|
-
A repeat of the same saved deployment returns its original acceptance receipt,
|
|
84
|
-
including after expiry or app removal. The receipt, app and queue job commit
|
|
85
|
-
together. After an uncertain response, retry the same ID and digest instead of
|
|
86
|
-
preparing another deployment. Acceptance means queued; inspect app status,
|
|
87
|
-
logs and health. This does not restart a failed job or update an existing app.
|
|
88
|
-
|
|
89
|
-
`impreza_list_prepared_deployments` lists the latest 20 saved configurations or
|
|
90
|
-
retrieves one `execution_id`. Environment values are encrypted in the prepared
|
|
91
|
-
record, omitted from review responses and cleared from that record on acceptance;
|
|
92
|
-
the app then uses its normal environment storage. Reviews show variable names.
|
|
93
|
-
Use at most 100 string values, with no system/routing variable overrides.
|
|
94
|
-
|
|
95
|
-
At most 20 pending records per account, valid no longer than the source plan
|
|
96
|
-
and for at most 24 hours. Source, rules, target availability/IP and effective
|
|
97
|
-
settings are rechecked before first apply. There is no domain, port or capacity
|
|
98
|
-
reservation, dependency pinning or build guarantee. DNS is external to the app
|
|
99
|
-
transaction and can remain after an interrupted attempt. Expired pending records
|
|
100
|
-
are removed on the account's next preparation; accepted receipts are retained.
|
|
101
|
-
|
|
102
|
-
Source inspection remains available in MCP 0.31.0+. The older
|
|
103
|
-
`impreza_deploy_project_plan` creates directly from an option and is not
|
|
104
|
-
idempotent. Plan creation requires deploy scope; listing requires read scope;
|
|
105
|
-
preparation/apply require deploy scope. These account-wide tools require
|
|
106
|
-
credentials without resource restrictions. No agent update is needed solely for
|
|
107
|
-
this flow; recipe requirements still apply. See the
|
|
108
|
-
[project plan and review guide](https://docs.imprezahost.com/project-plans.html).
|
|
109
|
-
|
|
110
|
-
## Retained source uploads
|
|
111
|
-
|
|
112
|
-
Use `impreza_upload_context` with `dir` and an optional `label` to upload an immutable
|
|
113
|
-
source version without deploying. The response includes its `context_id`, SHA256,
|
|
114
|
-
size and expiry. List or inspect versions with `impreza_list_contexts`.
|
|
115
|
-
|
|
116
|
-
Create an app with `impreza_deploy_custom`, `mode: "dockerfile"` and `context_id`
|
|
117
|
-
(or deploy a local `dir` directly). Rebuild it with `impreza_redeploy_deployment`
|
|
118
|
-
and optionally another retained `context_id`. The app identity, domain, host port,
|
|
119
|
-
volumes and build recipe stay fixed. The selected source can differ from the
|
|
120
|
-
running release after failure or rollback; inspect deployment history.
|
|
121
|
-
|
|
122
|
-
Sources in use remain available. Unreferenced versions expire seven days after
|
|
123
|
-
upload or their last deployment request, not seven days after detachment. Default
|
|
124
|
-
quotas are 10 unexpired/referenced archives, 300 MiB per account and 100 MiB per
|
|
125
|
-
archive; referenced sources count. Delete an unused version with
|
|
126
|
-
`impreza_delete_context`, `context_id` and `confirm: true` after customer confirmation.
|
|
127
|
-
Metadata requires read scope, upload requires deploy, and deletion requires
|
|
128
|
-
manage. Resource-confined credentials cannot manage account uploads.
|
|
129
|
-
|
|
130
|
-
The packer excludes common dependency/VCS folders, .env and .env.* (except
|
|
131
|
-
example/sample/template files), .npmrc and .pypirc. It does not scan arbitrary
|
|
132
|
-
secrets or interpret .gitignore/.dockerignore; review what you upload. Portal
|
|
133
|
-
archives are sent unchanged. Legacy REST uploads remain temporary unless they
|
|
134
|
-
opt into `retain=true`. Older uploaded-source apps can migrate by selecting a
|
|
135
|
-
fresh retained context on redeploy. These MCP tools require 0.22.0+; no agent
|
|
136
|
-
update is needed solely for source retention. See the
|
|
137
|
-
[source upload guide](https://docs.imprezahost.com/source-uploads.html).
|
|
138
|
-
|
|
139
|
-
## Node.js npm builds
|
|
140
|
-
|
|
141
|
-
Deploy an independent npm HTTP application without a repository Dockerfile using
|
|
142
|
-
`impreza_deploy_custom` with `mode: "dockerfile"`, `build_strategy: "node_npm"`,
|
|
143
|
-
`git_url` (or local `dir`), and `target_port` (usually 3000).
|
|
144
|
-
The API generates a Node 24 recipe: npm ci, optional build script, production
|
|
145
|
-
pruning and npm start as a non-root user. The selected project folder must contain package.json, package-lock.json
|
|
146
|
-
and a production start script. Docker Compose 2.17+ and BuildKit
|
|
147
|
-
must be available on the server. Select npm workspaces explicitly with
|
|
148
|
-
`npm_workspace`. Use `build_secrets` for named credentials and the `npmrc` secret
|
|
149
|
-
for private npm installation; agent 0.6.11+ is required. The app must listen on 0.0.0.0 and the
|
|
150
|
-
configured port. Keep runtime PORT consistent with that port.
|
|
151
|
-
|
|
152
|
-
Git redeploys and previews reuse the recipe snapshot. Retained uploaded sources
|
|
153
|
-
support reuse and source-version selection; older temporary uploads remain single-use. The recipe excludes .git, node_modules, .env,
|
|
154
|
-
.env.* and .npmrc from the source copy; this does not scan arbitrary secrets.
|
|
155
|
-
Keep credentials out of source code. The HTTP startup probe accepts responses
|
|
156
|
-
below 500 at / and is not a functional application test.
|
|
157
|
-
|
|
158
|
-
## Public build variables
|
|
159
|
-
|
|
160
|
-
Required healthy start: opt in with require_healthy_start=true, an explicit healthcheck_path and build_strategy=node_npm. In the portal, enable Require a healthy start. Agent 0.6.3 or newer must be reported in Servers; update it explicitly and wait for the next heartbeat. startup_timeout_seconds accepts an integer from 30 to 600, default 60. The budget starts after containers are created and includes the stable health observation; Git fetch, dependency/image builds and recovery have separate time limits. Every running service must report Docker healthy and at least one serving container must exist. HTTP redirects, authentication errors and timeouts do not pass the configured 2xx probe. When the first install fails, its containers are removed and persistent volumes are preserved; the failure includes diagnostic logs. A failed replacement recovers a verified healthy previous release when available. Recovery and manual rollback use the saved release startup policy, so a slow healthy release retains its original deadline. Failure recovery does not undo database writes or mutable data. The control plane refuses incompatible agents at creation, never dispatches the policy without startup-health-v1 support in the current poll, and accepts success only with a matching health confirmation. Previews inherit the policy; redeploy keeps the snapshot. Deployment reads expose startup_health. Choose a new deployment to change the saved policy. Omission or false preserves legacy behavior; a startup timeout requires the option enabled. The public option is for generated Node builds. This does not provide zero-downtime switching or continuous automatic rollback after startup. Local MCP input support requires 0.20.0+. Existing agents update only when the customer runs the updater. See https://docs.imprezahost.com/tutorials/agent-apps-panels.html#required-startup
|
|
161
|
-
|
|
162
|
-
Node health checks: with build_strategy=node_npm, optionally set healthcheck_path (for example /health or /api/ready), or fill Health check path in the portal. The generated Docker health check sends HTTP GET to 127.0.0.1 on target_port inside the container and requires status 200-299; it does not follow redirects or send credentials. The route must work without login and should report the dependencies your app needs to serve requests. Use / or a path of at most 200 ASCII characters; segments start with a letter, digit, underscore or hyphen and may then include dots or tildes. A trailing slash is allowed. URLs, query strings, fragments, percent escapes, spaces, parent segments and repeated slashes are refused. Omit the field (leave it blank in the portal) to keep the legacy / probe accepting statuses below 500; explicitly setting / requires 2xx. Existing deployment snapshots remain unchanged. The saved healthcheck_path is returned by deployment reads, inherited by new previews and retained on redeploy; changing it requires a new deployment. Static sites keep their index.html probe; custom Dockerfiles define their own HEALTHCHECK. The probe runs every 5 seconds with a 2-second request timeout. With required startup disabled, agents 0.6.2 and later observe startup for up to 60 seconds: a failed replacement recovers a verified healthy previous release when one exists. Without that recovery target, a first install can still complete with a startup warning, so inspect health and logs before treating it as ready. This default policy does not provide continuous rollback, zero-downtime routing or external uptime checks. To enforce a startup deadline, enable required healthy startup with agent 0.6.3+. Local MCP inputs require 0.19.0+; healthcheck_path alone needs no agent update beyond 0.6.2.
|
|
163
|
-
|
|
164
|
-
Public build settings: generated node_npm and node_npm_static recipes accept public_build_vars, an object of string values available only to npm run build (including its prebuild/postbuild scripts). For example, {"VITE_API_URL":"https://api.example.com"} lets Vite compile a public API URL into the site. Names must start with VITE_, NEXT_PUBLIC_ or PUBLIC_, contain only uppercase letters, digits and underscores, and be at most 128 characters. Limits: 20 entries, 4096 UTF-8 bytes per value and 16384 bytes for names plus values. Empty strings are preserved; NUL is refused. Values are literal data, without shell or variable expansion. The portal exposes Public build variables as KEY=value lines; do not add surrounding quotes, which would become part of the value. These values are public and may appear in bundles, image metadata and logs: never send passwords, tokens or secrets. They are not supplied to npm ci or automatically added to runtime variables. Runtime vars still configure the running container and do not rewrite compiled browser files. Settings are saved at creation, exposed on deployment reads, inherited by new previews and reused on redeploy. Preview runtime inheritance/overrides do not change this build snapshot; create a separate deployment for different public build values. Existing snapshots default to no public build values. Use build_secrets for supported build credentials with agent 0.6.11+; unsupported build settings require a custom Dockerfile. Local MCP requires 0.18.0+; no agent update is required beyond the existing build executor.
|
|
165
|
-
|
|
166
|
-
See the [build configuration guide](https://docs.imprezahost.com/tutorials/agent-apps-panels.html#public-build-settings).
|
|
167
|
-
|
|
168
|
-
## Apps in project subfolders
|
|
169
|
-
|
|
170
|
-
Deploy an independent npm app from a subfolder: set project_dir (default .) with node_npm or node_npm_static, or choose Project folder in the portal. For example, apps/site must contain its own package.json and matching package-lock.json; static_output_dir is relative to that folder. Only the selected folder is copied into /app for npm installation and builds. The repository/upload remains the Docker build context, so its root .dockerignore still applies. Paths allow up to 120 characters and five non-hidden segments; parent, node_modules and symlink components are refused. Missing folders or failed builds retain the previous healthy runtime. The project_dir value is returned by deployment reads, saved at creation and inherited by new previews; redeploy reuses the saved recipe. Existing snapshots default to .; changing the folder requires a new deployment. This supports independent apps in one repository, not shared workspaces or dependencies outside the folder; use a custom Dockerfile for those. The analyzer does not discover subfolders: supply the selected app metadata and review Project folder yourself. Local MCP requires 0.17.0+; no agent upgrade is required beyond the existing build executor.
|
|
171
|
-
|
|
172
|
-
See the [project folder guide](https://docs.imprezahost.com/tutorials/agent-apps-panels.html#project-folder).
|
|
173
|
-
|
|
174
|
-
## Import a Compose stack
|
|
175
|
-
|
|
176
|
-
Use `impreza_prepare_compose` with `compose_yaml`, then explicitly select
|
|
177
|
-
`web_service` and the integer `target_port`. Review services, persistent
|
|
178
|
-
volumes, required variables, changes and blockers before deploying with
|
|
179
|
-
`impreza_deploy_custom`, `mode: "compose"`, the same YAML/service/port and
|
|
180
|
-
`compose_review_id` set to the returned `analysis_id`.
|
|
181
|
-
|
|
182
|
-
Supports self-contained public-image stacks with up to 12 services, private
|
|
183
|
-
bridge networks, local named volumes and service dependencies. Original host
|
|
184
|
-
port bindings are removed; only the selected HTTP service joins the proxy and
|
|
185
|
-
receives a managed loopback port. Container and volume names become specific
|
|
186
|
-
to the deployment. Declare CPU/memory limits per service in YAML.
|
|
187
|
-
|
|
188
|
-
The review does not fetch images, execute code or reserve resources. Local build
|
|
189
|
-
contexts and auxiliary files require the same retained context_id at review and
|
|
190
|
-
deploy. Runtime env_file accepts literal assignments only, without interpolation
|
|
191
|
-
or inherited bare keys. Aliases, profiles, host privileges and external resources
|
|
192
|
-
are outside this import subset. Reference uppercase variables instead of
|
|
193
|
-
embedding secrets. Runtime values must be single-line strings up to 4 KiB,
|
|
194
|
-
without surrounding whitespace, quotes, backslashes, dollar signs or space
|
|
195
|
-
followed by #. Variables supply explicit references, not every service's
|
|
196
|
-
environment. Required values are checked at creation, editing and redeploy.
|
|
197
|
-
|
|
198
|
-
The imported source is saved as a manifest. Redeploy reuses it and the named
|
|
199
|
-
data; changing the source/topology requires a new deployment. Failure recovery
|
|
200
|
-
uses the existing agent policy and does not undo database writes. Local MCP
|
|
201
|
-
support for public-image stacks requires 0.21.0+. Retained build/runtime sources
|
|
202
|
-
require MCP 0.34.0+ and agent 0.6.11+.
|
|
203
|
-
See the [Compose import guide](https://docs.imprezahost.com/compose-import.html).
|
|
204
|
-
|
|
205
|
-
## Prepare project configuration
|
|
206
|
-
|
|
207
|
-
Use `impreza_prepare_project` with `package_json`, `dockerfile`, and optional
|
|
208
|
-
`dockerfile_path` before deploying. It returns framework hints, available build
|
|
209
|
-
and start commands, explicit ports from the final Dockerfile stage, and findings
|
|
210
|
-
to review. Each file is limited to 32 KiB. Review files for credentials before
|
|
211
|
-
sending; never submit .env files or secrets.
|
|
212
|
-
|
|
213
|
-
This is advisory analysis of supplied text. It does not fetch a repository,
|
|
214
|
-
execute code, generate a Dockerfile or deploy resources. Git deploys use a Dockerfile by default; supported npm projects can opt into the Node recipe. The analysis ID identifies metadata, not an executable plan.
|
|
215
|
-
Requires an API exposing /v1/platform/deployments/custom/prepare.
|
|
216
|
-
|
|
217
|
-
## Why this host and not a mainstream one
|
|
218
|
-
|
|
219
|
-
Any provider can run your app. This one is built so an **agent can obtain and
|
|
220
|
-
operate infrastructure that is not tied to your identity**, end to end, without
|
|
221
|
-
you opening a browser:
|
|
222
|
-
|
|
223
|
-
- **No KYC, and no email address, to open an account.** An account is a
|
|
224
|
-
generated client ID plus a recovery token. No documents, no selfie, no phone
|
|
225
|
-
number.
|
|
226
|
-
- **Funded in cryptocurrency.** `impreza_topup` accepts BTC, XMR, USDT and TRX,
|
|
227
|
-
and `impreza_order_vps` buys the server from that balance. The agent can go
|
|
228
|
-
from "I need a server" to a running deployment without a card.
|
|
229
|
-
- **Offshore and onshore jurisdictions side by side**, chosen per project
|
|
230
|
-
rather than per account.
|
|
231
|
-
- **Tor is a deployment target, not an add-on.** `impreza_add_onion` gives a
|
|
232
|
-
deployment a `.onion` address in one call, so an agent can publish a hidden
|
|
233
|
-
service the same way it publishes a normal site. `impreza_onion_auth_*`
|
|
234
|
-
manage Tor v3 restricted discovery (client authorization): private keys
|
|
235
|
-
never leave the customer's Tor client unless they ask the server to
|
|
236
|
-
generate a keypair — and then the private key is shown once, never stored.
|
|
237
|
-
- **No API key in your config.** The hosted connector authenticates over OAuth.
|
|
238
|
-
|
|
239
|
-
If none of that matters for your project, a mainstream provider is a perfectly
|
|
240
|
-
good choice and usually cheaper to start with. This exists for the projects
|
|
241
|
-
where it does matter: research and journalism under pressure, censorship
|
|
242
|
-
circumvention, security work, and anything that should not be one support
|
|
243
|
-
ticket away from being linked to a legal name.
|
|
244
|
-
|
|
245
|
-
## Retained-release rollback
|
|
246
|
-
|
|
247
|
-
The source tree adds `impreza_rollback_deployment`. Read a deployment's
|
|
248
|
-
`release_history` through `impreza_api_call` at
|
|
249
|
-
`/platform/deployments/{id}`, then choose a `rel_...` entry with
|
|
250
|
-
`rollback_supported: true`.
|
|
251
|
-
|
|
252
|
-
Explain the selected release and possible interruption to the customer before
|
|
253
|
-
calling the tool with `deployment_id`, `target_version` and `confirm: true`.
|
|
254
|
-
The hosted connector uses its two-call `confirm_token` flow instead.
|
|
255
|
-
The operation requires `manage` scope and a compatible API and agent.
|
|
256
|
-
|
|
257
|
-
A historical release may no longer be retained. The agent checks local images
|
|
258
|
-
and unchanged ports, storage and routing before replacing containers. It saves
|
|
259
|
-
the current healthy runtime and attempts recovery if the selected release fails
|
|
260
|
-
startup. Database contents and mutable data are not reverted. A queued response
|
|
261
|
-
does not confirm restoration; check deployment history for the result.
|
|
262
|
-
|
|
263
|
-
Available in impreza-mcp 0.12.0. Requires a compatible API and agent.
|
|
264
|
-
|
|
265
|
-
## Static npm sites
|
|
266
|
-
|
|
267
|
-
Static npm sites: choose build_strategy=node_npm_static with a Git/context source (mode=dockerfile), or Static site + npm in the portal. Requires an independent npm package in the selected project folder, matching package-lock.json and a build script producing index.html in the selected output folder. Node 24 installs dependencies and runs the build; unprivileged Nginx serves only the selected output folder with configurable SPA fallback. No start script is required. Default target_port is 8080. Compose 2.17+ and BuildKit required. No SSR or server functions. Explicit npm_workspace and build_secrets are supported with their documented source and agent requirements. Runtime variables (including VITE_* and PORT) do not rewrite static bundles or change the configured Nginx port. Use static_output_dir (default dist) to choose a relative output folder containing index.html, and static_spa (boolean, default true) to choose SPA fallback or 404 for unknown routes. The portal exposes both fields. Paths are limited to 120 characters and five segments, without hidden, parent or node_modules segments; symlinks in the output or its parent path are refused. These settings are chosen at creation, stored in the recipe snapshot, exposed as static_options and carried to new previews. Redeploy reuses the saved recipe; changing these settings on existing deployments requires creating a new deployment. Existing snapshots keep their original recipe. Local MCP option inputs require 0.16.0+. Use public_build_vars for supported public settings; other build-time configuration requires a custom Dockerfile. Source .env/.env.*/.npmrc/.git/node_modules are excluded; review all generated files because the output folder is public. Missing index.html and symlink output fail the build. Existing preview/redeploy snapshots preserve the strategy. Local MCP requires 0.15.0+; no agent upgrade is needed beyond the existing build executor. The analyzer returns static_npm_recipe and conditional deployment_options; metadata is not proof of a static, working build.
|
|
268
|
-
|
|
269
|
-
## Status
|
|
270
|
-
|
|
271
|
-
**Package version: 0.38.0.** The tool catalog covers app deployment plus account +
|
|
272
|
-
crypto balance, catalog + ordering, domains/DNS + registration, invoices, VPS
|
|
273
|
-
lifecycle with snapshots and backups, dedicated / bare-metal servers, plan
|
|
274
|
-
upgrades, and Titan / Google Workspace mailboxes — with a setup wizard that
|
|
275
|
-
generates ready-to-paste config snippets for 5 AI tools.
|
|
276
|
-
|
|
277
|
-
On top of that, everything an app needs after it is running: backup and
|
|
278
|
-
restore into the customer's **own** S3 bucket, a timer on an app with its
|
|
279
|
-
output kept, outbound webhooks so you stop polling, and reading the app's own
|
|
280
|
-
files to find out why it behaves as if it were not configured.
|
|
281
|
-
|
|
282
|
-
On top of that, everything an app needs after it is running: backup and
|
|
283
|
-
restore into the customer's **own** S3 bucket, a timer on an app with its
|
|
284
|
-
output kept, outbound webhooks so you stop polling, reading the app's own
|
|
285
|
-
files, and running the app's own command line.
|
|
286
|
-
|
|
287
|
-
The local (`npx`) server and the hosted OAuth connector expose the **same 116
|
|
288
|
-
tools**, so nothing is lost by picking either path.
|
|
289
|
-
|
|
290
|
-
### New in 0.11.0
|
|
291
|
-
|
|
292
|
-
**Run the app's own command line.** WP-CLI for WordPress, `occ` for
|
|
293
|
-
Nextcloud, `gitea admin` for Gitea, and the database client for a dump —
|
|
294
|
-
`impreza_app_cli` to run, `impreza_get_cli_run` to collect the output. Call
|
|
295
|
-
`impreza_get_cli_run` with no `run_id` first: it names the command lines the
|
|
296
|
-
app has, says what each is for, and gives one example that works.
|
|
297
|
-
|
|
298
|
-
- **No docker socket, and that is measured rather than claimed.** The command
|
|
299
|
-
runs in a separate container built from the app's own image, joined to the
|
|
300
|
-
app's own network, with its data mounted — the shape the official CLI
|
|
301
|
-
images are designed for. `cap_drop: ALL`, and no new privilege on the
|
|
302
|
-
machine.
|
|
303
|
-
- **Arguments are a list, never a string.** Each element becomes one `argv`
|
|
304
|
-
entry through `execve`, so nothing is split, globbed or substituted:
|
|
305
|
-
quoting is not your problem, and a `$` or a `;` inside a value is just
|
|
306
|
-
that. Verified against a live site — `option update blogname
|
|
307
|
-
'dollars $HOME and a ; semicolon'` reads back exactly as sent.
|
|
308
|
-
- **Destructive, and treated as such.** A command line can do anything the
|
|
309
|
-
app itself can, so it needs the `manage` scope and is confirmation-gated.
|
|
310
|
-
Arguments are free rather than allowlisted: that is the same ceiling
|
|
311
|
-
`uninstall` with `purge_data` already sits at, and a list of `wp`
|
|
312
|
-
subcommands would age badly while protecting nothing the confirmation gate
|
|
313
|
-
does not.
|
|
314
|
-
- **The CLI version follows the app.** Where the command line is the app's
|
|
315
|
-
own image it is taken from that deployment, so a catalog bump carries it —
|
|
316
|
-
running `occ` from an older Nextcloud against a newer database is how a
|
|
317
|
-
maintenance command corrupts an install.
|
|
318
|
-
|
|
319
|
-
Custom deployments have no command line here: it is your own image and the
|
|
320
|
-
platform cannot know what it ships. Use a scheduled task of kind `command`
|
|
321
|
-
for those.
|
|
322
|
-
|
|
323
|
-
### New in 0.10.0
|
|
324
|
-
|
|
325
|
-
**Look inside the app's own files.** `impreza_get_logs` reads stdout, which
|
|
326
|
-
cannot answer the question a deploy that came up wrong actually raises: did
|
|
327
|
-
that variable reach the config file? Two tools now do —
|
|
328
|
-
`impreza_inspect_app` to ask and `impreza_get_app_read` to collect the answer.
|
|
329
|
-
|
|
330
|
-
- **Four actions, and no fifth:** `list` a directory, `read` a file (capped at
|
|
331
|
-
256 KB), `tail` its last lines, `grep` under a path with an extended regular
|
|
332
|
-
expression. There is no command string in the interface, and therefore no
|
|
333
|
-
shell.
|
|
334
|
-
- **Read-only by construction.** A one-shot container mounts the app's storage
|
|
335
|
-
read-only — the same mechanism the backup already uses — with no docker
|
|
336
|
-
socket and no write capability. So it also works on an app that is `failed`
|
|
337
|
-
and will not start, which is when it is wanted most.
|
|
338
|
-
- **Only the app's own storage:** `data`, or one of the named volumes the app's
|
|
339
|
-
manifest declares (a WordPress exposes `data` and `wp_db`, so its database
|
|
340
|
-
files are readable too). Call `impreza_get_app_read` with no `read_id` to
|
|
341
|
-
see the list for a given app.
|
|
342
|
-
- **What comes back is untrusted and often secret** — an app's config file is
|
|
343
|
-
where its database password lives. It reaches you and nothing else: the
|
|
344
|
-
field is on our request log's deny list, and the record is deleted within a
|
|
345
|
-
day.
|
|
346
|
-
|
|
347
|
-
### Since 0.6.1
|
|
348
|
-
|
|
349
|
-
Three releases the npm page never described, each one a whole capability:
|
|
350
|
-
|
|
351
|
-
- **0.7.0 — backup and restore** of a deployment's data into the account's own
|
|
352
|
-
Impreza S3 bucket, with a per-chunk SHA-256 manifest that sits beside the
|
|
353
|
-
data so the copy stays verifiable with the customer's own credentials and no
|
|
354
|
-
call to us. Plus a schedule (daily by default, keeping 3), and a restore
|
|
355
|
-
that can land in a *different* app, which is how an app moves between
|
|
356
|
-
servers.
|
|
357
|
-
- **0.8.0 — scheduled tasks:** a timer on an app with the output kept, for the
|
|
358
|
-
apps that need one to behave correctly (Nextcloud's cron, WordPress's
|
|
359
|
-
`wp-cron` on a site with no visitors).
|
|
360
|
-
- **0.9.0 — outbound webhooks:** subscribe to deploy, backup and VPS events
|
|
361
|
-
and stop polling, with HMAC-signed delivery and a delivery log.
|
|
362
|
-
|
|
363
|
-
### New in 0.6.1
|
|
364
|
-
|
|
365
|
-
**`tools/list` now reflects what your account actually owns.** About a third of
|
|
366
|
-
the tools only make sense if you have the machine behind them — VPS power
|
|
367
|
-
controls with no VPS can only ever answer "not found" — so those are left out
|
|
368
|
-
of the listing until you own one. Typical accounts see around 70 tools instead
|
|
369
|
-
of 97, which is roughly six thousand fewer tokens of context spent before you
|
|
370
|
-
ask anything.
|
|
371
|
-
|
|
372
|
-
Three things worth knowing about how it behaves:
|
|
373
|
-
|
|
374
|
-
- **The purchase path is never filtered.** An account that owns nothing is the
|
|
375
|
-
one that needs to buy something, so ordering, top-up, invoices and the
|
|
376
|
-
catalogue are always listed.
|
|
377
|
-
- **Buying something grows the list mid-session.** The server sends
|
|
378
|
-
`notifications/tools/list_changed` on the same response as the order, so a
|
|
379
|
-
client that honours it picks up the new tools without reconnecting.
|
|
380
|
-
- **It fails open.** If this server cannot reach the API to ask, it lists
|
|
381
|
-
everything rather than guess.
|
|
382
|
-
|
|
383
|
-
Hiding a tool is not an authorization boundary — the API still refuses anything
|
|
384
|
-
your account does not own. This only stops the listing from carrying tools that
|
|
385
|
-
could never work for you.
|
|
386
|
-
|
|
387
|
-
### New in 0.6.0
|
|
388
|
-
|
|
389
|
-
Four things that only make sense on a host built for anonymity:
|
|
390
|
-
|
|
391
|
-
- **Dark previews** — push a branch, get a preview on its own ephemeral Tor
|
|
392
|
-
`.onion`. Every other platform's preview URL puts your branch name into
|
|
393
|
-
public DNS and into a permanent Certificate Transparency log; branch names
|
|
394
|
-
carry ticket ids, customer names and unshipped features. This one creates
|
|
395
|
-
neither record, and destroys its keys when the branch is deleted or the TTL
|
|
396
|
-
runs out. `impreza_configure_previews`, `impreza_list_previews`,
|
|
397
|
-
`impreza_retire_preview`.
|
|
398
|
-
- **Agent sub-credentials** — mint a narrower credential from the one you hold
|
|
399
|
-
and hand it to a subtask: one deployment, one hour, no spending. A child can
|
|
400
|
-
never exceed its parent on any axis, and revoking a credential revokes
|
|
401
|
-
everything it minted, however deep. `impreza_mint_subcredential`,
|
|
402
|
-
`impreza_list_credentials`, `impreza_revoke_credential`,
|
|
403
|
-
`impreza_agent_activity`.
|
|
404
|
-
- **A privacy report you can check** — `impreza_privacy_report` returns every
|
|
405
|
-
field we store about your account, what it is for, how long it survives and
|
|
406
|
-
who else sees it, and then measures our own retention against the oldest
|
|
407
|
-
record that actually survived. Counts and date ranges, never contents.
|
|
408
|
-
- **Ask before you guess** — search our docs, validate a deployment manifest
|
|
409
|
-
before deploying it (including a privacy lint for third-party CDNs, public
|
|
410
|
-
DNS resolvers and leaked secrets), or run a diagnosis when something is
|
|
411
|
-
wrong. `impreza_search_docs`, `impreza_validate_manifest`, `impreza_doctor`.
|
|
412
|
-
|
|
413
|
-
Plus the Tasks extension, so long operations report completion instead of
|
|
414
|
-
leaving you to poll, and three MCP Apps panels — a payment card, a server card
|
|
415
|
-
and a deploy wizard — that render inside clients which support them.
|
|
416
|
-
|
|
417
|
-
The table below is a **selection**, not the full list — it covers the tools
|
|
418
|
-
most people reach for first. Your client's own tool listing is authoritative,
|
|
419
|
-
and `impreza_api_search` finds anything not named here.
|
|
420
|
-
|
|
421
|
-
| Tool | Wraps |
|
|
422
|
-
|------|-------|
|
|
423
|
-
| **Apps & deployments** | |
|
|
424
|
-
| `impreza_list_servers` | `GET /v1/platform/servers` |
|
|
425
|
-
| `impreza_list_apps` | `GET /v1/platform/apps` |
|
|
426
|
-
| `impreza_list_deployments` | `GET /v1/platform/deployments` + `/custom` (merged) |
|
|
427
|
-
| `impreza_upload_context` | `POST /v1/platform/deployments/custom/contexts?retain=true` |
|
|
428
|
-
| `impreza_list_contexts` | `GET /v1/platform/deployments/custom/contexts[/{context_id}]` |
|
|
429
|
-
| `impreza_delete_context` | `DELETE /v1/platform/deployments/custom/contexts/{context_id}` |
|
|
430
|
-
| `impreza_deploy_custom` | `POST /v1/platform/deployments/custom` (3 modes) |
|
|
431
|
-
| `impreza_deploy_catalog_app` | `POST /v1/platform/deployments` |
|
|
432
|
-
| `impreza_uninstall_deployment` | `POST .../uninstall` |
|
|
433
|
-
| `impreza_get_logs` | `POST .../logs` (sync tail, last N lines) |
|
|
434
|
-
| `impreza_restart_deployment` | `POST .../restart` |
|
|
435
|
-
| `impreza_redeploy_deployment` | `POST .../custom/{id}/redeploy` (in-place rebuild, same domain) |
|
|
436
|
-
| `impreza_add_onion` | `POST .../onion/add` |
|
|
437
|
-
| `impreza_set_onion_profile` | `POST .../onion/profile` (`standard` / `hardened` / `max` hardening tiers) |
|
|
438
|
-
| `impreza_export_onion_key` | `POST .../onion/export` (sealed to your X25519 key; plaintext never transits) |
|
|
439
|
-
| `impreza_fetch_onion_key_export` | `GET .../onion/export/{command_id}` (read-once — the blob is burned) |
|
|
440
|
-
| `impreza_rotate_onion_key` | `POST .../onion/rotate` (new .onion; the old address dies) |
|
|
441
|
-
| `impreza_onion_auth_list` | `GET .../onion/clients` |
|
|
442
|
-
| `impreza_onion_auth_add` | `POST .../onion/clients` (`pubkey`, or `generate:true` → `private_key` shown once) |
|
|
443
|
-
| `impreza_onion_auth_revoke` | `DELETE .../onion/clients/{name}` |
|
|
444
|
-
| `impreza_change_domain` | `POST .../domain` |
|
|
445
|
-
| `impreza_git_webhook_status` | `GET .../custom/{id}/git-webhook` |
|
|
446
|
-
| `impreza_git_webhook_connect` | `POST .../custom/{id}/git-webhook/connect` |
|
|
447
|
-
| `impreza_git_webhook_disconnect` | `POST .../custom/{id}/git-webhook/disconnect` |
|
|
448
|
-
| **Account & balance** | |
|
|
449
|
-
| `impreza_account_info` | `GET /v1/account` |
|
|
450
|
-
| `impreza_list_services` | `GET /v1/account/services` |
|
|
451
|
-
| `impreza_topup` | `POST /v1/account/topup` — top up in BTC / XMR / USDT / TRX |
|
|
452
|
-
| `impreza_topup_status` | `GET /v1/account/topup/{invoice_id}` |
|
|
453
|
-
| `impreza_topup_payment` | `GET /v1/account/topup/{invoice_id}/payment` — crypto address + amount to pay |
|
|
454
|
-
| **Catalog & ordering** | |
|
|
455
|
-
| `impreza_list_products` | `GET /v1/products` —
|
|
456
|
-
| `
|
|
457
|
-
|
|
|
458
|
-
|
|
|
459
|
-
| `
|
|
460
|
-
| `
|
|
461
|
-
| `
|
|
462
|
-
| `
|
|
463
|
-
| `
|
|
464
|
-
| `
|
|
465
|
-
|
|
|
466
|
-
|
|
|
467
|
-
| `
|
|
468
|
-
| `
|
|
469
|
-
| `
|
|
470
|
-
| `
|
|
471
|
-
| `
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
"
|
|
518
|
-
"
|
|
519
|
-
|
|
520
|
-
"
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
"
|
|
541
|
-
"
|
|
542
|
-
"
|
|
543
|
-
|
|
544
|
-
"
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
"
|
|
562
|
-
"
|
|
563
|
-
|
|
564
|
-
"
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
>
|
|
578
|
-
>
|
|
579
|
-
>
|
|
580
|
-
>
|
|
581
|
-
>
|
|
582
|
-
>
|
|
583
|
-
>
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
"
|
|
611
|
-
"
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
npm
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
1
|
+
# impreza-mcp
|
|
2
|
+
|
|
3
|
+
[Model Context Protocol](https://modelcontextprotocol.io) server for
|
|
4
|
+
[Impreza Host](https://imprezahost.com). Lets AI coding tools (Claude
|
|
5
|
+
Code, Cursor, Codex CLI, Continue, Zed, ...) deploy customer-built
|
|
6
|
+
apps to managed Impreza VPSes without leaving the chat.
|
|
7
|
+
|
|
8
|
+
When you say "deploy this for me" to Claude with this MCP server
|
|
9
|
+
loaded, Claude calls `impreza_deploy_custom` directly — packages your
|
|
10
|
+
project, uploads it, builds + runs on your Impreza VPS, and reports
|
|
11
|
+
back the URL.
|
|
12
|
+
|
|
13
|
+
## Deployment progress and agent restarts
|
|
14
|
+
|
|
15
|
+
Compose review and deployment accept
|
|
16
|
+
`context_id` for one retained upload containing local build contexts and runtime
|
|
17
|
+
`env_file`, configs or secrets. The same context must be supplied at review and
|
|
18
|
+
deployment. Runtime files require agent 0.6.11+ with `compose-source-files-v1`.
|
|
19
|
+
|
|
20
|
+
Custom Node server/static deployments
|
|
21
|
+
accept `node_package_manager`, such as `pnpm@10.26.1` or `yarn@4.9.2`, matching the
|
|
22
|
+
project's exact `packageManager` and committed lockfile. Omit for npm. Supported
|
|
23
|
+
versions are standalone pnpm 10–12 and Yarn 4 projects, without combining
|
|
24
|
+
this field with `npm_workspace`. Inspection infers the pin and saved plans retain
|
|
25
|
+
it. See the deployment documentation for supported inputs and limits.
|
|
26
|
+
|
|
27
|
+
Read `last_operation.progress` from `impreza_list_deployments` for the last
|
|
28
|
+
reported step and timestamp. Agent 0.6.6+ saves final results before sending them;
|
|
29
|
+
after restart it resends the same receipt without repeating the deploy.
|
|
30
|
+
Agent 0.6.7+ can verify a completed preparation checkpoint and restore previous
|
|
31
|
+
configuration without replaying the deploy (`recovery=reconciling`). Wait for the
|
|
32
|
+
terminal failure or confirmed cancellation before retrying.
|
|
33
|
+
`recovery=required` means automatic reconciliation could not be verified; contact
|
|
34
|
+
support. Busy builds, missing checkpoints and replacement uncertainty stay blocked. A long-running build can
|
|
35
|
+
continue after the agent exits. Progress is not a live percentage or proof of
|
|
36
|
+
current runtime health. Existing agents update explicitly before the next deploy.
|
|
37
|
+
See [deployment progress](https://docs.imprezahost.com/deployment-progress.html).
|
|
38
|
+
|
|
39
|
+
## Cancel a deployment
|
|
40
|
+
|
|
41
|
+
Use `impreza_cancel_deployment` with the deployment ID and exact
|
|
42
|
+
`last_operation.command_id`. Requires manage permission. Queued cancellation
|
|
43
|
+
is immediate; running preparation needs agent 0.6.5+. Agent 0.6.12+ can interrupt an owned build after the server administrator
|
|
44
|
+
enables controlled builds on supported Ubuntu 24.04 amd64 hosts. Other preparation
|
|
45
|
+
waits for its current step. Confirmation still requires verified cleanup and restored
|
|
46
|
+
configuration. `requested` is not `cancelled`. Replacement/recovery cannot
|
|
47
|
+
be cancelled. Cancelling a tracking Task remains separate.
|
|
48
|
+
Read [the cancellation guide](https://docs.imprezahost.com/deployment-cancellation.html).
|
|
49
|
+
|
|
50
|
+
## Runtime health and deployment operations
|
|
51
|
+
|
|
52
|
+
`impreza_list_deployments` returns `runtime` and `last_operation` separately.
|
|
53
|
+
A failed build can leave the previous application healthy. Read runtime state,
|
|
54
|
+
observation time and reason; old or missing readings remain unknown.
|
|
55
|
+
Running without a confirmed healthcheck is not healthy. This requires agent
|
|
56
|
+
0.6.4+ for observations and does not verify external HTTP/DNS/TLS. Existing
|
|
57
|
+
servers update explicitly. See [runtime health](https://docs.imprezahost.com/runtime-health.html).
|
|
58
|
+
|
|
59
|
+
## Saved project plans and safe retries
|
|
60
|
+
|
|
61
|
+
`impreza_plan_project` also accepts
|
|
62
|
+
`git_url` and an exact 40-character `git_commit` instead of `context_id`.
|
|
63
|
+
Optional `git_username` and `git_token` are used only for the fetch. The server
|
|
64
|
+
captures an immutable retained archive, accounts for its upload quota, and
|
|
65
|
+
returns `source.origin` alongside the archive SHA256. Review those values before
|
|
66
|
+
preparing/applying the saved configuration. Only public-network HTTPS on port
|
|
67
|
+
443 is supported; redirects and submodules are refused. Project code is not
|
|
68
|
+
executed by inspection. These options require the corresponding control-plane
|
|
69
|
+
capabilities; update the local MCP package before using them.
|
|
70
|
+
|
|
71
|
+
Use `impreza_plan_project` with a retained `context_id` to inspect the archive
|
|
72
|
+
inventory and selected configuration files. Choose `project_dir`,
|
|
73
|
+
`dockerfile_path`, a Python `start_command` or `php_document_root` as needed.
|
|
74
|
+
Review the findings and `analysis.deployment_options`.
|
|
75
|
+
|
|
76
|
+
With MCP **0.32.0+**, call `impreza_prepare_project_deployment` with `plan_id`,
|
|
77
|
+
zero-based `option_index`, app name, server and runtime settings. It validates
|
|
78
|
+
and saves the effective configuration without creating an app, job or DNS
|
|
79
|
+
record. Review the returned configuration, then call
|
|
80
|
+
`impreza_apply_project_deployment` with only `execution_id` and
|
|
81
|
+
`configuration_digest`. Later form/request changes cannot override that record.
|
|
82
|
+
|
|
83
|
+
A repeat of the same saved deployment returns its original acceptance receipt,
|
|
84
|
+
including after expiry or app removal. The receipt, app and queue job commit
|
|
85
|
+
together. After an uncertain response, retry the same ID and digest instead of
|
|
86
|
+
preparing another deployment. Acceptance means queued; inspect app status,
|
|
87
|
+
logs and health. This does not restart a failed job or update an existing app.
|
|
88
|
+
|
|
89
|
+
`impreza_list_prepared_deployments` lists the latest 20 saved configurations or
|
|
90
|
+
retrieves one `execution_id`. Environment values are encrypted in the prepared
|
|
91
|
+
record, omitted from review responses and cleared from that record on acceptance;
|
|
92
|
+
the app then uses its normal environment storage. Reviews show variable names.
|
|
93
|
+
Use at most 100 string values, with no system/routing variable overrides.
|
|
94
|
+
|
|
95
|
+
At most 20 pending records per account, valid no longer than the source plan
|
|
96
|
+
and for at most 24 hours. Source, rules, target availability/IP and effective
|
|
97
|
+
settings are rechecked before first apply. There is no domain, port or capacity
|
|
98
|
+
reservation, dependency pinning or build guarantee. DNS is external to the app
|
|
99
|
+
transaction and can remain after an interrupted attempt. Expired pending records
|
|
100
|
+
are removed on the account's next preparation; accepted receipts are retained.
|
|
101
|
+
|
|
102
|
+
Source inspection remains available in MCP 0.31.0+. The older
|
|
103
|
+
`impreza_deploy_project_plan` creates directly from an option and is not
|
|
104
|
+
idempotent. Plan creation requires deploy scope; listing requires read scope;
|
|
105
|
+
preparation/apply require deploy scope. These account-wide tools require
|
|
106
|
+
credentials without resource restrictions. No agent update is needed solely for
|
|
107
|
+
this flow; recipe requirements still apply. See the
|
|
108
|
+
[project plan and review guide](https://docs.imprezahost.com/project-plans.html).
|
|
109
|
+
|
|
110
|
+
## Retained source uploads
|
|
111
|
+
|
|
112
|
+
Use `impreza_upload_context` with `dir` and an optional `label` to upload an immutable
|
|
113
|
+
source version without deploying. The response includes its `context_id`, SHA256,
|
|
114
|
+
size and expiry. List or inspect versions with `impreza_list_contexts`.
|
|
115
|
+
|
|
116
|
+
Create an app with `impreza_deploy_custom`, `mode: "dockerfile"` and `context_id`
|
|
117
|
+
(or deploy a local `dir` directly). Rebuild it with `impreza_redeploy_deployment`
|
|
118
|
+
and optionally another retained `context_id`. The app identity, domain, host port,
|
|
119
|
+
volumes and build recipe stay fixed. The selected source can differ from the
|
|
120
|
+
running release after failure or rollback; inspect deployment history.
|
|
121
|
+
|
|
122
|
+
Sources in use remain available. Unreferenced versions expire seven days after
|
|
123
|
+
upload or their last deployment request, not seven days after detachment. Default
|
|
124
|
+
quotas are 10 unexpired/referenced archives, 300 MiB per account and 100 MiB per
|
|
125
|
+
archive; referenced sources count. Delete an unused version with
|
|
126
|
+
`impreza_delete_context`, `context_id` and `confirm: true` after customer confirmation.
|
|
127
|
+
Metadata requires read scope, upload requires deploy, and deletion requires
|
|
128
|
+
manage. Resource-confined credentials cannot manage account uploads.
|
|
129
|
+
|
|
130
|
+
The packer excludes common dependency/VCS folders, .env and .env.* (except
|
|
131
|
+
example/sample/template files), .npmrc and .pypirc. It does not scan arbitrary
|
|
132
|
+
secrets or interpret .gitignore/.dockerignore; review what you upload. Portal
|
|
133
|
+
archives are sent unchanged. Legacy REST uploads remain temporary unless they
|
|
134
|
+
opt into `retain=true`. Older uploaded-source apps can migrate by selecting a
|
|
135
|
+
fresh retained context on redeploy. These MCP tools require 0.22.0+; no agent
|
|
136
|
+
update is needed solely for source retention. See the
|
|
137
|
+
[source upload guide](https://docs.imprezahost.com/source-uploads.html).
|
|
138
|
+
|
|
139
|
+
## Node.js npm builds
|
|
140
|
+
|
|
141
|
+
Deploy an independent npm HTTP application without a repository Dockerfile using
|
|
142
|
+
`impreza_deploy_custom` with `mode: "dockerfile"`, `build_strategy: "node_npm"`,
|
|
143
|
+
`git_url` (or local `dir`), and `target_port` (usually 3000).
|
|
144
|
+
The API generates a Node 24 recipe: npm ci, optional build script, production
|
|
145
|
+
pruning and npm start as a non-root user. The selected project folder must contain package.json, package-lock.json
|
|
146
|
+
and a production start script. Docker Compose 2.17+ and BuildKit
|
|
147
|
+
must be available on the server. Select npm workspaces explicitly with
|
|
148
|
+
`npm_workspace`. Use `build_secrets` for named credentials and the `npmrc` secret
|
|
149
|
+
for private npm installation; agent 0.6.11+ is required. The app must listen on 0.0.0.0 and the
|
|
150
|
+
configured port. Keep runtime PORT consistent with that port.
|
|
151
|
+
|
|
152
|
+
Git redeploys and previews reuse the recipe snapshot. Retained uploaded sources
|
|
153
|
+
support reuse and source-version selection; older temporary uploads remain single-use. The recipe excludes .git, node_modules, .env,
|
|
154
|
+
.env.* and .npmrc from the source copy; this does not scan arbitrary secrets.
|
|
155
|
+
Keep credentials out of source code. The HTTP startup probe accepts responses
|
|
156
|
+
below 500 at / and is not a functional application test.
|
|
157
|
+
|
|
158
|
+
## Public build variables
|
|
159
|
+
|
|
160
|
+
Required healthy start: opt in with require_healthy_start=true, an explicit healthcheck_path and build_strategy=node_npm. In the portal, enable Require a healthy start. Agent 0.6.3 or newer must be reported in Servers; update it explicitly and wait for the next heartbeat. startup_timeout_seconds accepts an integer from 30 to 600, default 60. The budget starts after containers are created and includes the stable health observation; Git fetch, dependency/image builds and recovery have separate time limits. Every running service must report Docker healthy and at least one serving container must exist. HTTP redirects, authentication errors and timeouts do not pass the configured 2xx probe. When the first install fails, its containers are removed and persistent volumes are preserved; the failure includes diagnostic logs. A failed replacement recovers a verified healthy previous release when available. Recovery and manual rollback use the saved release startup policy, so a slow healthy release retains its original deadline. Failure recovery does not undo database writes or mutable data. The control plane refuses incompatible agents at creation, never dispatches the policy without startup-health-v1 support in the current poll, and accepts success only with a matching health confirmation. Previews inherit the policy; redeploy keeps the snapshot. Deployment reads expose startup_health. Choose a new deployment to change the saved policy. Omission or false preserves legacy behavior; a startup timeout requires the option enabled. The public option is for generated Node builds. This does not provide zero-downtime switching or continuous automatic rollback after startup. Local MCP input support requires 0.20.0+. Existing agents update only when the customer runs the updater. See https://docs.imprezahost.com/tutorials/agent-apps-panels.html#required-startup
|
|
161
|
+
|
|
162
|
+
Node health checks: with build_strategy=node_npm, optionally set healthcheck_path (for example /health or /api/ready), or fill Health check path in the portal. The generated Docker health check sends HTTP GET to 127.0.0.1 on target_port inside the container and requires status 200-299; it does not follow redirects or send credentials. The route must work without login and should report the dependencies your app needs to serve requests. Use / or a path of at most 200 ASCII characters; segments start with a letter, digit, underscore or hyphen and may then include dots or tildes. A trailing slash is allowed. URLs, query strings, fragments, percent escapes, spaces, parent segments and repeated slashes are refused. Omit the field (leave it blank in the portal) to keep the legacy / probe accepting statuses below 500; explicitly setting / requires 2xx. Existing deployment snapshots remain unchanged. The saved healthcheck_path is returned by deployment reads, inherited by new previews and retained on redeploy; changing it requires a new deployment. Static sites keep their index.html probe; custom Dockerfiles define their own HEALTHCHECK. The probe runs every 5 seconds with a 2-second request timeout. With required startup disabled, agents 0.6.2 and later observe startup for up to 60 seconds: a failed replacement recovers a verified healthy previous release when one exists. Without that recovery target, a first install can still complete with a startup warning, so inspect health and logs before treating it as ready. This default policy does not provide continuous rollback, zero-downtime routing or external uptime checks. To enforce a startup deadline, enable required healthy startup with agent 0.6.3+. Local MCP inputs require 0.19.0+; healthcheck_path alone needs no agent update beyond 0.6.2.
|
|
163
|
+
|
|
164
|
+
Public build settings: generated node_npm and node_npm_static recipes accept public_build_vars, an object of string values available only to npm run build (including its prebuild/postbuild scripts). For example, {"VITE_API_URL":"https://api.example.com"} lets Vite compile a public API URL into the site. Names must start with VITE_, NEXT_PUBLIC_ or PUBLIC_, contain only uppercase letters, digits and underscores, and be at most 128 characters. Limits: 20 entries, 4096 UTF-8 bytes per value and 16384 bytes for names plus values. Empty strings are preserved; NUL is refused. Values are literal data, without shell or variable expansion. The portal exposes Public build variables as KEY=value lines; do not add surrounding quotes, which would become part of the value. These values are public and may appear in bundles, image metadata and logs: never send passwords, tokens or secrets. They are not supplied to npm ci or automatically added to runtime variables. Runtime vars still configure the running container and do not rewrite compiled browser files. Settings are saved at creation, exposed on deployment reads, inherited by new previews and reused on redeploy. Preview runtime inheritance/overrides do not change this build snapshot; create a separate deployment for different public build values. Existing snapshots default to no public build values. Use build_secrets for supported build credentials with agent 0.6.11+; unsupported build settings require a custom Dockerfile. Local MCP requires 0.18.0+; no agent update is required beyond the existing build executor.
|
|
165
|
+
|
|
166
|
+
See the [build configuration guide](https://docs.imprezahost.com/tutorials/agent-apps-panels.html#public-build-settings).
|
|
167
|
+
|
|
168
|
+
## Apps in project subfolders
|
|
169
|
+
|
|
170
|
+
Deploy an independent npm app from a subfolder: set project_dir (default .) with node_npm or node_npm_static, or choose Project folder in the portal. For example, apps/site must contain its own package.json and matching package-lock.json; static_output_dir is relative to that folder. Only the selected folder is copied into /app for npm installation and builds. The repository/upload remains the Docker build context, so its root .dockerignore still applies. Paths allow up to 120 characters and five non-hidden segments; parent, node_modules and symlink components are refused. Missing folders or failed builds retain the previous healthy runtime. The project_dir value is returned by deployment reads, saved at creation and inherited by new previews; redeploy reuses the saved recipe. Existing snapshots default to .; changing the folder requires a new deployment. This supports independent apps in one repository, not shared workspaces or dependencies outside the folder; use a custom Dockerfile for those. The analyzer does not discover subfolders: supply the selected app metadata and review Project folder yourself. Local MCP requires 0.17.0+; no agent upgrade is required beyond the existing build executor.
|
|
171
|
+
|
|
172
|
+
See the [project folder guide](https://docs.imprezahost.com/tutorials/agent-apps-panels.html#project-folder).
|
|
173
|
+
|
|
174
|
+
## Import a Compose stack
|
|
175
|
+
|
|
176
|
+
Use `impreza_prepare_compose` with `compose_yaml`, then explicitly select
|
|
177
|
+
`web_service` and the integer `target_port`. Review services, persistent
|
|
178
|
+
volumes, required variables, changes and blockers before deploying with
|
|
179
|
+
`impreza_deploy_custom`, `mode: "compose"`, the same YAML/service/port and
|
|
180
|
+
`compose_review_id` set to the returned `analysis_id`.
|
|
181
|
+
|
|
182
|
+
Supports self-contained public-image stacks with up to 12 services, private
|
|
183
|
+
bridge networks, local named volumes and service dependencies. Original host
|
|
184
|
+
port bindings are removed; only the selected HTTP service joins the proxy and
|
|
185
|
+
receives a managed loopback port. Container and volume names become specific
|
|
186
|
+
to the deployment. Declare CPU/memory limits per service in YAML.
|
|
187
|
+
|
|
188
|
+
The review does not fetch images, execute code or reserve resources. Local build
|
|
189
|
+
contexts and auxiliary files require the same retained context_id at review and
|
|
190
|
+
deploy. Runtime env_file accepts literal assignments only, without interpolation
|
|
191
|
+
or inherited bare keys. Aliases, profiles, host privileges and external resources
|
|
192
|
+
are outside this import subset. Reference uppercase variables instead of
|
|
193
|
+
embedding secrets. Runtime values must be single-line strings up to 4 KiB,
|
|
194
|
+
without surrounding whitespace, quotes, backslashes, dollar signs or space
|
|
195
|
+
followed by #. Variables supply explicit references, not every service's
|
|
196
|
+
environment. Required values are checked at creation, editing and redeploy.
|
|
197
|
+
|
|
198
|
+
The imported source is saved as a manifest. Redeploy reuses it and the named
|
|
199
|
+
data; changing the source/topology requires a new deployment. Failure recovery
|
|
200
|
+
uses the existing agent policy and does not undo database writes. Local MCP
|
|
201
|
+
support for public-image stacks requires 0.21.0+. Retained build/runtime sources
|
|
202
|
+
require MCP 0.34.0+ and agent 0.6.11+.
|
|
203
|
+
See the [Compose import guide](https://docs.imprezahost.com/compose-import.html).
|
|
204
|
+
|
|
205
|
+
## Prepare project configuration
|
|
206
|
+
|
|
207
|
+
Use `impreza_prepare_project` with `package_json`, `dockerfile`, and optional
|
|
208
|
+
`dockerfile_path` before deploying. It returns framework hints, available build
|
|
209
|
+
and start commands, explicit ports from the final Dockerfile stage, and findings
|
|
210
|
+
to review. Each file is limited to 32 KiB. Review files for credentials before
|
|
211
|
+
sending; never submit .env files or secrets.
|
|
212
|
+
|
|
213
|
+
This is advisory analysis of supplied text. It does not fetch a repository,
|
|
214
|
+
execute code, generate a Dockerfile or deploy resources. Git deploys use a Dockerfile by default; supported npm projects can opt into the Node recipe. The analysis ID identifies metadata, not an executable plan.
|
|
215
|
+
Requires an API exposing /v1/platform/deployments/custom/prepare.
|
|
216
|
+
|
|
217
|
+
## Why this host and not a mainstream one
|
|
218
|
+
|
|
219
|
+
Any provider can run your app. This one is built so an **agent can obtain and
|
|
220
|
+
operate infrastructure that is not tied to your identity**, end to end, without
|
|
221
|
+
you opening a browser:
|
|
222
|
+
|
|
223
|
+
- **No KYC, and no email address, to open an account.** An account is a
|
|
224
|
+
generated client ID plus a recovery token. No documents, no selfie, no phone
|
|
225
|
+
number.
|
|
226
|
+
- **Funded in cryptocurrency.** `impreza_topup` accepts BTC, XMR, USDT and TRX,
|
|
227
|
+
and `impreza_order_vps` buys the server from that balance. The agent can go
|
|
228
|
+
from "I need a server" to a running deployment without a card.
|
|
229
|
+
- **Offshore and onshore jurisdictions side by side**, chosen per project
|
|
230
|
+
rather than per account.
|
|
231
|
+
- **Tor is a deployment target, not an add-on.** `impreza_add_onion` gives a
|
|
232
|
+
deployment a `.onion` address in one call, so an agent can publish a hidden
|
|
233
|
+
service the same way it publishes a normal site. `impreza_onion_auth_*`
|
|
234
|
+
manage Tor v3 restricted discovery (client authorization): private keys
|
|
235
|
+
never leave the customer's Tor client unless they ask the server to
|
|
236
|
+
generate a keypair — and then the private key is shown once, never stored.
|
|
237
|
+
- **No API key in your config.** The hosted connector authenticates over OAuth.
|
|
238
|
+
|
|
239
|
+
If none of that matters for your project, a mainstream provider is a perfectly
|
|
240
|
+
good choice and usually cheaper to start with. This exists for the projects
|
|
241
|
+
where it does matter: research and journalism under pressure, censorship
|
|
242
|
+
circumvention, security work, and anything that should not be one support
|
|
243
|
+
ticket away from being linked to a legal name.
|
|
244
|
+
|
|
245
|
+
## Retained-release rollback
|
|
246
|
+
|
|
247
|
+
The source tree adds `impreza_rollback_deployment`. Read a deployment's
|
|
248
|
+
`release_history` through `impreza_api_call` at
|
|
249
|
+
`/platform/deployments/{id}`, then choose a `rel_...` entry with
|
|
250
|
+
`rollback_supported: true`.
|
|
251
|
+
|
|
252
|
+
Explain the selected release and possible interruption to the customer before
|
|
253
|
+
calling the tool with `deployment_id`, `target_version` and `confirm: true`.
|
|
254
|
+
The hosted connector uses its two-call `confirm_token` flow instead.
|
|
255
|
+
The operation requires `manage` scope and a compatible API and agent.
|
|
256
|
+
|
|
257
|
+
A historical release may no longer be retained. The agent checks local images
|
|
258
|
+
and unchanged ports, storage and routing before replacing containers. It saves
|
|
259
|
+
the current healthy runtime and attempts recovery if the selected release fails
|
|
260
|
+
startup. Database contents and mutable data are not reverted. A queued response
|
|
261
|
+
does not confirm restoration; check deployment history for the result.
|
|
262
|
+
|
|
263
|
+
Available in impreza-mcp 0.12.0. Requires a compatible API and agent.
|
|
264
|
+
|
|
265
|
+
## Static npm sites
|
|
266
|
+
|
|
267
|
+
Static npm sites: choose build_strategy=node_npm_static with a Git/context source (mode=dockerfile), or Static site + npm in the portal. Requires an independent npm package in the selected project folder, matching package-lock.json and a build script producing index.html in the selected output folder. Node 24 installs dependencies and runs the build; unprivileged Nginx serves only the selected output folder with configurable SPA fallback. No start script is required. Default target_port is 8080. Compose 2.17+ and BuildKit required. No SSR or server functions. Explicit npm_workspace and build_secrets are supported with their documented source and agent requirements. Runtime variables (including VITE_* and PORT) do not rewrite static bundles or change the configured Nginx port. Use static_output_dir (default dist) to choose a relative output folder containing index.html, and static_spa (boolean, default true) to choose SPA fallback or 404 for unknown routes. The portal exposes both fields. Paths are limited to 120 characters and five segments, without hidden, parent or node_modules segments; symlinks in the output or its parent path are refused. These settings are chosen at creation, stored in the recipe snapshot, exposed as static_options and carried to new previews. Redeploy reuses the saved recipe; changing these settings on existing deployments requires creating a new deployment. Existing snapshots keep their original recipe. Local MCP option inputs require 0.16.0+. Use public_build_vars for supported public settings; other build-time configuration requires a custom Dockerfile. Source .env/.env.*/.npmrc/.git/node_modules are excluded; review all generated files because the output folder is public. Missing index.html and symlink output fail the build. Existing preview/redeploy snapshots preserve the strategy. Local MCP requires 0.15.0+; no agent upgrade is needed beyond the existing build executor. The analyzer returns static_npm_recipe and conditional deployment_options; metadata is not proof of a static, working build.
|
|
268
|
+
|
|
269
|
+
## Status
|
|
270
|
+
|
|
271
|
+
**Package version: 0.38.0.** The tool catalog covers app deployment plus account +
|
|
272
|
+
crypto balance, catalog + ordering, domains/DNS + registration, invoices, VPS
|
|
273
|
+
lifecycle with snapshots and backups, dedicated / bare-metal servers, plan
|
|
274
|
+
upgrades, and Titan / Google Workspace mailboxes — with a setup wizard that
|
|
275
|
+
generates ready-to-paste config snippets for 5 AI tools.
|
|
276
|
+
|
|
277
|
+
On top of that, everything an app needs after it is running: backup and
|
|
278
|
+
restore into the customer's **own** S3 bucket, a timer on an app with its
|
|
279
|
+
output kept, outbound webhooks so you stop polling, and reading the app's own
|
|
280
|
+
files to find out why it behaves as if it were not configured.
|
|
281
|
+
|
|
282
|
+
On top of that, everything an app needs after it is running: backup and
|
|
283
|
+
restore into the customer's **own** S3 bucket, a timer on an app with its
|
|
284
|
+
output kept, outbound webhooks so you stop polling, reading the app's own
|
|
285
|
+
files, and running the app's own command line.
|
|
286
|
+
|
|
287
|
+
The local (`npx`) server and the hosted OAuth connector expose the **same 116
|
|
288
|
+
tools**, so nothing is lost by picking either path.
|
|
289
|
+
|
|
290
|
+
### New in 0.11.0
|
|
291
|
+
|
|
292
|
+
**Run the app's own command line.** WP-CLI for WordPress, `occ` for
|
|
293
|
+
Nextcloud, `gitea admin` for Gitea, and the database client for a dump —
|
|
294
|
+
`impreza_app_cli` to run, `impreza_get_cli_run` to collect the output. Call
|
|
295
|
+
`impreza_get_cli_run` with no `run_id` first: it names the command lines the
|
|
296
|
+
app has, says what each is for, and gives one example that works.
|
|
297
|
+
|
|
298
|
+
- **No docker socket, and that is measured rather than claimed.** The command
|
|
299
|
+
runs in a separate container built from the app's own image, joined to the
|
|
300
|
+
app's own network, with its data mounted — the shape the official CLI
|
|
301
|
+
images are designed for. `cap_drop: ALL`, and no new privilege on the
|
|
302
|
+
machine.
|
|
303
|
+
- **Arguments are a list, never a string.** Each element becomes one `argv`
|
|
304
|
+
entry through `execve`, so nothing is split, globbed or substituted:
|
|
305
|
+
quoting is not your problem, and a `$` or a `;` inside a value is just
|
|
306
|
+
that. Verified against a live site — `option update blogname
|
|
307
|
+
'dollars $HOME and a ; semicolon'` reads back exactly as sent.
|
|
308
|
+
- **Destructive, and treated as such.** A command line can do anything the
|
|
309
|
+
app itself can, so it needs the `manage` scope and is confirmation-gated.
|
|
310
|
+
Arguments are free rather than allowlisted: that is the same ceiling
|
|
311
|
+
`uninstall` with `purge_data` already sits at, and a list of `wp`
|
|
312
|
+
subcommands would age badly while protecting nothing the confirmation gate
|
|
313
|
+
does not.
|
|
314
|
+
- **The CLI version follows the app.** Where the command line is the app's
|
|
315
|
+
own image it is taken from that deployment, so a catalog bump carries it —
|
|
316
|
+
running `occ` from an older Nextcloud against a newer database is how a
|
|
317
|
+
maintenance command corrupts an install.
|
|
318
|
+
|
|
319
|
+
Custom deployments have no command line here: it is your own image and the
|
|
320
|
+
platform cannot know what it ships. Use a scheduled task of kind `command`
|
|
321
|
+
for those.
|
|
322
|
+
|
|
323
|
+
### New in 0.10.0
|
|
324
|
+
|
|
325
|
+
**Look inside the app's own files.** `impreza_get_logs` reads stdout, which
|
|
326
|
+
cannot answer the question a deploy that came up wrong actually raises: did
|
|
327
|
+
that variable reach the config file? Two tools now do —
|
|
328
|
+
`impreza_inspect_app` to ask and `impreza_get_app_read` to collect the answer.
|
|
329
|
+
|
|
330
|
+
- **Four actions, and no fifth:** `list` a directory, `read` a file (capped at
|
|
331
|
+
256 KB), `tail` its last lines, `grep` under a path with an extended regular
|
|
332
|
+
expression. There is no command string in the interface, and therefore no
|
|
333
|
+
shell.
|
|
334
|
+
- **Read-only by construction.** A one-shot container mounts the app's storage
|
|
335
|
+
read-only — the same mechanism the backup already uses — with no docker
|
|
336
|
+
socket and no write capability. So it also works on an app that is `failed`
|
|
337
|
+
and will not start, which is when it is wanted most.
|
|
338
|
+
- **Only the app's own storage:** `data`, or one of the named volumes the app's
|
|
339
|
+
manifest declares (a WordPress exposes `data` and `wp_db`, so its database
|
|
340
|
+
files are readable too). Call `impreza_get_app_read` with no `read_id` to
|
|
341
|
+
see the list for a given app.
|
|
342
|
+
- **What comes back is untrusted and often secret** — an app's config file is
|
|
343
|
+
where its database password lives. It reaches you and nothing else: the
|
|
344
|
+
field is on our request log's deny list, and the record is deleted within a
|
|
345
|
+
day.
|
|
346
|
+
|
|
347
|
+
### Since 0.6.1
|
|
348
|
+
|
|
349
|
+
Three releases the npm page never described, each one a whole capability:
|
|
350
|
+
|
|
351
|
+
- **0.7.0 — backup and restore** of a deployment's data into the account's own
|
|
352
|
+
Impreza S3 bucket, with a per-chunk SHA-256 manifest that sits beside the
|
|
353
|
+
data so the copy stays verifiable with the customer's own credentials and no
|
|
354
|
+
call to us. Plus a schedule (daily by default, keeping 3), and a restore
|
|
355
|
+
that can land in a *different* app, which is how an app moves between
|
|
356
|
+
servers.
|
|
357
|
+
- **0.8.0 — scheduled tasks:** a timer on an app with the output kept, for the
|
|
358
|
+
apps that need one to behave correctly (Nextcloud's cron, WordPress's
|
|
359
|
+
`wp-cron` on a site with no visitors).
|
|
360
|
+
- **0.9.0 — outbound webhooks:** subscribe to deploy, backup and VPS events
|
|
361
|
+
and stop polling, with HMAC-signed delivery and a delivery log.
|
|
362
|
+
|
|
363
|
+
### New in 0.6.1
|
|
364
|
+
|
|
365
|
+
**`tools/list` now reflects what your account actually owns.** About a third of
|
|
366
|
+
the tools only make sense if you have the machine behind them — VPS power
|
|
367
|
+
controls with no VPS can only ever answer "not found" — so those are left out
|
|
368
|
+
of the listing until you own one. Typical accounts see around 70 tools instead
|
|
369
|
+
of 97, which is roughly six thousand fewer tokens of context spent before you
|
|
370
|
+
ask anything.
|
|
371
|
+
|
|
372
|
+
Three things worth knowing about how it behaves:
|
|
373
|
+
|
|
374
|
+
- **The purchase path is never filtered.** An account that owns nothing is the
|
|
375
|
+
one that needs to buy something, so ordering, top-up, invoices and the
|
|
376
|
+
catalogue are always listed.
|
|
377
|
+
- **Buying something grows the list mid-session.** The server sends
|
|
378
|
+
`notifications/tools/list_changed` on the same response as the order, so a
|
|
379
|
+
client that honours it picks up the new tools without reconnecting.
|
|
380
|
+
- **It fails open.** If this server cannot reach the API to ask, it lists
|
|
381
|
+
everything rather than guess.
|
|
382
|
+
|
|
383
|
+
Hiding a tool is not an authorization boundary — the API still refuses anything
|
|
384
|
+
your account does not own. This only stops the listing from carrying tools that
|
|
385
|
+
could never work for you.
|
|
386
|
+
|
|
387
|
+
### New in 0.6.0
|
|
388
|
+
|
|
389
|
+
Four things that only make sense on a host built for anonymity:
|
|
390
|
+
|
|
391
|
+
- **Dark previews** — push a branch, get a preview on its own ephemeral Tor
|
|
392
|
+
`.onion`. Every other platform's preview URL puts your branch name into
|
|
393
|
+
public DNS and into a permanent Certificate Transparency log; branch names
|
|
394
|
+
carry ticket ids, customer names and unshipped features. This one creates
|
|
395
|
+
neither record, and destroys its keys when the branch is deleted or the TTL
|
|
396
|
+
runs out. `impreza_configure_previews`, `impreza_list_previews`,
|
|
397
|
+
`impreza_retire_preview`.
|
|
398
|
+
- **Agent sub-credentials** — mint a narrower credential from the one you hold
|
|
399
|
+
and hand it to a subtask: one deployment, one hour, no spending. A child can
|
|
400
|
+
never exceed its parent on any axis, and revoking a credential revokes
|
|
401
|
+
everything it minted, however deep. `impreza_mint_subcredential`,
|
|
402
|
+
`impreza_list_credentials`, `impreza_revoke_credential`,
|
|
403
|
+
`impreza_agent_activity`.
|
|
404
|
+
- **A privacy report you can check** — `impreza_privacy_report` returns every
|
|
405
|
+
field we store about your account, what it is for, how long it survives and
|
|
406
|
+
who else sees it, and then measures our own retention against the oldest
|
|
407
|
+
record that actually survived. Counts and date ranges, never contents.
|
|
408
|
+
- **Ask before you guess** — search our docs, validate a deployment manifest
|
|
409
|
+
before deploying it (including a privacy lint for third-party CDNs, public
|
|
410
|
+
DNS resolvers and leaked secrets), or run a diagnosis when something is
|
|
411
|
+
wrong. `impreza_search_docs`, `impreza_validate_manifest`, `impreza_doctor`.
|
|
412
|
+
|
|
413
|
+
Plus the Tasks extension, so long operations report completion instead of
|
|
414
|
+
leaving you to poll, and three MCP Apps panels — a payment card, a server card
|
|
415
|
+
and a deploy wizard — that render inside clients which support them.
|
|
416
|
+
|
|
417
|
+
The table below is a **selection**, not the full list — it covers the tools
|
|
418
|
+
most people reach for first. Your client's own tool listing is authoritative,
|
|
419
|
+
and `impreza_api_search` finds anything not named here.
|
|
420
|
+
|
|
421
|
+
| Tool | Wraps |
|
|
422
|
+
|------|-------|
|
|
423
|
+
| **Apps & deployments** | |
|
|
424
|
+
| `impreza_list_servers` | `GET /v1/platform/servers` |
|
|
425
|
+
| `impreza_list_apps` | `GET /v1/platform/apps` |
|
|
426
|
+
| `impreza_list_deployments` | `GET /v1/platform/deployments` + `/custom` (merged) |
|
|
427
|
+
| `impreza_upload_context` | `POST /v1/platform/deployments/custom/contexts?retain=true` |
|
|
428
|
+
| `impreza_list_contexts` | `GET /v1/platform/deployments/custom/contexts[/{context_id}]` |
|
|
429
|
+
| `impreza_delete_context` | `DELETE /v1/platform/deployments/custom/contexts/{context_id}` |
|
|
430
|
+
| `impreza_deploy_custom` | `POST /v1/platform/deployments/custom` (3 modes) |
|
|
431
|
+
| `impreza_deploy_catalog_app` | `POST /v1/platform/deployments` |
|
|
432
|
+
| `impreza_uninstall_deployment` | `POST .../uninstall` |
|
|
433
|
+
| `impreza_get_logs` | `POST .../logs` (sync tail, last N lines) |
|
|
434
|
+
| `impreza_restart_deployment` | `POST .../restart` |
|
|
435
|
+
| `impreza_redeploy_deployment` | `POST .../custom/{id}/redeploy` (in-place rebuild, same domain) |
|
|
436
|
+
| `impreza_add_onion` | `POST .../onion/add` |
|
|
437
|
+
| `impreza_set_onion_profile` | `POST .../onion/profile` (`standard` / `hardened` / `max` hardening tiers) |
|
|
438
|
+
| `impreza_export_onion_key` | `POST .../onion/export` (sealed to your X25519 key; plaintext never transits) |
|
|
439
|
+
| `impreza_fetch_onion_key_export` | `GET .../onion/export/{command_id}` (read-once — the blob is burned) |
|
|
440
|
+
| `impreza_rotate_onion_key` | `POST .../onion/rotate` (new .onion; the old address dies) |
|
|
441
|
+
| `impreza_onion_auth_list` | `GET .../onion/clients` |
|
|
442
|
+
| `impreza_onion_auth_add` | `POST .../onion/clients` (`pubkey`, or `generate:true` → `private_key` shown once) |
|
|
443
|
+
| `impreza_onion_auth_revoke` | `DELETE .../onion/clients/{name}` |
|
|
444
|
+
| `impreza_change_domain` | `POST .../domain` |
|
|
445
|
+
| `impreza_git_webhook_status` | `GET .../custom/{id}/git-webhook` |
|
|
446
|
+
| `impreza_git_webhook_connect` | `POST .../custom/{id}/git-webhook/connect` |
|
|
447
|
+
| `impreza_git_webhook_disconnect` | `POST .../custom/{id}/git-webhook/disconnect` |
|
|
448
|
+
| **Account & balance** | |
|
|
449
|
+
| `impreza_account_info` | `GET /v1/account` |
|
|
450
|
+
| `impreza_list_services` | `GET /v1/account/services` |
|
|
451
|
+
| `impreza_topup` | `POST /v1/account/topup` — top up in BTC / XMR / USDT / TRX |
|
|
452
|
+
| `impreza_topup_status` | `GET /v1/account/topup/{invoice_id}` |
|
|
453
|
+
| `impreza_topup_payment` | `GET /v1/account/topup/{invoice_id}/payment` — crypto address + amount to pay |
|
|
454
|
+
| **Catalog & ordering** | |
|
|
455
|
+
| `impreza_list_products` | `GET /v1/products` — products + pricing; the VPS is listed at its smallest size (`configurable: true`) |
|
|
456
|
+
| `impreza_vps_offer` | `GET /v1/products/vps` — VPS locations, operating systems, CPU / memory / disk ranges and prices; with a whole configuration, `GET /v1/products/vps/quote` — its exact price |
|
|
457
|
+
| `impreza_order_vps` | `POST /v1/orders` — a VPS by location, OS and size (or a fixed plan by `product_id`); paid from balance; born deployable (`@agent`); 202 + poll `impreza_list_servers` |
|
|
458
|
+
| **Domains & DNS** | |
|
|
459
|
+
| `impreza_domain_check` | `GET /v1/domains/check` |
|
|
460
|
+
| `impreza_domain_details` | `GET /v1/domains/{domain}` |
|
|
461
|
+
| `impreza_list_dns` | `GET /v1/domains/{domain}/dns` |
|
|
462
|
+
| `impreza_add_dns_record` | `POST /v1/domains/{domain}/dns` |
|
|
463
|
+
| `impreza_update_dns_record` | `PUT /v1/domains/{domain}/dns` |
|
|
464
|
+
| `impreza_delete_dns_record` | `DELETE /v1/domains/{domain}/dns` |
|
|
465
|
+
| `impreza_set_nameservers` | `PUT /v1/domains/{domain}/nameservers` |
|
|
466
|
+
| **VPS lifecycle** (Proxmox) | |
|
|
467
|
+
| `impreza_vps_status` | `GET /v1/vps/proxmox/{id}/status` |
|
|
468
|
+
| `impreza_vps_power` | `POST /v1/vps/proxmox/{id}/{start\|shutdown\|reboot\|stop}` |
|
|
469
|
+
| `impreza_vps_list_backups` | `GET /v1/vps/proxmox/{id}/backups` |
|
|
470
|
+
| `impreza_vps_create_backup` | `POST /v1/vps/proxmox/{id}/backups` |
|
|
471
|
+
| `impreza_vps_list_templates` | `GET /v1/vps/proxmox/{id}/templates` |
|
|
472
|
+
| `impreza_vps_reinstall` | `POST /v1/vps/proxmox/{id}/reinstall` — destructive (wipes) |
|
|
473
|
+
|
|
474
|
+
## Install + setup
|
|
475
|
+
|
|
476
|
+
### Prerequisites
|
|
477
|
+
|
|
478
|
+
- Node ≥ 20
|
|
479
|
+
- An Impreza Host account with an API key + secret
|
|
480
|
+
(clientarea → API Keys; the IP of the machine running this MCP
|
|
481
|
+
server must be whitelisted under the key)
|
|
482
|
+
|
|
483
|
+
### One-shot via `npx`
|
|
484
|
+
|
|
485
|
+
No global install needed — `npx impreza-mcp` works.
|
|
486
|
+
|
|
487
|
+
### Or install globally
|
|
488
|
+
|
|
489
|
+
```sh
|
|
490
|
+
npm install -g impreza-mcp
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
### Get a ready-to-paste config snippet
|
|
494
|
+
|
|
495
|
+
The fastest path: ask the binary itself.
|
|
496
|
+
|
|
497
|
+
```sh
|
|
498
|
+
npx impreza-mcp setup --tool claude-code
|
|
499
|
+
# also: cursor | continue | zed | codex-cli
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
The wizard prints the JSON block to drop into your AI tool's MCP
|
|
503
|
+
config + the exact file path + the post-config step (usually "fully
|
|
504
|
+
quit + re-open the AI tool"). It does NOT write to disk — paste it
|
|
505
|
+
yourself so you don't accidentally clobber an existing config with
|
|
506
|
+
other MCP servers.
|
|
507
|
+
|
|
508
|
+
### Or wire it in manually
|
|
509
|
+
|
|
510
|
+
**Claude Code** — add to `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
511
|
+
(macOS) or `%APPDATA%/Claude/claude_desktop_config.json` (Windows):
|
|
512
|
+
|
|
513
|
+
```json
|
|
514
|
+
{
|
|
515
|
+
"mcpServers": {
|
|
516
|
+
"impreza": {
|
|
517
|
+
"command": "npx",
|
|
518
|
+
"args": ["-y", "impreza-mcp"],
|
|
519
|
+
"env": {
|
|
520
|
+
"IMPREZA_API_KEY": "imp_...",
|
|
521
|
+
"IMPREZA_API_SECRET": "..."
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
Restart Claude Code. The tools appear under the MCP icon.
|
|
529
|
+
|
|
530
|
+
**Cursor** — add to `~/.cursor/mcp.json` (same shape as above).
|
|
531
|
+
|
|
532
|
+
**Continue** — add to `~/.continue/config.json`:
|
|
533
|
+
|
|
534
|
+
```json
|
|
535
|
+
{
|
|
536
|
+
"experimental": {
|
|
537
|
+
"modelContextProtocolServers": [
|
|
538
|
+
{
|
|
539
|
+
"transport": {
|
|
540
|
+
"type": "stdio",
|
|
541
|
+
"command": "npx",
|
|
542
|
+
"args": ["-y", "impreza-mcp"],
|
|
543
|
+
"env": {
|
|
544
|
+
"IMPREZA_API_KEY": "imp_...",
|
|
545
|
+
"IMPREZA_API_SECRET": "..."
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
**Zed** — add to your settings:
|
|
555
|
+
|
|
556
|
+
```json
|
|
557
|
+
{
|
|
558
|
+
"context_servers": {
|
|
559
|
+
"impreza": {
|
|
560
|
+
"command": {
|
|
561
|
+
"path": "npx",
|
|
562
|
+
"args": ["-y", "impreza-mcp"],
|
|
563
|
+
"env": {
|
|
564
|
+
"IMPREZA_API_KEY": "imp_...",
|
|
565
|
+
"IMPREZA_API_SECRET": "..."
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
```
|
|
572
|
+
|
|
573
|
+
## Usage in chat
|
|
574
|
+
|
|
575
|
+
After setup, talk to your AI naturally:
|
|
576
|
+
|
|
577
|
+
> *"List my Impreza servers."* → calls `impreza_list_servers`
|
|
578
|
+
>
|
|
579
|
+
> *"Deploy this directory to my Impreza VPS, expose via .onion."* →
|
|
580
|
+
> packages the cwd as a Dockerfile-mode custom deploy, uploads, deploys
|
|
581
|
+
> with `onion=true`, reports the .onion address.
|
|
582
|
+
>
|
|
583
|
+
> *"What apps are running on my agent?"* → calls
|
|
584
|
+
> `impreza_list_deployments` filtered to the right server.
|
|
585
|
+
|
|
586
|
+
## Auth + security
|
|
587
|
+
|
|
588
|
+
`IMPREZA_API_KEY` + `IMPREZA_API_SECRET` live in the AI tool's MCP
|
|
589
|
+
config env — not in any file on disk owned by `impreza-mcp` itself.
|
|
590
|
+
The MCP server holds the secret only in memory and only attaches it
|
|
591
|
+
as HTTP request headers.
|
|
592
|
+
|
|
593
|
+
The IP of the machine running this MCP server (almost always your
|
|
594
|
+
laptop) must be on the API key's whitelist. Manage the whitelist in
|
|
595
|
+
your Impreza clientarea.
|
|
596
|
+
|
|
597
|
+
## Using over Tor
|
|
598
|
+
|
|
599
|
+
The MCP server can route every API call through a local Tor daemon, so
|
|
600
|
+
API requests use the configured proxy. Your network provider can still observe
|
|
601
|
+
your connection to Tor; this option does not hide that you are using Tor.
|
|
602
|
+
|
|
603
|
+
1. Install and start Tor (the `tor` daemon, or Tor Browser — both
|
|
604
|
+
commonly expose a SOCKS5 listener on `127.0.0.1:9050` for the daemon
|
|
605
|
+
or `127.0.0.1:9150` for Tor Browser; check your local configuration).
|
|
606
|
+
2. Add `IMPREZA_PROXY` to the MCP config env:
|
|
607
|
+
|
|
608
|
+
```json
|
|
609
|
+
"env": {
|
|
610
|
+
"IMPREZA_API_KEY": "imp_...",
|
|
611
|
+
"IMPREZA_API_SECRET": "...",
|
|
612
|
+
"IMPREZA_PROXY": "socks5://127.0.0.1:9050"
|
|
613
|
+
}
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
Every API request then exits through Tor, and the API hostname is
|
|
617
|
+
resolved by Tor itself (remote DNS) — nothing is resolved locally, so
|
|
618
|
+
no DNS leak. The transport fails closed: if the proxy is unreachable
|
|
619
|
+
or refuses the connection, the request fails — it never silently falls
|
|
620
|
+
back to a direct clearnet connection.
|
|
621
|
+
|
|
622
|
+
Optionally point `IMPREZA_BASE_URL` at the API's `.onion` mirror —
|
|
623
|
+
`http://` is accepted only for v3 `.onion` hosts, since Tor authenticates and
|
|
624
|
+
encrypts onion connections. Clearnet hosts require `https://`. An onion URL
|
|
625
|
+
also requires an explicit `IMPREZA_PROXY`; the client refuses direct DNS and
|
|
626
|
+
connections even when the onion URL uses HTTPS. Proxy requests refuse redirects,
|
|
627
|
+
use a bounded request deadline and accept response bodies up to 16 MiB.
|
|
628
|
+
|
|
629
|
+
One account-side adjustment: Tor exit IPs rotate constantly, so a
|
|
630
|
+
fixed-IP whitelist on the API key cannot work. Set the key's IP factor
|
|
631
|
+
to `tofu` or `keyonly` in the clientarea.
|
|
632
|
+
|
|
633
|
+
## PHP deployments
|
|
634
|
+
|
|
635
|
+
Use `impreza_prepare_project` with `composer_json` and optionally `php_document_root` to review a PHP app. Deploy with `impreza_deploy_custom`, `mode: "dockerfile"` and `build_strategy: "php_composer"`, using Git, a local directory or a retained upload. The PHP 8.4/Apache recipe installs production dependencies from `composer.json` and a matching `composer.lock`, without Composer scripts or plugins, and checks actual platform requirements. Choose `project_dir` for the application and `php_document_root` for its public subfolder containing `index.php` (default `public`). Apache runs as a non-root user on `target_port` (default 8080, minimum 1024); it serves public files and sends missing paths to `index.php`.
|
|
636
|
+
|
|
637
|
+
Health checks require HTTP 2xx without redirects, at `/` or your `healthcheck_path`. Optional `require_healthy_start` needs an explicit path and agent 0.6.3+, with a 30–600 second startup budget. Previews and redeploys keep the saved recipe. Custom repositories, private dependency credentials, installation plugins, extra extensions, `.htaccess` rules, frontend builds and application setup/migrations require a custom Dockerfile. `start_command` and public build variables are not PHP options. Analysis is advisory and does not inspect the lockfile or repository. See the [PHP deployment guide](https://docs.imprezahost.com/tutorials/agent-apps-panels.html#php-build).
|
|
638
|
+
|
|
639
|
+
## Python deployments
|
|
640
|
+
|
|
641
|
+
Use `impreza_prepare_project` with `requirements_txt` and an explicit `start_command` to review a Python app. Deploy with `impreza_deploy_custom`, `mode: "dockerfile"` and `build_strategy: "python_pip"`, using Git, a local directory or an uploaded context. The Python 3.13 recipe installs a flat `requirements.txt` from PyPI and runs as a non-root user; choose `project_dir` for an independent application folder. Start a production server on `0.0.0.0` at `target_port` (default 8000), for example `exec gunicorn --bind 0.0.0.0:$PORT app:app`, with Flask and gunicorn declared in requirements. `PORT` and `HOST` are runtime variables. Keep credentials out of the saved command.
|
|
642
|
+
|
|
643
|
+
The default Python health probe requires HTTP 2xx on `/`; choose `healthcheck_path` for another route. Optional `require_healthy_start` needs an explicit path and agent 0.6.3+, with a 30–600 second startup budget. Previews and redeploys retain the saved recipe. Dependency options, includes, URLs, local projects, private build credentials, system packages and other package managers require a custom Dockerfile. Public build variables remain npm-only. Analysis is advisory; builds resolve actual dependencies on the server. See the [Python deployment guide](https://docs.imprezahost.com/tutorials/agent-apps-panels.html#python-build).
|
|
644
|
+
|
|
645
|
+
## Build
|
|
646
|
+
|
|
647
|
+
```sh
|
|
648
|
+
npm install
|
|
649
|
+
npm run build
|
|
650
|
+
# dist/server.js is the entry point
|
|
651
|
+
```
|
|
652
|
+
|
|
653
|
+
## Supervised preparation
|
|
654
|
+
|
|
655
|
+
These legacy worker rules remain in effect unless the administrator enables agent 0.6.12+ [controlled builds](https://docs.imprezahost.com/deployment-cancellation.html#controlled-builds), which add verified executor stop and recovery for new builds.
|
|
656
|
+
|
|
657
|
+
Agent 0.6.8+: supported Linux/systemd deploys run image pull and build in a separate supervised process. If the agent restarts, it waits for the exact worker receipt without repeating that work. Only a durable successful receipt allows the existing preparation reconciliation: revalidate operation/phase and unchanged containers, restore previous configuration, and close as failed or confirm a previously requested cancellation. recovery=reconciling can include waiting for the original worker. Missing/invalid receipts, worker failure or timeout, host reboot before a receipt, legacy unsupervised work, replacement uncertainty, data ownership and onion preparation still require review. A process or service disappearing is never proof of completion. The customer must wait for the final result before retrying; no automatic deploy retry, immediate build termination, data rollback or runtime-health guarantee is added.
|
|
658
|
+
|
|
659
|
+
## License
|
|
660
|
+
|
|
661
|
+
MIT — see `LICENSE`.
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
## Supervised replacement
|
|
665
|
+
|
|
666
|
+
Agent 0.6.9+: new supported Linux/systemd deploys keep the authorized container replacement, startup checks, lifecycle hooks, routes and normal startup recovery in one supervised worker. If the agent restarts, recovery=reconciling with step=reconciling_replacement waits for that original worker. Its verified durable final receipt is delivered without repeating containers or hooks, including a failed deployment whose previous release was restored. Missing or invalid receipts, worker loss or timeout, host reboot before completion, legacy unsupervised operations, data ownership changes and onion provisioning still require support; keep the private journal and do not retry to unblock the queue. This does not add automatic deployment retries, database rollback or zero-downtime traffic switching. Update the agent explicitly before the next deploy.
|
|
667
|
+
|
|
668
|
+
Python deployments may select python_package_manager=uv@0.12.15 with python_pip, pyproject.toml and uv.lock. Installation is locked, production-only and non-editable on Python 3.13; public PyPI sources only. Custom uv workspaces/indexes require a Dockerfile. Use MCP 0.34.0+ and a control plane supporting this recipe.
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
## PostgreSQL application connections
|
|
672
|
+
|
|
673
|
+
`impreza_prepare_service_binding` reviews a dedicated PostgreSQL connection for an image application in the same project environment and server. `impreza_prepare_service_binding_removal` reviews removal or a pending-cleanup retry with the exact `deployment_id` and `binding_id`. Read the saved plan with `impreza_get_service_binding_plan`; apply only after explicit confirmation using `impreza_apply_service_binding_plan`, the exact digest and `confirm: true`. Removal retains database data and disables the dedicated login only after a healthy replacement without the connection. Acceptance means queued, not verified completion. Requires agent 0.6.13+ and a compatible control plane.
|
|
674
|
+
|
|
675
|
+
`impreza_prepare_service_binding_rotation` reviews a credential rotation for an existing connection with `deployment_id`, `binding_id` and `mode` (`rotate` or `abandon`). Rotating replaces the dedicated login with a distinct new one and disables the previous login only after a healthy replacement with the rotated `DATABASE_URL`; the database and its data are always retained. A failed startup keeps the previous application serving with the current credential and requires a newly reviewed retry; if the previous login could not be confirmed disabled, the rotation stays pending cleanup and a new `rotate` review retries it. `abandon` discards the unused candidate credential and keeps the current one; it is refused once only cleanup remains. Apply the returned review with `impreza_apply_service_binding_plan` as above; preparation queues nothing and returns no credential. Rotation requires an agent announcing `postgres-service-binding-rotation-v1`: older agents refuse the dispatch and the failed job directs the customer to update the agent explicitly, preserving its identity, configuration and applications. Rotation requires a v2-protocol connection; legacy first-protocol connections are not adopted.
|
|
676
|
+
|
|
677
|
+
## Public HTTPS diagnostics
|
|
678
|
+
|
|
679
|
+
`impreza_probe_deployment` takes `deployment_id` and checks the saved public hostname through the control plane. It reports public DNS resolution, TLS verification and the HTTPS HEAD status, without following redirects or sending application credentials. It does not read response bodies or verify dependencies. One attempt per account every 30 seconds; no agent update is required.
|
|
680
|
+
|
|
681
|
+
## Image promotion and environments
|
|
682
|
+
|
|
683
|
+
`impreza_prepare_image_promotion`, `impreza_get_image_promotion` and `impreza_apply_image_promotion` review an exact registry digest for an existing destination configuration. Apply requires the returned review digest and explicit confirmation. Destination variables and data remain local to that application.
|
|
684
|
+
|
|
685
|
+
Project/environment tools organize existing applications with explicit component associations. They do not copy variables, create network connections or deploy workloads. See the [project environments guide](https://docs.imprezahost.com/project-environments.html).
|
|
686
|
+
|
|
687
|
+
### Reviewed deployment workflows
|
|
688
|
+
|
|
689
|
+
Version 0.38.0 adds environment configuration comparison, prepare/read/apply traffic
|
|
690
|
+
switches and explicit branch previews with optional password protection. Compare
|
|
691
|
+
returns variable names, never values. Traffic switches require a reviewed digest
|
|
692
|
+
and confirmation, keep the source running, and require operator reconciliation if
|
|
693
|
+
recovery cannot be verified. Protected preview credentials are shown once.
|
|
694
|
+
Traffic switches and protected previews require agent 0.6.16 or newer. Existing
|
|
695
|
+
servers update only at the customer's request. Assisted database restore is a REST
|
|
696
|
+
workflow. See [project environments](https://docs.imprezahost.com/project-environments.html)
|
|
697
|
+
and [deployment safety](https://docs.imprezahost.com/deployment-safety.html).
|
|
698
|
+
|
|
699
|
+
### Basic Cloud VPS management
|
|
700
|
+
|
|
701
|
+
Basic Cloud VPS supports status and allocated resources through `impreza_api_call`,
|
|
702
|
+
and boot, graceful shutdown and reboot through `impreza_cloud_power`. Use the WHMCS
|
|
703
|
+
service ID from `impreza_list_services`. Advanced Cloud infrastructure tools are
|
|
704
|
+
no longer advertised; retired calls return `FEATURE_NOT_AVAILABLE`. Contact
|
|
705
|
+
Impreza support for other infrastructure changes. Ordering and cancellation keep
|
|
706
|
+
their normal account workflows. Application management through an enrolled agent
|
|
707
|
+
is separate.
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
## Configuration, metrics and recovery (0.39.0)
|
|
711
|
+
|
|
712
|
+
Review application configuration with export/prepare/get/apply tools; inspect
|
|
713
|
+
per-app metrics and alert rules; download backup parts and review/apply a
|
|
714
|
+
PostgreSQL restore into a new database. Applying a review requires its digest
|
|
715
|
+
and explicit confirmation; acceptance is queued work, not verified completion.
|
|
716
|
+
The custom deploy and preparation tools also support `static_files` and
|
|
717
|
+
`go_build`. Metrics and MariaDB bindings require agent 0.6.17 or newer.
|
|
718
|
+
See [configuration, metrics and recovery](https://docs.imprezahost.com/customer-workflows.html)
|
|
719
|
+
for permissions, examples and limits. No automatic server update occurs.
|
|
720
|
+
|
|
721
|
+
### Isolated runtime through Tor (0.42.0)
|
|
722
|
+
|
|
723
|
+
Custom image and source deployments can opt in with `tor_egress: true` through
|
|
724
|
+
`impreza_deploy_custom` and saved deployment preparation. This option needs an
|
|
725
|
+
agent advertising `tor-egress-v1`, Docker Engine 28+, and a SOCKS5h-capable
|
|
726
|
+
application. The runtime has no direct outbound fallback. Source downloads,
|
|
727
|
+
image pulls and builds retain the server's normal network connection. Catalog
|
|
728
|
+
installs, imported manifests and external service bindings are unsupported.
|
|
729
|
+
See the [Tor runtime guide](https://docs.imprezahost.com/onion-services.html#runtime-egress)
|
|
730
|
+
for availability and verification. This option is separate from using Tor to
|
|
731
|
+
connect the MCP client itself and from publishing an inbound onion address.
|
|
732
|
+
|
|
733
|
+
## Configurable VPS (0.43.0)
|
|
734
|
+
|
|
735
|
+
The VPS is one configurable product: choose the location, operating system,
|
|
736
|
+
vCPUs, memory and SSD disk. `impreza_vps_offer` lists every choice with its
|
|
737
|
+
price per unit for each billing cycle, in the account currency; given a whole
|
|
738
|
+
configuration (`billing_cycle`, `location`, `os`, `cpu_cores`, `memory_gb`,
|
|
739
|
+
`disk_gb`) it returns the exact price, whether the balance covers it and
|
|
740
|
+
whether that location has room right now. `impreza_order_vps` orders that
|
|
741
|
+
configuration with `product_id` left out; fixed plans such as Tor Hosting are
|
|
742
|
+
still ordered by `product_id`. The price charged is the price quoted. See
|
|
743
|
+
[Order a VPS](https://docs.imprezahost.com/order-vps.html).
|
|
744
|
+
|
|
745
|
+
## Private onion previews and retained identities (0.42.0)
|
|
746
|
+
|
|
747
|
+
Preview creation supports `private: true`; optionally supply one or more `onion_clients`.
|
|
748
|
+
Supplied reviewers use a name and X25519 public key. Without supplied clients, a reviewer keypair is generated and the private key is shown once. This mode requires agent
|
|
749
|
+
0.6.20 with `onion-private-preview-v1`; reviewer authorization is installed
|
|
750
|
+
before the first onion publication. Repeated deploys preserve later revocations.
|
|
751
|
+
Do not combine this option with password-protected HTTPS previews.
|
|
752
|
+
|
|
753
|
+
`impreza_purge_onion_key` requires the exact old onion address and explicit
|
|
754
|
+
confirmation. Queued work is not proof of deletion: inspect its completed
|
|
755
|
+
result. Active addresses are refused. Purge removes retained copies on that
|
|
756
|
+
server; exports and backups elsewhere remain. Releasing a reservation for an
|
|
757
|
+
uninstalled application does not delete key material.
|
|
758
|
+
|
|
759
|
+
See the [onion guide](https://docs.imprezahost.com/onion-services.html)
|
|
760
|
+
for permissions, customer update steps and supported limitations.
|