# Assume — agent guide

You are an **autonomous agent** (model, assistant, or script) using **Assume Cloud** to act on connected work systems **without receiving stored credentials**. Your operator configures accounts, policy, and grants in the dashboard. You connect through **MCP** or **signed HTTPS** and use only the tools the service exposes.

Signing and MCP auth: [post-quantum.md](post-quantum.md) (same document at `https://assume.dev/post-quantum.md`).

## Connect

| How | Endpoint | Auth |
| --- | --- | --- |
| **HTTP MCP** (Cursor, VS Code, etc.) | `https://mcp.assume.dev/mcp` | **MCP OAuth** (`"oauth": true` in MCP install JSON) → bearer `mcat_…` |
| **Signed HTTP** | `https://api.assume.dev/api/…` | ML-DSA-65 `X-Agent-*` headers ([post-quantum.md](post-quantum.md)) |
| **Signed HTTP MCP** | `https://mcp.assume.dev/mcp` | Same ML-DSA headers as `/api` |
| **Stdio MCP** | Operator-provided local MCP binary | Same signing key as `/api` (operator setup) |

Do **not** paste private signing keys into chat or logs. You receive **capability ids**, not secrets.

## Workflow

```
search_actions → describe_action → request_capability → execute_action
```

**Shortcut:** `run_action` (mint a short-lived capability and execute in one call).

1. **`search_actions`** — find operations; use the **resource id** returned (e.g. `github`, `discord`). Do not invent resource names or append `/production`.
2. **`describe_action`** — JSON Schema, permissions, and **effect** (e.g. destructive).
3. **`request_capability`** or **`run_action`** — scoped permission on that resource.
4. **`execute_action`** — when you already hold a capability id.

**Discovery:** `list_resources`, `search_actions`, and `describe_action` only include accounts your operator linked to **this agent**. Other workspace accounts are omitted. Minting on an unlinked account returns `OPERATOR_GRANT_REQUIRED`.

## MCP tools

| Tool | Use for |
| --- | --- |
| `list_resources` | Connected resources and skill names |
| `search_actions` | Find an operation (capped results) |
| `describe_action` | Full schema, permissions, effect |
| `get_skill` | Integration runbook (markdown) |
| `request_capability` | Mint a scoped capability |
| `run_action` | Mint + execute (happy path) |
| `execute_action` | Run with an existing capability |
| `get_allowed_capabilities` | List your active capabilities |
| `revoke_own_capability` | Drop a capability when done |
| `get_pending_approvals` | Approvals waiting on a human |
| `get_approval_status` / `request_approval` | Poll approval by id |
| `get_action_status` | Poll a prior execute request |
| `open_browser_session` / `browser_action` / `close_browser_session` | Isolated browser automation |
| `execute_script` | QuickJS sandbox; may only call `vault.execute({ capabilityId, … })` |

## Capabilities and approvals

- Capabilities are **scoped** (resource + named permissions) and **time-limited** (typically one hour; up to 24 hours if requested and allowed).
- High-impact actions (merge, delete, pay, exec, etc.) may return **`APPROVAL_REQUIRED`** with `approvalId` and a dashboard URL (`https://app.assume.dev/requests`).
- **You cannot approve your own requests.** Tell the operator; poll `get_approval_status`; after approval, retry with **`approvalId`** on mint or execute.

## Optional integrations

Some generic HTTP, vendor MCP proxy, SSH, or trading actions are **off by default** until the operator enables them for the workspace. Named integration actions from connected accounts remain available when policy and grants allow.

## Rules

- Request **least privilege** and short TTL.
- **Revoke** capabilities when finished.
- Do not try to exfiltrate secrets from responses — results are **redacted** by design.
- There is **no** `read_secret` tool.

## Reporting issues

Product security: [security@assume.dev](mailto:security@assume.dev) · [assume.dev/security](https://assume.dev/security)