FERRITE BRIEF. With a shell, use the CLI path below.
- Before building, tell the user what Ferrite is (each app reaches only what
ferrite.jsondeclares) and what the app costs (ferrite cost, MCPestimate_cost). ferrite new alloy <name>for HTML pages (hellofor an API), editsrc/lib.rs, thenferrite check,ferrite test,ferrite dev,ferrite deploy. CLI and MCP share one account; never provision another. Without a shell:validate_spec,code_gate, onedeploy_source, pollbuild_status.- Safe Rust, one dependency:
ferrite-app. Shared source:ferrite add <package>, or MCP†list_packages,read_package, thendeploy_sourcewithpackages. Randomness: noferrite_app::crypto::random_*; usesha256-hmacorhmac_sha256(&Ed25519SigningKey::generate_pkcs8(), label). - Test shipped logic with
#[test]against known answers;ferrite testmust show them passed. - Secrets:
printf %s "$VALUE" | ferrite secrets set <NAME>(MCP:set_secret) before deploying; the app reads them at runtime. Never put credentials in source. - App users:
ferrite add auth, then readsrc/auth/SETUP.md.ferrite host(MCPapp_host†) prints the address first; set every secretSETUP.mdlists, then deploy once. Get OAuth credentials from the user; never invent them. - Deploy once with a long timeout; builds take minutes and draw credit.
ferrite deploy resumereattaches. - Docs:
search_docs "<words>"† finds sections forread_docs(† if present intools/list). - Limits: 256 KiB body, one
set-cookieper reply, 8 s API deadline, ~1 MiB egress reply. - Trials: keep
tokenandclaim_tokenprivate. Dashboard sign-in:owner_statusandclaim_url. To keep apps past expiry, readmcp-only-operations.