Skip to main content

MCP Server

API version: v1 Estimated reading time: 10 minutes Audience: Integrators connecting an MCP client

Booga exposes an MCP endpoint so an external agent can act as a Booga user. The client receives only what that user can already see, and only the capabilities that user may run. Writes that draft, file, or send park for approval inside Booga.

End users create the key in the product. See the External AI Assistants guide for the dialog. This page is the contract the client uses.

Endpoint​

POST /api/mcp/

The server URL shown in Connect an AI assistant is the value to put in the client config. The endpoint speaks the MCP streamable HTTP protocol (2026-07-28, and the handshake versions back to 2024-11-05).

The workspace switch External AI assistants (MCP) must be on. When it is off, every call is refused.

Authentication​

Send the personal key in the X-API-Key header.

curl -s -X POST "$BOOGA_API_BASE/api/mcp/" \
-H "X-API-Key: $BOOGA_MCP_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d @initialize.json

Personal MCP keys are not API Management keys:

  • They are created by a user with the MCP access permission, from the user menu
  • They are accepted only on /api/mcp/
  • They are checked against that user on every call. A missing or inactive creator is refused
  • They are limited to the workspace they were created in
  • Rate limits, quota, and usage logs still apply

General API keys are refused on this endpoint. An MCP key is refused everywhere else.

Tools​

ToolEffectPurpose
list_capabilitiesReadCapabilities this user may use. Optional kinds (smart_action, document_operation, skill_run) and optional ref for one full input schema
search_knowledgeReadCited passages from collections the user can search. query, optional top_k (1–20), optional categories
search_legal_sourcesReadCited legal sources. query, optional max_results (1–10), optional source_slugs
find_customersReadCustomers the user can see, by name, number, or email domain. No contact details
find_documentsReadDocuments the user can open. Returns a content item id and a file id, never a storage path
list_drafting_templatesReadActive drafting templates, optionally filtered by name
run_capabilityStarts workStarts one catalogue entry by ref, with inputs that match that entry's schema
get_runReadThe bounded result of a run_id from run_capability

list_capabilities tells you whether an entry is runnable. Some entries are listed and not runnable: a workflow that only wraps another step, a write that does not park for approval, and a follow-up that has nothing to reply to. Call run_capability only when the entry says it is runnable.

Planner templates are not an MCP kind. The list is Smart Actions, document analyses, and skill runs.

Runs​

run_capability returns a run id immediately. Poll get_run until the run reaches a terminal status. Clients that speak MCP tasks can also use tasks/get, tasks/result, and tasks/cancel.

A finished document analysis or skill run includes operation_id. A later skill or memo draft can take that id as a document_operation source.

A run that drafts, files, or sends returns awaiting_approval and a link to the Booga approvals inbox. The draft text stays in Booga until a person approves it there. There is no approval tool on this endpoint.

A read capability returns its artifact: summary, citations, and coverage gaps. Citations name the document. If a requested file yields no text, the run fails and names that file.

Responses​

Tool results leave Booga in clear text. There is no mask on this endpoint. Tell users that before they connect a client whose provider stores prompts.

Every tool call is written to the audit stream.

Errors​

SituationWhat the client sees
Workspace switch offThe endpoint refuses the call
Key missing, revoked, expired, or creator inactiveUnauthorized
Capability the user lacks, or a document they cannot openThe tool returns a refusal the agent can read
A pausing runawaiting_approval, not the draft

⏱️ Read time: 10 minutes | 📊 Difficulty: intermediate