Build, deploy and run full-stack web apps from the conversation.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
The account this connection acts as, and its balance. Call it first. On a connection that has not signed in, the person's application opens Ferrite's connect page, where they sign in to their own account or start a trial. To act as another account, start over or disconnect, the person uses Connected agents in the Ferrite Dashboard; this connection follows on its next call.
fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http ferrite https://mcp.ferrite.cloud/mcp
The account this connection acts as, and its balance. Call it first. On a connection that has not signed in, the person's application opens Ferrite's connect page, where they sign in to their own account or start a trial. To act as another account, start over or disconnect, the person uses Connected agents in the Ferrite Dashboard; this connection follows on its next call.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Read your BILLING STATEMENT (spend observability): current balance, lifetime charged + funded totals, and recent reason-tagged ledger lines (deploy fees, occupancy metering, gateway usage). Anchor: 1,000,000 micros = $1.00. Returns {Statement:{account,balance_micros,total_charged_micros,total_funded_micros,lines:[{at_ms,kind,micros,reason,balance_after}]}}.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}The HOST an app has, or will have once deployed: `<shortcode>.<app domain>`, the shortcode derived from the app id `<account>/<app>` the way the platform names hosts, so an app's origin and OAuth callbacks are known before its first deploy (the `auth` package's secrets need them). Answers {app, host, origin, derived, callback_urls}; callback_urls are the auth package's GitHub and Google callbacks under its default /auth prefix. `app` is your app's name (the account comes from your bearer) or a full '<account>/<app>' id. After a deploy, build_status and list_apps report the host the platform assigned; where they differ, theirs is right.
| Argument | Type | Description |
|---|---|---|
| app* | string | the app's name as in your spec, or '<account>/<app>' |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string",
"description": "the app's name as in your spec, or '<account>/<app>'"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Attach/replace an owned app's autoscale policy: scale between min and max replicas at `capacity` requests/sec per replica.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| max* | integer | |
| min* | integer | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| capacity* | integer |
{
"type": "object",
"required": [
"app",
"min",
"max",
"capacity"
],
"properties": {
"app": {
"type": "string"
},
"max": {
"type": "integer"
},
"min": {
"type": "integer"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"capacity": {
"type": "integer"
}
}
}Return the authenticated account's explicit HUMAN commerce URLs: `dashboard_url` for its owner and `topup_url` for Stripe-hosted card payment. This tool moves no money and never handles card data; present the URL to the human. Call `owner_status` first when the account is unclaimed. Returns {BillingPortal:{account,dashboard_url,topup_url,note}}.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Point a verified owned domain at an owned app (host-routing; HTTPS cert provisioning for custom domains is a follow-on).
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| domain* | string |
{
"type": "object",
"required": [
"domain",
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"domain": {
"type": "string"
}
}
}Read a build, test run or fork by build_id. Pass wait_s: 50 and it waits up to 50 s for the state to change before answering, so you need no sleep between calls; call it again until terminal (deploy build 4-8 min, test run 2-4, fork seconds). Do not end your turn or rely on a background timer meanwhile: in a non-interactive session that ends the session mid-build. deployed: live at https://<host>; give the user that URL (a new host can answer 504 for a minute or two while it is placed). rejected: `reasons` name each violation; fix before a new submission, preserving the selected source or committed-reference workflow. States: building, deploying (keep polling), deployed, undoing, rejected, failed (undone and refunded), stuck (an operator is paged; do not resubmit), tested / test_failed (test_ref). Never resubmit while building, deploying or undoing: that starts a second operation.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| wait_s | integer | Seconds (0-50) to wait for the state to change before answering; 0 answers at once. |
| build_id* | string |
{
"type": "object",
"required": [
"build_id"
],
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"wait_s": {
"type": "integer",
"maximum": 50,
"minimum": 0,
"description": "Seconds (0-50) to wait for the state to change before answering; 0 answers at once."
},
"build_id": {
"type": "string"
}
}
}End a deploy or fork that is still under way, by the build_id it returned: use it when a deploy is waiting on capacity and you want the name back. Returns {{BuildState:{{...}}}}. state 'cancelled' means nothing of it landed, any fee it took is returned, your running application is untouched and you can deploy again; 'deployed' means its operation had already finished, so the version is registered and `status` says whether it has landed, and this ends no trial; 'undoing' means it cannot land and is still being cleaned up. A wait has no time limit of its own, so this is how you end one.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| build_id* | string |
{
"type": "object",
"required": [
"build_id"
],
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"build_id": {
"type": "string"
}
}
}Claim an ephemeral session to a DURABLE owner, ending its subsidy. With owner_id: into that NEW account, created now (credit_micros is granted only where the platform's test credit mint is on); an id that already exists is refused. Without owner_id: into the EXISTING account your token authenticates (Authorization header or token), which that token authorizes. Needs claim_token from provision_ephemeral. Returns {Claimed:{account,token}} for a new account, {ClaimedInto:{account}} for your own.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| owner_id | string | |
| claim_token* | string | |
| credit_micros | integer |
{
"type": "object",
"required": [
"claim_token"
],
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"owner_id": {
"type": "string"
},
"claim_token": {
"type": "string"
},
"credit_micros": {
"type": "integer"
}
}
}Claim a custom domain; returns a verify_token to publish as a DNS TXT record, then call verify_domain.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| domain* | string |
{
"type": "object",
"required": [
"domain"
],
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"domain": {
"type": "string"
}
}
}A single-use link, valid for 24 hours, for the person to sign in to Ferrite with Google or GitHub and take this account as theirs; it works on a trial connection too. Offer it when they mention an existing Ferrite account, want to keep this work, or want to use it from another device. On a trial the page offers Keep this as my account (a permanent account of their own with the same apps, links and data) or Move it into the account they already have, and this connection follows. Give them only `url`. Returns {OwnerClaimMinted:{web_token,expires_at_ms,account,url}}.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Check source policy before submission (no #![forbid(unsafe_code)] at the crate root = CODE_UNSAFE_PERMITTED; a dependency besides ferrite-app). Fix violations before continuing. Admission is not compilation or a test verdict. For existing-app repairs, commit changed files and deploy the exact returned reference; see rcs_commit. Cargo.toml: [package] name="<name>" version="0.1.0" edition="2021" [dependencies] ferrite-app={path="../ferrite-app"} API for handle() in deploy_source's loop. Request: req.method, req.path (may end ?query), req.body (Vec<u8>; a form post is urlencoded), req.idempotency_key, req.headers (only those the route lists, e.g. add "forward_headers":["cookie"] to the spec's route to read a cookie). Reply: let mut r=IngressReply::to(req,200,html.into_bytes()); r.headers.push(("content-type".into(),"text/html; charset=utf-8".into())); a form POST answers 303 with ("location","/"); at most one ("set-cookie",...) per reply. Store db, each call async -> io::Result: get(&[u8])->Option<Vec<u8>>; put(&[u8],&[u8]); add(&[u8],i64)->(new,version), an atomic counter get reads as decimal text; scan_prefix(prefix,None,500)->(Vec<(key,value,version)>,more); put_if_version(k,v,None).await?.is_ok() creates k only if absent. std and ferrite_app only (ferrite_app::serde_json), escape visitor text in HTML. #[test]s go in src/main.rs under #[cfg(test)]; deploy_source does not run them (see test_ref). Returns {admitted, violations:[{code,detail}], test_admitted, test_violations, tests_scanned}. `packages` adds Ferrite source packages under src/<root>/.
| Argument | Type | Description |
|---|---|---|
| files* | object | map of relative path -> file content, e.g. {"Cargo.toml": "...", "src/lib.rs": "..."} |
| packages | array | Ferrite source packages to compile in, by name from list_packages ("name" or "name@version"). The server adds each package's files, and its dependencies', under src/<root>/ before anything reads `files`; declare each root in src/lib.rs (read_package gives the lines). Do not send those files yourself: a changed copy is refused. |
Confirm a prepared rotation: present the NEW token from rotate_token as your bearer -- the Authorization header, or the token argument on a connection that sends no header (beside a header still carrying the old token it is refused as a conflict). It becomes live and the token it replaces stops working. Safe to repeat.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Read your account's CREDENTIALS -- the view containment and recovery act on: whether a human owner is linked (never their email), every live credential (the first 8 characters of its digest, never a token; its origin; when it was issued; `presented` for the one you sent), the pending ones (a prepared rotation, an owner's replace in flight), and the recent credential-change notice (the last 16 changes; `lowest_retained_generation` tells a truncated notice from a complete one). Returns {Credentials:{account,owner_linked,generation,live,pending,changes,lowest_retained_generation}}.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Cut an IMMUTABLE release name for a committed revision (a reproducible snapshot). 'reference' is a branch name or commit id (omit for the 'main' head). When the platform requires tests, the commit must carry a PASSING verdict (a release is a tested snapshot). Returns {Released:{app,release,commit}}, {AlreadyReleased}, or {Rejected}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| release* | string | |
| reference | string |
{
"type": "object",
"required": [
"app",
"release"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"release": {
"type": "string"
},
"reference": {
"type": "string"
}
}
}List a queue service's dead letters, oldest first: messages delivered as many times as the queue allows without being acknowledged, which no consumer can take and which keep their bytes against the service's volume_mib until removed. Each says its id, its attempts and its size, and for an ordered message its key, its number and whether it killed its key. `total` is the queue's whole count; page with `after`, the last id seen.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| after | integer | List after this id |
| limit | integer | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| service* | string | The queue service, as your spec names it |
{
"type": "object",
"required": [
"app",
"service"
],
"properties": {
"app": {
"type": "string"
},
"after": {
"type": "integer",
"minimum": 0,
"description": "List after this id"
},
"limit": {
"type": "integer",
"maximum": 1000,
"minimum": 1
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"service": {
"type": "string",
"description": "The queue service, as your spec names it"
}
}
}Delete your push channel (idempotent). The durable notification FEED is untouched — `notifications` still reads every event. Returns {NotifyChannelDeleted}.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}DELETE a preview explicitly - previews are part of the testing lifecycle, NOT permanent artifacts: the base-app OWNER tears a preview down IMMEDIATELY, without waiting for its TTL sweep. `preview_app` is the id returned by preview_ref ({owner}/{base}-preview-{short}). Authorized by owning the base app (a foreign-namespace id is refused); idempotent (deleting an already-gone preview succeeds); the TTL sweep composes (a deleted preview is skipped). Returns {PreviewDeleted:{preview_app}}.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| preview_app* | string |
{
"type": "object",
"required": [
"preview_app"
],
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"preview_app": {
"type": "string"
}
}
}Remove an OWNED app's hosted source repository, for an app that is withdrawn or was never deployed: every branch, tag and release goes at once, and the objects go within about three hours, which is when the bytes stop counting against your account. A commit landing after this reads stands, with what it reaches, and you are told so: run this again to remove it. What landed before it is gone, even if its commit was answered after. Nothing here can be undone.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Delete one owned app secret by name (idempotent — deleting a missing name succeeds). The app stops receiving it on its next deploy. Returns {SecretDeleted:{app,name}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| name* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app",
"name"
],
"properties": {
"app": {
"type": "string"
},
"name": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Read one ENVIRONMENT's deploy history (newest first — the audit trail of what release ran, when, and by whom). Returns {DeployLog:{app,env,events:[{release,commit,at_ms,by}]}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| env* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app",
"env"
],
"properties": {
"app": {
"type": "string"
},
"env": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}For existing-app repairs, use the exact commit returned by rcs_commit; unchanged files are already in the repository. Deploys a revision committed with rcs_commit; not for a first deploy or a fork redeploy (deploy_source: one build, no verdict). When the platform requires tests, it refuses a commit without a passing test_ref verdict; the repository's ferrite.json must name exactly this app (for a fork, the fork's name). Deploy a COMMITTED revision of the app's repository: the platform checks out the source at the ref (omit for the 'main' head), reads the deployment spec FROM the repo ('spec_path', default 'ferrite.json'), attest-builds, and deploys — the version-controlled deploy flow (no monolithic single-call upload). ASYNCHRONOUS, for the same reason as deploy_source: it compiles your source, which takes minutes. Returns {BuildStarted:{build_id,app}}; then `build_status` (wait_s: 50). Do NOT resubmit while it is building.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| instances | integer | |
| reference | string | |
| spec_path | string |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"instances": {
"type": "integer"
},
"reference": {
"type": "string"
},
"spec_path": {
"type": "string"
}
}
}Deploy a cut RELEASE to an ENVIRONMENT (env: prod | staging | canary | any [a-z0-9-]). 'prod' deploys the app's canonical id; another env deploys a derived '{app}-{env}' with its OWN subdomain, record, and instances (so staging and prod run side by side). The platform runs it AND advances the environment's audit log. It runs as a durable operation (the attested build, the deploy, then the environment's pointer as its LAST step), so a large application's gates never hold the call: it returns BuildStarted{build_id} at once; poll build_status -- `deployed` once the environment's pointer names the release (with the host and generation), `pointer_denied` if the environment's deploy authority refused the advance (the application still deployed). Do NOT resubmit while it is building.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| env* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| release* | string | |
| instances | integer |
{
"type": "object",
"required": [
"app",
"env",
"release"
],
"properties": {
"app": {
"type": "string"
},
"env": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"release": {
"type": "string"
},
"instances": {
"type": "integer"
}
}
}FIRST deploy and fork redeploy: ONE build (4-8 min), not rcs_commit+test_ref+deploy_ref (two). First run code_gate on the files (1 s; it lists Cargo.toml and the API). Then build_status {build_id, wait_s: 50}; never resubmit. Same app and service names again = update, data kept. spec (string; set name, artifact_key apps/<name>@v1). For a small store, hot_set_gib 0 uses the default cache; 1 requests 1 GiB per store copy. Call estimate_cost with this spec and the planned instance count first: {"services":[{"name":"requests","primitive":"queue","workload":{"read_qps":50,"write_qps":50,"record_size_kb":1,"keying":"PerKey","hot_set_gib":1}},{"name":"data","primitive":"store","workload":{"read_qps":50,"write_qps":50,"record_size_kb":1,"keying":"PerKey","hot_set_gib":0}}],"applications":[{"name":"vote","artifact_key":"apps/vote@v1","artifact_sha256":"0000000000000000000000000000000000000000000000000000000000000000","bindings":[{"handle":"requests","kind":"queue","service":"requests"},{"handle":"data","kind":"store","service":"data"}],"routes":[{"prefix":"/","binding":"requests","kind":"api"}],"compute":{"memory_mb":256,"cpu_percent":50}}]} src/main.rs (keep the loop, write handle()): #![forbid(unsafe_code)] use ferrite_app::client::StoreClusterClient; use ferrite_app::{app_main,rt,serde_json,AppContext,FerriteApp,IngressReply,IngressRequest}; struct App; impl FerriteApp for App{fn run(ctx:AppContext)->impl std::future::Future<Output=std::io::Result<()>>+Send{serve(ctx)}} async fn serve(ctx:AppContext)->std::io::Result<()>{ let mut q=ctx.queue("requests")?;let mut db=ctx.store("data")?; loop{ let l=match q.poll_wait(1_000).await{Ok(Some(x))=>x,Ok(None)=>continue, Err(_)=>{rt::time::sleep(std::time::Duration::from_millis(200)).await;continue}}; let Ok(req)=serde_json::from_slice::<IngressRequest>(&l.payload) else{let _=q.ack(l.token).await;continue}; let rep=match handle(&mut db,&req).await{Ok(r)=>r,Err(_)=>IngressReply::to(&req,503,b"retry".to_vec())}; if let Ok(mut o)=ctx.reply_to_queue(&req.reply_to).await{if let Ok(p)=serde_json::to_vec(&rep){let _=o.publish(&p).await;}} let _=q.ack(l.token).await;}} async fn handle(db:&mut StoreClusterClient,req:&IngressRequest)->std::io::Result<IngressReply>{/*yours*/} fn main(){app_main::<App>()}
| Argument | Type | Description |
|---|
Describe an owned app: serving host, artifact, desired/running instances, generation, compute bound, autoscale policy.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}List the services an owned app's CURRENT deployment holds, read from its committed deployment record: each binding's handle, primitive (store, log, topics, queue, ape, blob or egress), shard count and replication (the member seats per shard; null for egress), with the record's generation. generation is null and services empty when the app has no current deployment. Carries no address, key or credential.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}List the app's ENVIRONMENT pointers (each env -> its current release + the last deploy event). Returns {Environments:{app,environments:[{env,release,commit,at_ms,by}]}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}PRE-DEPLOY COST + CAPS ESTIMATE (the try-before-you-buy surface — charges nothing, deploys nothing): validates the spec exactly as a deploy would and reports what a deploy WOULD charge now (the deploy fee), your balance + tier, the per-app instance count + per-instance compute bound that WILL apply (ephemeral tier: clamped to 1 instance and 256 MiB / 50% CPU per instance, enforced as a cgroup bound; durable tier: your spec's compute, or the platform default when undeclared), your tier's caps (source size, session TTL, subsidized credit), and honest notes on what is priced (the deploy fee; per-request serving where enabled) vs projected: the occupancy / stream-group / storage / request rates are the FLEET-DERIVED pricing model (each resource priced from its measured provider-cost driver; anchor: 1,000,000 micros = $1.00), returned as `rates`, with per-app `occupancy_micros_per_hour` + `projected_monthly_micros` projections and, in `notes`, which prices apply at this read and what each service's data costs by axis (occupancy is metered hourly against your balance: reserved compute and data; an exhausted balance suspends your apps; `service_costs` reads the same figures for what is deployed). Call it BEFORE deploy_source / deploy_ref to see your footprint — and how 'claim' lifts the ephemeral caps (credit beyond the subsidy is bought through 'billing_portal'). Returns {Estimate:{tier,balance_micros,deploy_fee_micros,spec_valid,violations,apps,caps,notes,rates}}.
| Argument | Type | Description |
|---|---|---|
| spec* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| instances | integer |
Explain a gate violation code (CODE_*/APP_*/CAP_*/DELTA_*/SERVICE_*/SPEC_*/COMPUTE_*) and how to fix it. For spec violations, validate_spec's live fix_it is canonical.
| Argument | Type | Description |
|---|---|---|
| code* | string |
{
"type": "object",
"required": [
"code"
],
"properties": {
"code": {
"type": "string"
}
}
}Copy a running app WITH its data (copy-on-write, seconds): {app, fork_app}, fork_app a new name such as <app>-karaoke. Returns {BuildStarted:{build_id}}; build_status reports deployed within seconds with the fork's host and one line per service (forked = copied). The original keeps serving, unchanged. To change the copy: deploy_source ONCE with your edited files and the same spec except application name = fork_app exactly (artifact_key apps/<fork_app>@v1); keep the service names so the copied data stays. One build. Not rcs_checkout/rcs_commit/test_ref/deploy_ref: deploy_ref needs a manifest naming the fork and, when the platform requires tests, a passing commit-bound test verdict before deployment. Then give the user both URLs. A fork refused with "is FULL" is a temporary capacity limit and costs nothing: retry the same fork call (each retry is free). Never substitute a fresh app: it would lose the data the user asked to keep. as_of_unix_micros (optional) forks the state as of a past instant within 14 days. A code branch without data: rcs_branch. Details (not needed for the steps above): read_docs doc=forking.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| fork_app* | string | |
| as_of_unix_micros | integer |
{
"type": "object",
"required": [
"app",
"fork_app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"fork_app": {
"type": "string"
},
"as_of_unix_micros": {
"type": "integer",
"minimum": 0
}
}
}Grant TEST/development credit directly to the authenticated account; returns {Funded:{balance_micros}}. Admitted only where the platform's test credit mint is on (the front's `[commerce] test_credit_mint`); elsewhere it answers Rejected (TEST_CREDIT_MINT_DISABLED), grants nothing, and names the account's top-up page -- credit is bought there, through `billing_portal`. This is NOT a card payment: real human top-ups use `billing_portal`, then Stripe's hosted checkout. F-17 remains the precondition before credit denominates real money.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| micros* | integer |
{
"type": "object",
"required": [
"micros"
],
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"micros": {
"type": "integer"
}
}
}List the apps the authenticated account owns, each with its serving host (URL) and running/desired instance counts.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}List the custom domains you own (name, verified, bound app).
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}A one-page app (poll, form, sign-up sheet) needs no package. LIST the Ferrite source packages this server can compile into your app: vendored Rust source (sign-in, the Alloy runtime, crypto, cookies, MCP and ACP, the agent SDK, a browser engine and more), because a deployable app may depend on no crate but ferrite-app. Each entry is {name, version, root, summary, dependencies, files, bytes}; `query` keeps the packages whose name, summary or guide holds every word. read_package gives one package's guide, its files and the steps to use it; then `"packages": ["<name>"]` on code_gate and deploy_source adds its files for you. With a shell, `ferrite add <name>` writes the same files.
| Argument | Type | Description |
|---|---|---|
| query | string | words to find, e.g. "sign-in" or "hmac"; omit for every package |
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "words to find, e.g. \"sign-in\" or \"hmac\"; omit for every package"
}
}
}List an owned app's secret NAMES only (values are never returned by the management API — they only reach the app by deploy-time injection). Returns {Secrets:{app,names}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Read an owned app's durable captured-log tail (newest last), including each ended instance set's last lines followed by its end line: when, why, and how many processes it stopped.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| tail | integer | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"tail": {
"type": "integer"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}TEAM / RBAC: list an org's ACTIVE members + roles (the actor must be the org owner or a current member). Returns {Members:{org,members:[[member,role]]}}.
| Argument | Type | Description |
|---|---|---|
| org* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"org"
],
"properties": {
"org": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Read your NOTIFICATION FEED — the platform's durable, account-scoped 'your production changed state' events: a payment credited, your apps SUSPENDED because occupancy charges exhausted the balance, a deploy REFUSED for insufficient funds. This is how you find out something happened to your production that you did not initiate. Check it when something seems off, after funding, and periodically while you run production. Oldest first; 'limit' returns the newest N (default 50; 0 = all retained). Returns {Notifications:{account,lines:[{at_ms,severity,kind,body,dedup,source}]}}.
| Argument | Type | Description |
|---|---|---|
| limit | integer | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"limit": {
"type": "integer"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Read your push channel's state (never the secret — that is returned once, at set time): the receiver URL, how many events were delivered, the current failure streak, and the last receiver status/error — so a BROKEN receiver is visible to you. Returns {NotifyChannelStatus:{url,delivered,failures,last_status,last_error,cursor_ms}}.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Whether this account has a human owner, and who. An owned account needs no claim link: the person's other agents join it by signing in to Ferrite when they connect.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Deploy a COMMITTED revision as an UNGATED, throwaway PREVIEW on its OWN subdomain (a validation copy, safe by isolation: NOT test-gated, NEVER charged, NEVER a permanent name claim; authorized by owning the base app). Auto-expires (TTL) and is swept. Preview un-green code on purpose before you cut a release. ASYNCHRONOUS: it compiles your source, which takes minutes. Returns {BuildStarted:{build_id,app}}; poll `build_status`, which answers {PreviewDeployed:{app,preview_app,host,expires_at_ms,commit}} once it is live. Do NOT resubmit while it is building.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| instances | integer | |
| reference | string |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"instances": {
"type": "integer"
},
"reference": {
"type": "string"
}
}
}Promote the release 'from_env' names into 'to_env' (e.g. staging -> prod), once it has landed in 'from_env'. Until then it is refused by a first word: RELEASE_ON_TRIAL, RELEASE_MOVED and RELEASE_UNREAD ask you to promote again, and RELEASE_FAILED, RELEASE_NOT_RUNNING and RELEASE_GONE need a deploy first. Returns BuildStarted{build_id}; poll build_status as for deploy_release.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| to_env* | string | |
| from_env* | string | |
| instances | integer |
{
"type": "object",
"required": [
"app",
"from_env",
"to_env"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"to_env": {
"type": "string"
},
"from_env": {
"type": "string"
},
"instances": {
"type": "integer"
}
}
}Provision a DURABLE tenant account (open — no auth). Returns {Provisioned:{id,token}} (the bearer token) or {AlreadyProvisioned}. credit_micros is granted only where the platform's test credit mint is on; elsewhere a nonzero credit_micros is refused ({Rejected}, TEST_CREDIT_MINT_DISABLED) and nothing is created. Use the token on every other Ring 2 call (Authorization header preferred, or the 'token' argument).
| Argument | Type | Description |
|---|---|---|
| id* | string | |
| credit_micros | integer |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"credit_micros": {
"type": "integer"
}
}
}Open a trial account with free credit, ready to deploy at once, for a client that has no sign-in of its own: a script, or an agent without a browser. A connected application never needs it: it is already signed in to the person's account or to its own trial. Returns {EphemeralProvisioned:{account,token,claim_token,expires_at_ms,credit_micros}}: keep both tokens private.
No arguments.
{
"type": "object",
"properties": {}
}Create a BRANCH (the branching model — a concurrent line on the SAME codebase, distinct from fork's physical independent copy): create 'branch' at 'from' (a branch name or commit id; omit for the 'main' head), so it starts from that snapshot and diverges as you rcs_commit onto it (branch=<name>) and deploy_ref it (reference=<name>). Returns {RcsCommitted:{app,branch,commit}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| from | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| branch* | string |
{
"type": "object",
"required": [
"app",
"branch"
],
"properties": {
"app": {
"type": "string"
},
"from": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"branch": {
"type": "string"
}
}
}List the app repository's branches (name + tip commit). Returns {RcsBranches:{app,branches:[[name,tip]]}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}CHECK OUT (clone/pull) the app repository's source at a ref (a branch name or a commit id; omit for the 'main' head). Returns {RcsCheckout:{app,commit,files}} — the {path: content} to iterate on.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| reference | string |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"reference": {
"type": "string"
}
}
}For an existing-app repair, send only changed files with complete contents; omitted files remain in the hosted repository, so do not re-upload unchanged generated packages. Save RcsCommitted.commit and use that exact reference for required test_ref and deploy_ref. Preserve the existing manifest and app identity. COMMIT files to the app's hosted source repository — INCREMENTAL: each commit overlays the previous tree, so you build the app up over MANY commits (many generations) instead of one giant upload; the FIRST commit claims the app. Optionally commit on a 'branch' (the branching model — a concurrent line on the SAME codebase; default 'main'). 'files' maps relative path -> file content. Returns {RcsCommitted:{app,branch,commit}}. `packages` names Ferrite source packages (list_packages, read_package) whose files the server adds to `files` under src/<root>/, with their dependencies', exactly as `ferrite add` writes them.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| files* | object | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| branch | string | |
| message | string | |
| packages | array | Ferrite source packages to compile in, by name from list_packages ("name" or "name@version"). The server adds each package's files, and its dependencies', under src/<root>/ before anything reads `files`; declare each root in src/lib.rs (read_package gives the lines). Do not send those files yourself: a changed copy is refused. |
Commit a single text or binary file into an owned app's hosted source repository using MCP file transfer (inline base64 up to 1 MiB, or out-of-band upload up to 16 MiB). Returns {RcsCommitted:{app,branch,commit}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | App name or '<account>/<app>' |
| file* | object | File payload (inline base64 or out-of-band MCP upload) |
| path* | string | Relative repository path (e.g. 'assets/logo.png' or 'src/main.rs') |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| branch | string | Target branch (default: 'main') |
| message | string | Commit message (default: 'commit <path>') |
{
"type": "object",
"required": [
"app",
"path",
"file"
],
"properties": {
"app": {
"type": "string",
"description": "App name or '<account>/<app>'"
},
"file": {
"type": "object",
"required": [
"id",
"name",
"mimeType",
"size"
],
"properties": {
"id": {
"type": "string"
},
"data": {
"type": "string",
"contentEncoding": "base64"
},
"name": {
"type": "string"
},
"size": {
"type": "integer",
"maximum": 16777216,
"minimum": 0
},
"digest": {
"type": "object",
"required": [
"algorithm",
"value"
],
"properties": {
"value": {
"type": "string"
},
"algorithm": {
"enum": [
"sha-256"
],
"type": "string"
}
}
},
"mimeType": {
"type": "string"
}
},
"x-mcp-file": {
"maxSize": 16777216
},
"description": "File payload (inline base64 or out-of-band MCP upload)"
},
"path": {
"type": "string",
"description": "Relative repository path (e.g. 'assets/logo.png' or 'src/main.rs')"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"branch": {
"type": "string",
"description": "Target branch (default: 'main')"
},
"message": {
"type": "string",
"description": "Commit message (default: 'commit <path>')"
}
}
}LAND a branch onto a protected trunk through the merge-result GATE (the trunk gate / branch protection): admitted ONLY if 'from' DESCENDS from the current 'into' tip (so the commit that was tested IS the commit that lands — the merge-queue insight; a stale branch behind the trunk is refused with status 'stale' — re-integrate via rcs_merge then re-test) AND, when the platform requires tests, 'from's tip carries a PASSING verdict (test_ref it first). A version-guarded fast-forward, so concurrent lands serialize. Returns {RcsLanded:{app,into,commit}}, or {RcsMerged:{status:'stale'|'conflict-retry'}}, or {Rejected} when the verdict gate fires.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| from* | string | |
| into* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app",
"from",
"into"
],
"properties": {
"app": {
"type": "string"
},
"from": {
"type": "string"
},
"into": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Read the app repository's commit log (of 'branch'; default 'main', newest first). Returns {RcsLog:{app,commits:[{commit,message,author,timestamp_ms}]}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| limit | integer | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| branch | string |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"limit": {
"type": "integer"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"branch": {
"type": "string"
}
}
}Merge the 'from' branch's tip into 'into' (three-way; reconcile a branch back, e.g. an experiment into main). On a content conflict the diverged paths are returned and NO commit is made. Returns {RcsMerged:{app,into,commit,status,conflicts}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| from* | string | |
| into* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app",
"from",
"into"
],
"properties": {
"app": {
"type": "string"
},
"from": {
"type": "string"
},
"into": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}A small web app (poll, RSVP, sign-up sheet): read {"doc":"page-app-starter"}, a verified one-file app, and nothing else before the first deploy. Read further docs only when one specific API, gate code or bound blocks you. READ the Ferrite documentation. With no arguments: the agent brief (the rules to know before building) and the index of every document with its size. {"doc":"<id>"} returns a document of 12 KB or less whole and a larger one as its outline of section ids; then {"doc":"<id>","section":"<section id>"} returns one section, and {"doc":"<id>","full":true} returns everything. search_docs finds the right section fastest. The same documents are served as MCP resources.
| Argument | Type | Description |
|---|---|---|
| doc | string | a document id from the index or a search result (omit for the brief and the index) |
| full | boolean | true returns a large document whole instead of its outline |
| section | any | one section id or a list of section ids from the outline or a search result |
{
"type": "object",
"properties": {
"doc": {
"type": "string",
"description": "a document id from the index or a search result (omit for the brief and the index)"
},
"full": {
"type": "boolean",
"description": "true returns a large document whole instead of its outline"
},
"section": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
},
"maxItems": 32
}
],
"description": "one section id or a list of section ids from the outline or a search result"
}
}
}A one-page app (poll, form, sign-up sheet) needs no package; alloy (thousands of lines) is for larger sites, auth for sign-in. READ one Ferrite source package. Without `file`: its version, module root, dependency closure in install order, its files (paths as they land in your app), its guide (README and setup), and `use`, the exact steps to compile it in: the crate-root lines for src/lib.rs, the `packages` argument for code_gate and deploy_source, and any Cargo features or spec entries it needs. With `file` (a path from that list, or README.md): that file's text as it lands in your app; a large file comes in parts, continued with `offset`.
| Argument | Type | Description |
|---|---|---|
| file | string | a path from the package's file list (e.g. src/crypto/mod.rs), or README.md |
| name* | string | a package name from list_packages, optionally name@version |
| offset | integer | with `file`: the byte offset to continue from (the previous reply's next_offset) |
{
"type": "object",
"required": [
"name"
],
"properties": {
"file": {
"type": "string",
"description": "a path from the package's file list (e.g. src/crypto/mod.rs), or README.md"
},
"name": {
"type": "string",
"description": "a package name from list_packages, optionally name@version"
},
"offset": {
"type": "integer",
"description": "with `file`: the byte offset to continue from (the previous reply's next_offset)"
}
}
}List the app's IMMUTABLE releases (name + commit). Returns {Releases:{app,releases:[{name,commit}]}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Remove a queue service's dead letters: `ids`, or `all`, one of the two. The bytes come back at once, so a queue refused for its volume_mib takes writes again. An id not dead now is passed over and not counted, so a live message is never removed. Removing the message an ordered key died on BRINGS THE KEY BACK: its later messages resume in order, with a gap where the removed number was, and `came_back` says how many per key; it can be none, since messages delivered together spend their attempts together. `all` takes up to 16000 in one call: call it again while `remaining` is above 0.
| Argument | Type | Description |
|---|---|---|
| all | boolean | |
| app* | string | |
| ids | array | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| service* | string | The queue service, as your spec names it |
{
"type": "object",
"required": [
"app",
"service"
],
"properties": {
"all": {
"type": "boolean"
},
"app": {
"type": "string"
},
"ids": {
"type": "array",
"items": {
"type": "integer",
"minimum": 0
},
"maxItems": 1000
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"service": {
"type": "string",
"description": "The queue service, as your spec names it"
}
}
}TEAM / RBAC: remove a MEMBER from an org (the actor must be an Admin; the org root cannot be removed). Returns {MemberRemoved:{org,member}}.
| Argument | Type | Description |
|---|---|---|
| org* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| member* | string |
{
"type": "object",
"required": [
"org",
"member"
],
"properties": {
"org": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"member": {
"type": "string"
}
}
}What this account's source repositories hold and may hold: the figure a commit, push, capture, merge or fork is judged against, its ceiling, whether it shares the pool trials and accounts with no payment answer to, and what each repository held at the last hourly measure, largest first.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}RESUME a PARKED application: the platform parks an app that crash-loops or whose account ran out of credit (`status` shows `park_phase` and `park_retry_after_ms`). This retries it now through fresh account admission instead of waiting for the automatic retry. Answers {ParkRetryStarted:{app,generation}} when the app is placed again (follow it with `status`), {ParkRetryBlocked:{app,resource,requested,cap,retry_after_ms}} when admission still refuses it (add credit through `billing_portal` or lower its compute, then retry), {ParkedMutationRefused:{app,phase,retry_after_ms}} while a retry is already pending, or an Error when the app is not parked. The Dashboard's Resume button is this call.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Retry a PARKED app: one whose instances crash-looped, so its rollout was paused and further deploys answer ParkedMutationRefused. Fix the cause first, then call this: the app is re-admitted against your account's current balance and quotas and its rollout resumes. Returns {ParkRetryStarted:{app,generation}}; {ParkRetryBlocked:{app,resource,requested,cap,retry_after_ms}} when an account quota cannot cover it; {ParkedMutationRefused:{app,phase,retry_after_ms}} while the park is still settling (call again after retry_after_ms); an error when the app is not parked.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Revoke EVERY other credential of your account except the one you present, and cancel pending rotations -- containment when a token may have leaked. A human owner's recovery in flight is kept.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Roll an owned app back to its previous artifact (health-gated by the worker).
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Roll an ENVIRONMENT to a specified prior RELEASE (forward-moving; the audit log records it, never rewritten). Returns BuildStarted{build_id}; poll build_status as for deploy_release.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| env* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| instances | integer | |
| to_release* | string |
{
"type": "object",
"required": [
"app",
"env",
"to_release"
],
"properties": {
"app": {
"type": "string"
},
"env": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"instances": {
"type": "integer"
},
"to_release": {
"type": "string"
}
}
}Prepare a ROTATION of your bearer token: answers a NEW token that works only after you confirm it with confirm_token (within 15 minutes); your current token keeps working until then. STORE the new token before confirming -- confirm_token, called with the new token as your bearer, retires the old one.
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Scale an owned app to 'instances' instances (the platform reconciles; survivors are not restarted).
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| instances* | integer |
{
"type": "object",
"required": [
"app",
"instances"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"instances": {
"type": "integer"
}
}
}SEARCH the Ferrite documentation: the published developer docs (the ferrite CLI and its local loop, `ferrite add` packages, authentication, Alloy, Rsx, data, agents, deploy, observe, limits), the support guides, and the platform documents `read_docs` serves. Large documents are searched section by section. Returns up to `limit` ranked matches {doc,title,section,heading,snippet,bytes,read}; read a match with read_docs and its `read` object. Every word of the query must appear in a match.
| Argument | Type | Description |
|---|---|---|
| limit | integer | maximum results, 1-20 (default 8) |
| query* | string | words to find, e.g. "sign-in allow list" or "ferrite dev egress" |
{
"type": "object",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"description": "maximum results, 1-20 (default 8)"
},
"query": {
"type": "string",
"description": "words to find, e.g. \"sign-in allow list\" or \"ferrite dev egress\""
}
}
}What each service of an OWNED app reserves and is charged, and what that costs a month at the prices in force, by axis: its stated disk (`volume_mib`) and its charged memory (the hot set it declares, or the default). These are the figures the bill reads. `copies` says how many copies each byte is held in, and `notes` says which prices these are. It charges nothing.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Set both finite per-replica compute axes on an owned deployment without changing its artifact: `memory_mb` and `cpu_percent` (100 = one core). The front re-runs account admission and the worker applies the new cgroup bound; use `status` to observe the exact admitted hold and rollout.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| memory_mb* | integer | |
| cpu_percent* | integer |
{
"type": "object",
"required": [
"app",
"memory_mb",
"cpu_percent"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"memory_mb": {
"type": "integer"
},
"cpu_percent": {
"type": "integer"
}
}
}TEAM / RBAC: add or update a MEMBER's role in an org (the org is normally your own account id). role is admin|deployer|viewer (Admin manages members + billing + deploys; Deployer deploys + reads; Viewer reads). The actor must be an Admin of the org. Returns {MemberSet:{org,member,role}}.
| Argument | Type | Description |
|---|---|---|
| org* | string | |
| role* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| member* | string |
{
"type": "object",
"required": [
"org",
"member",
"role"
],
"properties": {
"org": {
"type": "string"
},
"role": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"member": {
"type": "string"
}
}
}PUSH: register a signed-webhook RECEIVER for your notification feed, so the platform TELLS you when your production changes state instead of you polling. `url` must be https. The platform returns a shared `secret_hex` ONCE (it is sealed at rest afterwards): every delivery POSTs {"signature":"t=<unix>,v1=<hmac-sha256>","payload":"<the event JSON, verbatim>"}, where the HMAC is over "{t}.{payload}" with that secret — the SAME scheme Stripe uses (and that this platform verifies on inbound provider webhooks), so verify it with any standard implementation. Deliveries are at-least-once and resume EXACTLY where they stopped: the cursor advances only on a 2xx, retries back off (5s..5min), and nothing is ever lost — the durable feed (`notifications`) remains the source of truth. Setting a channel starts from NOW (no backlog replay). Delivery rides the platform's audited egress gate under a token scoped to YOUR url alone. Returns {NotifyChannelSet:{url,secret_hex}}.
| Argument | Type | Description |
|---|---|---|
| url* | string | the https receiver URL |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| secret_hex | string | optional: your own signing secret (16..=64 bytes of hex); omit to have the platform generate one |
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "the https receiver URL"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"secret_hex": {
"type": "string",
"description": "optional: your own signing secret (16..=64 bytes of hex); omit to have the platform generate one"
}
}
}Set one per-app SECRET (confidential config: an API key, token, or connection string). The value is stored ENCRYPTED at rest and injected DECRYPTED into your app at deploy — the app reads it via ctx.secret("<name>") (NEVER an env var; the code gate bars std::env). Owner-gated; the value is write-only (never returned by the API). Bounds: name [A-Za-z0-9_.-] <=64, value <=64 KiB, <=64 secrets per app. Returns {SecretSet:{app,name}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| name* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| value | string | Secret value. Omit on MCP 2026-07-28 clients supporting URL elicitation to enter it directly in the Ferrite Dashboard without sending it through chat. |
{
"type": "object",
"required": [
"app",
"name"
],
"properties": {
"app": {
"type": "string"
},
"name": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"value": {
"type": "string",
"description": "Secret value. Omit on MCP 2026-07-28 clients supporting URL elicitation to enter it directly in the Ferrite Dashboard without sending it through chat."
}
}
}Read an owned deployment's complete operational status: running/desired instances, observed generation, the exact admitted compute hold, parked state, per-worker serving/candidate rollout documents, and the instance lifecycle: each worker's serving set (a new set_id is a new process) with every process's start and unexpected exits, and the sets that ENDED there with why and their last lines. Use this when diagnosing placement, rollout, reservation or crash-loop state, or a restart you did not cause.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}Send Ferrite a bug report, a suggestion, or feedback from your user. Omit secrets and private logs. Reuse the same request_id when retrying.
| Argument | Type | Description |
|---|---|---|
| kind* | string | |
| topic | string | Optional short subject, up to 240 UTF-8 bytes. |
| report* | string | Full feedback, up to 8192 UTF-8 bytes. |
| source* | string | |
| request_id* | string | A fresh UUID for this report; keep it for retries. |
{
"type": "object",
"required": [
"request_id",
"kind",
"source",
"report"
],
"properties": {
"kind": {
"enum": [
"bug",
"suggestion",
"feedback"
],
"type": "string"
},
"topic": {
"type": "string",
"description": "Optional short subject, up to 240 UTF-8 bytes."
},
"report": {
"type": "string",
"description": "Full feedback, up to 8192 UTF-8 bytes."
},
"source": {
"enum": [
"user",
"agent"
],
"type": "string"
},
"request_id": {
"type": "string",
"description": "A fresh UUID for this report; keep it for retries."
}
},
"additionalProperties": false
}Runs a committed revision's #[test]s as its own 2-4 minute build. Run required tests against the exact committed revision before deploying it. TEST a COMMITTED revision (the platform's in-house test gate — no external CI): the platform checks out the app's repo at the ref (omit for the 'main' head), GATES + RUNS its tests (constrained test code against the platform's vetted test SDK), and stores a commit-bound verdict. When the platform requires tests, deploy_ref requires a passing verdict for that commit. ASYNCHRONOUS, and the longest of the three: it compiles the app AND its tests, then runs them. Returns {BuildStarted:{build_id,app}}; then `build_status` (wait_s: 50), which reports 'tested' (green) or 'test_failed' with the summary.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| reference | string |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"reference": {
"type": "string"
}
}
}Read an OWNED app's USAGE + TELEMETRY (the tenant observability surface): total + error request counts, bytes served, average + peak served latency (ms), the per-request credit spent, and the observation window — folded live from the gateway's per-response usage events. Returns {Usage:{app,requests,errors,bytes,avg_latency_ms,max_latency_ms,charged_micros,first_ms,last_ms}}.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}The spec in deploy_source's description passes as given with your names; run this only if you change more. Validate an InfraSpec (JSON) against the LIVE AICC admission gate (a spec that passes here passes at deploy). Returns {passed, violations:[{code,message,fix_it}], rejection_reasons}.
| Argument | Type | Description |
|---|---|---|
| spec* | string | the InfraSpec JSON text |
{
"type": "object",
"required": [
"spec"
],
"properties": {
"spec": {
"type": "string",
"description": "the InfraSpec JSON text"
}
}
}Verify a claimed domain by presenting the issued token (after publishing it in DNS).
| Argument | Type | Description |
|---|---|---|
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| domain* | string | |
| presented_token* | string |
{
"type": "object",
"required": [
"domain",
"presented_token"
],
"properties": {
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"domain": {
"type": "string"
},
"presented_token": {
"type": "string"
}
}
}Withdraw an owned app: end any deploy still under way on its name, unpublish its routes and tear it down. Nothing begun before this answers can land after it.
| Argument | Type | Description |
|---|---|---|
| app* | string | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
{
"type": "object",
"required": [
"app"
],
"properties": {
"app": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 26, 2026.
Takes a password, API key or token as an argument, so the secret passes through the model's context and chat logs.
Fix: Read credentials from the server's own configuration (environment, OAuth) instead of a tool argument.
{
"type": "object",
"required": [
"files"
],
"properties": {
"files": {
"type": "object",
"description": "map of relative path -> file content, e.g. {\"Cargo.toml\": \"...\", \"src/lib.rs\": \"...\"}"
},
"packages": {
"type": "array",
"items": {
"type": "string"
},
"description": "Ferrite source packages to compile in, by name from list_packages (\"name\" or \"name@version\"). The server adds each package's files, and its dependencies', under src/<root>/ before anything reads `files`; declare each root in src/lib.rs (read_package gives the lines). Do not send those files yourself: a changed copy is refused."
}
}
}| spec* | string | the InfraSpec JSON |
| files* | object | |
| token | string | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused |
| packages | array | Ferrite source packages to compile in, by name from list_packages ("name" or "name@version"). The server adds each package's files, and its dependencies', under src/<root>/ before anything reads `files`; declare each root in src/lib.rs (read_package gives the lines). Do not send those files yourself: a changed copy is refused. |
| instances | integer |
{
"type": "object",
"required": [
"spec",
"files"
],
"properties": {
"spec": {
"type": "string",
"description": "the InfraSpec JSON"
},
"files": {
"type": "object"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"packages": {
"type": "array",
"items": {
"type": "string"
},
"description": "Ferrite source packages to compile in, by name from list_packages (\"name\" or \"name@version\"). The server adds each package's files, and its dependencies', under src/<root>/ before anything reads `files`; declare each root in src/lib.rs (read_package gives the lines). Do not send those files yourself: a changed copy is refused."
},
"instances": {
"type": "integer"
}
}
}{
"type": "object",
"required": [
"spec"
],
"properties": {
"spec": {
"type": "string"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"instances": {
"type": "integer"
}
}
}{
"type": "object",
"required": [
"app",
"files"
],
"properties": {
"app": {
"type": "string"
},
"files": {
"type": "object"
},
"token": {
"type": "string",
"description": "fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused"
},
"branch": {
"type": "string"
},
"message": {
"type": "string"
},
"packages": {
"type": "array",
"items": {
"type": "string"
},
"description": "Ferrite source packages to compile in, by name from list_packages (\"name\" or \"name@version\"). The server adds each package's files, and its dependencies', under src/<root>/ before anything reads `files`; declare each root in src/lib.rs (read_package gives the lines). Do not send those files yourself: a changed copy is refused."
}
}
}