Capabilities

Bots use explicit grants, connected services, and the originating person's authorization. A role or skill cannot create a tool grant. Pages, emails, MCP results, and other Bots do not authorize writes.

Ask first: what happens before a tool runs
Tool callAsk first rulematches?Allow rule orAlways allow?Default:read or write?Auto review on:serves the ask?Approval in Nowonce · always · denyStopped: denied,or expired (30 min)Runs · resultposted in chatyesnonoyeswritereadfits, or review offunclearallowdeny
You or your deviceCheck or decisionSaved or publishedHover or tab to a box to trace it

Ask first rules always win. Always allow saves an Allow rule for that bot, tool and target. Approvals from routines, triggers and delegations are unattended and expire after 30 minutes.

First setup

  1. Start the updated API. Its normal startup migrations apply schema changes through 0019_execution_context.
  2. In a Bot's settings, open Tools and skills. An owner or admin grants only the tools that Bot needs and assigns its slash-command skills.
  3. In the skill editor, select required tools. The procedure will not load if it is unassigned, a required grant is missing, or its connector/device is unavailable. In live mode, Run test sends the saved slash command to the chosen Bot and opens its real conversation; it does not simulate tool success.
  4. For local work, run the updated desktop app and open Settings → Computer access. Share folders, optionally allow commands, and separately enable desktop app control.

Existing Bots start without grants. Existing shared notes remain team notes; new notes default to private. Historical unowned chat replies are restricted to the workspace owner rather than being exposed to every member. Group conversations remain shared.

Desktop apps

macOS uses System Events accessibility automation; Windows uses UI Automation and native input. Grant both desktop_observe and desktop_action. The Bot lists running apps, observes controls, then proposes launch, activation, click, text, named-key, or scroll actions. Each action requires a native confirmation and a fresh server authorization check after that confirmation. Controls must come from a recent observation; labels and roles are rechecked before acting.

On macOS, allow the app's Accessibility and Automation → System Events permissions in System Settings. Signed builds include the Apple Events entitlement. On Windows, use apps running at the same privilege level as Biscuit. Custom canvas interfaces and applications without accessible controls may require manual takeover or another connector. No claim is made that every application exposes an accessible UI.

Turn off desktop control to stop new desktop actions. Folder sharing and shell command permission are separate. Shell commands run as the desktop user; a working directory is not a filesystem sandbox.

Private secret entry

The native secret action asks the person for a value using a masked OS prompt. Its value is not included in tool arguments, tool results, or model context. In the browser, take control, focus the intended field, and use Enter privately. The field is masked and human-entered values are redacted from subsequent model observations, including page echoes. Ordinary chat/file/connector content is not a secret vault: use the dedicated masked entry flow for sensitive values.

Delegation

Grant delegate_task to the initiating Bot. The specialist answers in its own private conversation with the same person. Its effective tools are capped by both Bots' current grants. Read-only is the default; an action task can request allowWrites: true, but connector/MCP writes still become approvals for the original person. A specialist cannot approve its own work or delegate again.

Bot settings show delegation status and a link to the specialist's conversation. Cancellation prevents subsequent tool calls and pending action execution. Running work expires after five minutes; waiting approvals expire after 24 hours. Interrupted work is marked failed on the next status read and must be retried explicitly; writes are never automatically replayed after a restart.

Memory and channels

Direct Bot chats and their live events are per-person. Group chats are workspace-shared. Notes are private by default. Select Team when proposing shared memory: a Bot-specific note requires that Bot's owner to approve it; a workspace-wide note requires the workspace owner. Editing a team note requires review again. Grant propose_memory when a Bot should suggest notes itself; Bot-proposed notes always wait for review, including private notes. Group contexts do not load private notes. Memory authorization is enforced in the database/API, not only by UI labels.

Routines

The routine editor supports a five-field cron expression and an IANA timezone, as well as the weekday/time picker. Examples: */15 * * * * (every 15 minutes), 0 9 * * 1-5 (weekdays at 09:00). Cron overrides the weekday picker. Choose your Bot conversation or a group containing that Bot as the result destination. The stored creator remains the execution identity and must still belong to the workspace. DST follows the cron library's timezone semantics; nonexistent local times may be skipped.

GitHub pull requests

