Uppercut Labs

Product documentation · Suite contract 1.0.2

Prefbook

Use the app, protect your records and connect an authorized client.

Read setup prompt
Read https://prefbook.uppercut-labs.com/agent-guide.md and configure a read-only Prefbook MCP client using my approved private credential reference, then verify discovery and one authorized read without exposing records or secrets.

Download setup prompt

Get started

Open Prefbook and sign in through Uppercut Account. Access is owner-only; a shared account does not automatically grant app access. Public documentation contains no private records.

Create a Need, rank the Items that meet it, and keep retailer offers as Listings. Record a Purchase only when a purchase happened, retaining total paid and quantity. Unit prices and forecasts are derived. AI capture proposes an Item for review; it never silently creates a Purchase or edits an existing record.

Full backups preserve Needs, Items, Listings, Purchases, immutable correction/void facts, archive/rank state, Notes, actor history and preferences. Purchase calendar dates remain YYYY-MM-DD. Purchase corrections are owner-only and preserve prior facts. A capture-only PAT is not general write or purchase-correction authority.

The subject-bound offline copy is for reading. Reconnect and read the current state before editing; sign-out clears the local private copy.

Settings

Use Account & Security, API, CLI & Agents, Data & Backup, Preferences and AI Providers. Preferences default to America/Chicago for a new profile. Choose a supported named IANA time zone; valid aliases such as GMT and CET retain their saved spelling. Numeric offsets and invented zones are rejected. Changing display time zone does not rewrite calendar dates or stored event instants.

Credential administration and restoration require recent sign-in. Preference edits require an entitled owner browser session, without a separate recency check. Follow Confirm it’s you when prompted. Ordinary record reads, permitted business edits and full-backup export do not gain an extra step-up requirement merely because the credential-management panel needs confirmation.

Data & Backup

Export full backup downloads the complete compact uppercut-suite-backup JSON envelope. CSV is a supplemental purchase table derived from a full backup, not a restoration format. Credentials, identity/provider keys and source photos are excluded. Keep the file private; its checksum detects corruption, not authorship.

Import backup first shows a read-only preview, bound to this app, owner, checksum and current target revision for 15 minutes. Review counts and preferences. Choose an empty target or confirm whole-dataset replacement by typing Replace all existing data with this backup. Full restoration never merges. A durable previous-dataset backup is retained before the atomic replacement; a failure rolls back business changes.

The complete export/import limit is 10 MiB. Oversized data fails visibly; never accept a partial export as a recovery backup. Download the previous-dataset backup after replacement and retain it privately.

API, CLI & Agents

  1. Read GET /api/v1/session, GET /api/capabilities and the app’s OpenAPI. Verify contract 1.0.2, the intended app and effective permissions.
  2. After recent sign-in, the owner creates a named PAT in Settings → API, CLI & Agents. Only prefbook:read is preselected. Default lifetime is 90 elapsed days; choose an integer from 1 through 365. Select capture, write, AI and full-backup export independently only when the task needs them. Full export requires prefbook:export.
  3. Store the one-time token in PREFBOOK_TOKEN or the client’s approved private credential-file reference. Never place it in chat, URLs, screenshots, Git, command arguments or logs. A token’s scopes do not authorize unrelated tasks.
  4. For remote MCP, configure https://prefbook.uppercut-labs.com/mcp with an Authorization bearer header from that secure reference. Initialize and list tools, then use the advertised read tool prefbook.snapshot with its actual input schema. No client registration or token is created by reading this guide.

Read GET /api/v1/snapshot. Business commands use POST /api/v1/execute with their discovered operation-specific schemas. Do not invent generic CRUD routes. PAT management uses GET/POST /api/v1/tokens and DELETE /api/v1/tokens/{id} with recent browser authority. Creation accepts {name,scopes?,expiresInDays?} and returns {token,record} once; metadata lists never repeat the secret.

prefbook help
prefbook snapshot

Install/build the CLI from the authorized source checkout; no public npm package is promised. Read the product-hosted agent setup guide.

For an authorized mutation, preserve Notes and use a stable idempotency key. Send the current record’s opaque writeRevision as revision/If-Match. Creation and other business mutations also need the datasetRevision from the same current snapshot, sent in the operation input or x-dataset-revision; CLI supports --dataset-revision. After a restore, old editors, numeric-only revisions and queued creates may be stale. Reconcile them instead of upgrading old write authority automatically.

Errors use application/problem+json with stable code, requestId and retryable. Preserve unsaved input on stale_revision; reuse the original idempotency key on an uncertain retry. Verify requested changes through a fresh read. Ordinary PATs and MCP cannot manage credentials or import/restore full backups.

AI Providers

Routing is automatic among eligible Google Gemini, Anthropic Claude and OpenAI routes, subject to configured models, task modality, policy and budgets. Settings and authenticated GET /api/v1/ai/providers show current configured eligibility; this status does not make a paid inference call or guarantee the next request succeeds.

Provider credentials belong only to the private gateway. App Workers use private service bindings and signed verified-subject assertions; consumer PATs, CLI/MCP setup and bootstrap files never receive provider keys or gateway signing secrets. An app sign-in or PAT does not configure a provider.

Submitted text/photos may be processed by an eligible provider and a bounded fallback. Review the returned draft, warnings and actual provider/model provenance before saving. Failure leaves manual entry available. Source photos are transient in the app; provider retention follows the provider’s policy. Read the app privacy notice and OpenAI API data controls before submitting sensitive content. This guide makes no promise of zero retention or provider training practices.

Recovery and operator access

CLI preview/restore uses PREFBOOK_OPERATOR_COOKIE_FILE containing a fresh, private owner browser session. The server verifies entitlement, Origin and recent sign-in. A PAT or CLI flag cannot become operator authority. Keep session/token files private and outside Git and command arguments. Prefer the app’s recent-owner browser flow for preview and restoration.

Before recovery, export current data and preview the retained backup against the latest target. Replacement requires current authority, an unchanged preview target, explicit confirmation and an independent preimage. Reverting code does not undo data writes or restore revoked tokens. This guide does not authorize deployment, credential rotation, data replacement or provider spending.