Delegated access in MCP clients

The hosted MCP endpoint and the local MCP server can act for one person with delegated access. The tools, results and limits. Agent access is off by default.

This guide is for developers whose agent, app or script acts for a Crossblade workspace member. Agent access is off by default and has not been turned on for hosted Crossblade workspaces.

Status

Off by default

Agent access is off by default. It has not been turned on for hosted Crossblade workspaces, no named agent or app is supported yet, and it has only been tried on local test setups. Crossblade has no web address of its own yet, so this guide writes https://<your Crossblade address>. The SDKs and the local MCP server are shared as source packages; they are not on npm or PyPI yet.

Hosted endpoint

  • Send an OAuth access token for the /mcp resource, or a personal token, as Authorization: Bearer. A project key keeps the project-key tools in MCP clients.
  • Send the company in the Conductor-End-User-Id header. To switch company, change the header.
  • Each request is checked again and uses one unit of the approval's rate limit. Connecting uses about 3.

Local server

Use exactly one credential: CROSSBLADE_PERSONAL_TOKEN, or an OAuth token for the /v1 resource given as CROSSBLADE_ACCESS_TOKEN, CROSSBLADE_ACCESS_TOKEN_COMMAND or both. Adding a personal token to an OAuth setup, setting CROSSBLADE_SECRET_KEY as well, or passing --allow-writes stops the server with an error.

  • Each tool takes companyId, sent only as the Conductor-End-User-Id header of that call. CROSSBLADE_COMPANY_ID sets a default.
  • CROSSBLADE_ACCESS_TOKEN_COMMAND prints an access token. On its own it also supplies the first token. After a 401 it runs once and the same request is repeated once. It must print only the token (at most 16 KiB), exit with status 0 and finish promptly; the 30-second bound stops only the shell it runs in. Personal tokens are never refreshed.

One example, in a host that runs local MCP servers from a command line. It is an illustration only: no named MCP client is supported or tested yet.

Terminal
claude mcp add crossblade-delegated \
  --env CROSSBLADE_PERSONAL_TOKEN=YOUR_PERSONAL_TOKEN \
  --env CROSSBLADE_COMPANY_ID=YOUR_COMPANY_ID \
  --env CROSSBLADE_BASE_URL=https://<your Crossblade address> \
  -- bun /absolute/path/to/crossblade/packages/mcp/src/cli.ts

Tools

ToolWhat it doesRoute
whoamiWho the access acts for, the company, the permissions and when it endsGET /v1/me
list_companiesEvery company this access may use now, including the selected oneGET /v1/companies
search_capabilities, describe_capabilityThe read and report operations the access may start now, and one operation's detailsGET /v1/capabilities, GET /v1/capabilities/:id
readStarts a read or report and returns a task handle. It never waits.POST /v1/reads
read_result, read_continueThe result of a read, or its next pageGET /v1/reads/:id/result, POST /v1/reads/continue
get_task, wait_task, list_tasksOne task's state (wait_task waits at most 25 seconds), or a list of tasksGET /v1/tasks/:id (wait_task adds wait), GET /v1/tasks
export_report, get_artifactExports a report file and shows its details, not its contentsPOST /v1/reports/export, GET /v1/artifacts/:id
search_help, resolve_navigationPublic help and page links, where those routes are turned onPOST /v1/help/search, POST /v1/navigation/resolve

Every other tool name, including every write, setup and raw passthrough tool, answers DELEGATED_CAPABILITY_UNAVAILABLE and sends nothing.

Results and pending work

  • structuredContent is the same document the REST route returns. The first text block states the company, project, test or live environment, the state and the next step. The second is the document as untrusted JSON.
  • read answers PENDING with a task handle. Call wait_task, then read_result with the same operation and query. To repeat a read safely, reuse its replayKey.
  • Settled is not success. Read the task state.

Report files

MCP never returns file contents or a download link. Download with an authenticated REST request, GET /v1/artifacts/:id/download, using a /v1 OAuth token or a personal token. A token for /mcp cannot download.

Still stuck?

Contact [email protected]. Send:

  • The X-Request-Id response header, or the requestId in the error.
  • The route or tool you called, and roughly when.
  • The error code and message.

Never send an access token, personal token, API key or setup link. Nobody needs them to help you.