Connect GitHub in Settings → Connections with a token that has Contents and Pull requests (read and write) and Checks (read). Then grant the tools a Bot needs in its settings.

Tool What it does Asks first
github_list_pulls List a repo's pull requests No
github_get_pull Status, branches, description, files, commits and checks No
github_pull_diff The diff (long diffs are cut short) No
github_create_branch Create a branch from another Yes
github_commit_file Create or replace one file on a branch Yes
github_open_pull Open a pull request Yes
github_comment Comment on a pull request or issue Yes
github_merge_pull Merge (squash by default) Always, even when a rule allows it

Repo names, branch names, file paths, numbers and merge methods are checked before any call. BISCUIT_GITHUB_REPOS (owner/name, comma-separated) limits the repos the tools can touch; empty allows any repo the token can reach. The token stays on the server.

The app's PR tab reads GET /v1/github/pull and merges with POST /v1/github/pull/merge (owners and admins; recorded in Activity). See API reference.

Connect external MCP products

Open Settings → Developer → MCP. Configure the product's exact server URL and transport, supply its authentication headers in the masked JSON input, then choose Connect and discover tools. Credentials are encrypted with the API's configured seal key and are not returned in connection responses.

Supported client transports:

Transport Configuration
Streamable HTTP transport: "http", endpoint: "https://product.example/mcp"
Legacy HTTP+SSE transport: "sse", the product's SSE endpoint
stdio transport: "stdio", executable and argument array on the API host

stdio requires BISCUIT_MCP_STDIO=on; only workspace owners/admins may configure it. Private-network or HTTP endpoints require BISCUIT_MCP_ALLOW_PRIVATE=on in the deployment. These settings deliberately expand the API host's access. By default, private/reserved addresses, cross-origin requests and redirects are blocked. Each connection supports up to 500 discovered tools, with pagination.

Discovered tools appear in each Bot's grant settings under stable namespaced names. Connecting a server does not grant its tools. All calls require approval unless an admin explicitly reviews and marks the tool read-only; remote annotations are not trusted to establish this. Reconnect to refresh a server's catalog. The secret fields are write-only: omitting them preserves the saved credentials; an explicit empty object clears them.

This is a tools-focused MCP integration using the official Go SDK. Authentication supports configured headers/tokens and stdio environment credentials. Products requiring an interactive OAuth-only login need an externally obtained token or an authenticated MCP gateway; automatic OAuth registration/refresh is not included. Resources, prompts, sampling, and model interpretation of image/audio tool outputs are not exposed as separate features. Tool calls can return text and structured results. These are compatibility limits, not guarantees that every MCP product will work unchanged.

Use Biscuit from another MCP client

The dedicated authenticated Streamable HTTP endpoint is https://YOUR_API/mcp. Create an API key in Settings → Developer and configure the client's Bearer authorization header. The key acts as its creator in that workspace and stops working on revocation. Tools include list_bots, read_conversation, ask_bot, list_routines, and list_delegations. There is deliberately no tool to approve an action.

For stdio-only clients, build the adapter:

cd services/api
go build -o biscuit-mcp ./cmd/biscuit-mcp

Example client configuration (use the absolute binary path):

{
  "mcpServers": {
    "biscuit": {
      "command": "/absolute/path/biscuit-mcp",
      "env": {
        "BISCUIT_API_URL": "https://YOUR_API",
        "BISCUIT_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

On Windows, build/use biscuit-mcp.exe and a Windows absolute path. The adapter proxies tools through the same authenticated API and keeps protocol stdout separate from diagnostics. Clients and servers negotiate protocol versions through the official SDK; compatibility is bounded by that SDK's supported versions.

Validation

Backend integration tests require a dedicated TEST_DATABASE_URL: they reset its schema. Do not point tests at application data.

cd services/api
TEST_DATABASE_URL=postgres://USER@localhost:PORT/biscuit_test?sslmode=disable go test ./...

From the repository root, run npm run typecheck, npm run build, and node scripts/test-desktop-drivers.mjs. Native checks use cargo check --lib in apps/desktop/src-tauri. Windows interactive control requires a Windows runtime smoke test; macOS permissions and live app actions require a consenting local user. Compilation and mocked driver tests are not substitutes for those OS checks.

MCP implementation reference: official Go SDK. Configure trusted browser client origins in the API CORS allowlist when connecting from a web-based MCP client.