Docs · Docket Cloud

Docket Cloud and MCP

Docket Cloud runs the open-source Docket server for a whole team, managed for you: the databases, the ontology tooling and an MCP endpoint per workspace, with sign-in, roles and an audit log, backups and upgrades. New to it? Getting started walks through your first minute.

Signing in

Sign up for Cloud with GitHub, Google or email (the sign-in page shows the options available). Every new account gets a personal Me docket at once, and its MCP address is https://dev.docketcloud.io/mcp.

Anyone can also create an organisation for a team, which starts on the free plan: one docket of up to 1,000 documents, 3 seats, and $0.50 of AI a month, every AI call on a small, fast model. Background enrichment and cognee stay off on the free plan.

The docket cloud CLI

Every docket cloud command is optional; a project with no cloud linked makes no network call. To share a checkout's exhibits with a workspace:

shell
docket cloud link acme/platform   # once per project: adds a query-only cloud adapter to .docket.yaml
docket cloud login                # sign in with GitHub: a code to enter in the browser
docket cloud push                 # upload the files that changed (--dry-run: check only)
docket cloud status               # the link, the sign-in, and what a push would send
docket search "who owns orders"   # local adapters and the cloud workspace, side by side

link adds this adapter instance to .docket.yaml:

.docket.yaml
adapters:
  - id: cloud
    module: "@docket/adapter-cloud"
    roles: [query]
    config:
      url: https://dev.docketcloud.io
      workspace: acme/platform
      # tokenEnv: DOCKET_CLOUD_TOKEN   # CI: an API token from this variable instead of a sign-in
  • push sends only the files whose hash differs from the cloud's copy. If entities.yaml differs from the published ontology, it is proposed as a draft for an admin to publish; push never publishes it.
  • pull writes the published ontology here; --resources writes the documents written in the cloud instead, and never overwrites one you already have.
  • Sign-in goes to the OS keychain. DOCKET_OFFLINE=1 stops every request to a cloud.

Tokens for CI

Make an API token (shown once), keep it in CI's secrets, and name its variable when you link:

shell
docket cloud token create --scopes docket:read --expires 30d --description "CI search"
docket cloud link acme/platform --token-env DOCKET_CLOUD_TOKEN

Token scopes are docket:read, docket:write, ontology:read and ontology:propose; a token lives 1 to 90 days.

Connect an MCP client

Each Cloud workspace is an MCP endpoint at https://dev.docketcloud.io/mcp/<org>/<workspace>; the workspace's MCP tab shows its address. It speaks Streamable HTTP. Interactive tools sign in with OAuth as you, and you choose what they may do.

Claude Code

shell
claude mcp add --transport http docket https://dev.docketcloud.io/mcp/<org>/<workspace>

Cursor and other clients with an mcpServers file

mcp.json
{
  "mcpServers": {
    "docket": {
      "type": "http",
      "url": "https://dev.docketcloud.io/mcp/<org>/<workspace>"
    }
  }
}

CI and headless agents

Use a scoped API token from docket cloud token create as a bearer token:

shell
claude mcp add --transport http docket https://dev.docketcloud.io/mcp/<org>/<workspace> \
  --header "Authorization: Bearer $DOCKET_TOKEN"

The tools

ReadsWrites (with a write scope)
docket_search, docket_get, docket_ask, docket_ontologydocket_remember, docket_add_evidence, docket_update_notes, docket_supersede, docket_retire, docket_propose_ontology_change, docket_publish_ontology_change

Writes need evidence and are checked against the ontology before they land, and every call is in the workspace's audit log. Without Cloud, docket open serves the same tools over a project's own files on your machine, and docket serve serves them to a team from your own infrastructure: Self-hosting Docket shows how to run both.