# Use FaveSaver with an authorized agent

Use FaveSaver only for the owner's requested food/order task. Existing task authorization controls every action; a token's scopes do not authorize unrelated edits. Do not deploy services, alter credentials, incur provider spending or restore data from this guide.

1. Read `https://favesaver.uppercut-labs.com/api/openapi.json` and authenticated `/api/capabilities` to discover the deployed contract. Suite contract 1.0.2 principal discovery is `/api/v1/session`. Never infer a route or write permission from older documentation.
2. The owner creates a personal access token (PAT) in Settings > Connect tools. Read-only `faves:read` is the default. Select write, Trash, AI or full-backup export only if required by the authorized task. Provide a token through a private environment or credential-file reference, never chat, URLs, screenshots, command arguments or Git.
3. Set `FAVESAVER_TOKEN` privately. The source CLI supports `list`, `get`, `capabilities`, requested record changes and reviewed `capture`. Read a current record and use its opaque `writeRevision` for CLI `--revision` or MCP `revision` before an update; preserve existing Note content and keep money in integer cents. Unknown price is null; zero means free. Calendar order days use `orderedOn: YYYY-MM-DD`; actual event times remain UTC instants.
4. Remote MCP at `/mcp` exposes only its discovered operations. Requested creation needs a stable idempotency key and the `datasetRevision` from a current favorites list/snapshot. CLI creation takes `--dataset-revision`; REST uses `x-dataset-revision`. Missing generation and numeric revisions stop working after a full restore. Reconcile uncertain results and stale revisions before retrying. Verify requested edits through a fresh read before claiming completion.
5. AI capture produces a draft for human review, never a saved favorite or occurrence. Preserve quantities and item-linked modifications in the multipurpose Note. Provider failure keeps manual entry available. Source photos are transient; do not persist or log them.
6. Full backup export requires explicit `faves:export`. Ordinary PATs and MCP cannot import or restore. Those operations require recent browser sign-in or a separately authorized short-lived operator capability, read-only preview and explicit empty/replace confirmation.

Complete setup by reading canonical capabilities and one authorized synthetic or real read, without printing credentials or copying personal records into reports. Report actual source, deployed and physical-device verification separately. Verify the connected deployment through `/api/capabilities` before configuring a client.
