Skip to content
Developer docs: Agents: MCP and A2A

Agents

Connect an agent: MCP and Agent-to-Agent

The same capabilities as 25 tools an AI agent can call directly: 15 that do the work and 10 that read. No glue code: paste the server line into your agent, give it a key, and ask for a dossier.

MCP

Codossier is an MCP server at https://api.codossier.com/mcp (Streamable HTTP, protocol revision 2026-07-28, stateless). Authentication is the same key, as a bearer token. Pick the setup for your client:

Add Codossier to your AI tool by its address, https://api.codossier.com/mcp. The first time, the tool opens your browser: sign in or create an account, choose Allow, and it's connected. No key to copy. Each dossier it opens uses one of your credits, as on the site, and you can disconnect it at any time from the Developers page, which also has one-click Add to VS Code and Add to Cursor.

Claude Code (then run /mcp and choose Authenticate)
claude mcp add --transport http codossier https://api.codossier.com/mcp
Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "codossier": { "url": "https://api.codossier.com/mcp" }
  }
}
VS Code (.vscode/mcp.json)
{
  "servers": {
    "codossier": { "type": "http", "url": "https://api.codossier.com/mcp" }
  }
}

Claude: open Settings, then Connectors, choose Add custom connector, and paste the address. A tool that only runs local servers can reach it through npx -y mcp-remote https://api.codossier.com/mcp, which opens the same sign-in.

With a key instead

For your own code, CI and tools that cannot open a browser, send a key as a Bearer header. The signed-in Developers page shows each line with your key filled in.

Claude Code (one line in a terminal)
claude mcp add --transport http codossier https://api.codossier.com/mcp --header "Authorization: Bearer cdk_live_<id>_<secret>"
Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "codossier": {
      "url": "https://api.codossier.com/mcp",
      "headers": { "Authorization": "Bearer cdk_live_<id>_<secret>" }
    }
  }
}
VS Code (.vscode/mcp.json)
{
  "servers": {
    "codossier": {
      "type": "http",
      "url": "https://api.codossier.com/mcp",
      "headers": { "Authorization": "Bearer cdk_live_<id>_<secret>" }
    }
  }
}
Claude Desktop (claude_desktop_config.json, through mcp-remote; needs Node.js)
{
  "mcpServers": {
    "codossier": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.codossier.com/mcp", "--header", "Authorization:${CODOSSIER_AUTH}"],
      "env": { "CODOSSIER_AUTH": "Bearer cdk_live_<id>_<secret>" }
    }
  }
}
Any other MCP client (Streamable HTTP)
URL:     https://api.codossier.com/mcp
Header:  Authorization: Bearer cdk_live_<id>_<secret>

The tools

ToolDoesRuns
open_matterOpens a matter from text, links, files or an intake record; or estimates it.task · 20–30 min
replyAnswers a request's questions (a choice, an upload done, a quote accepted), or, on a completed extend, the open facts its patch raised, by token.quick
searchSearches one matter's tree in loose words; hits ranked by relevance with the quote that matched.quick · ~30 s
inquireThe CLI: asks about one issue, gets a corpus-backed answer and proposed crests, rifts or child issues.task · 1–3 min
chatSays one message in the matter's Chat after the dossier, the same conversation the person sees on the site. A quick reader decides first: thanks get a short reply, free; a timeline request changes the timeline (or asks which event is meant); a legal question goes to Practitioner AI over the issues it concerns; both at once when the message has both.quick · a legal answer 10–60 s
edit_timelineAdds, moves, renames or removes events on the matter's timeline by id, exactly as told, with no model and no charge. A change that cannot be made is named; the rest still land.quick
extendExtend: grows one issue from its corner. It reads the best-ranking domain of a corpus (or the corpora you name), judges every angle, asks the open web when a rule is missing, and proposes additions only: crests, rifts, a dated proposition section, one child issue. Your text is guidance, not a question.task · 2–5 min
settle_factAnswers the open facts an extend raised, by their six-character tokens. The answer settles each fact in the engine's ledger too, and the proposals that rested on it stop being conditional.quick
cancelStops a request: one still queued or waiting for input, or an extend while it works (the engine stops at its next step and proposes nothing; what it already spent is not refunded). A dossier build cannot be stopped once started.quick
reportAny report on a completed matter: kind client_brief, counsel_packet or lead_scoring. The latest one kept answers at once ("bring me the latest Lead Scoring"); fresh generates a new one (asking again while it runs returns that same run). The result is the report as data (document) and the PDF's download link; email also mails the PDF to your own address.quick · fresh: task, 1–6 min
applyAccepts or discards proposals. Nothing changes in the tree until a person decides.quick
add_nodeAdds a crest, rift or child issue by hand.quick
supplementBrings new material into a finished dossier: facts → search → the CLI per touched issue.task
deliverRenders the dossier (json, md, pdf) and PUTs it to a link on the office's delivery list.quick / task for pdf
importFetches documents from your signed links into a matter, as material.task
get_request list_requests get_matter list_matters get_dossier get_node list_proposals get_chat get_timeline list_corporaReads.quick
  • Long work is a task. A client that supports MCP tasks gets a task id and polls tasks/get; any other client gets the request id back and calls get_request.
  • Questions come back in the conversation. A request that needs input returns its questions; the agent asks the person and calls reply. Files the person has go through the upload link the question carries.
  • Annotations tell the agent what is safe. Reads are marked read-only; apply is marked destructive so a careful client confirms before it runs.
  • Sandbox first. With a cdk_test_ key every tool simulates, so an agent can be developed against the real server for free.

Extending an issue

  • Start it. extend takes the matter, one issue (never the root or a section) and, optionally, your guidance in words and the corpora to draw on. It answers at once with a request id.
  • Follow it by that id. get_request shows the phase while it runs. The work keeps going if your agent disconnects, and the request is never lost: ask for it again whenever you come back.
  • Read the patch. The completed request carries the proposals: each the same object list_proposals and apply use: with its posture, the verdict (and any second reading beside it), how a court and the other side would receive the sharper ones, and the quotes it rests on. A rule the knowledge base lacked is looked up in public sources; a line that rests on one names the page.
  • Decide, then answer what it could not know. apply accepts or discards each proposal; nothing changes until you do. Facts the matter does not yet state come back as entries with tokens: answer them with settle_fact. Changed your mind while it runs? cancel stops it at its next step.

A client's own agent

A person without an office (a client) can connect their own agent with a personal key. It can read, search, use the CLI and answer questions on the dossiers that person owns, paying from that person's credits. Opening matters, adding nodes, delivering: the same, on their own matters. There is no capability a person lacks and an office has; an office can be invoiced, which is the whole difference.

Agent-to-Agent (A2A)

For orchestrators that speak A2A, the same engine answers at https://api.codossier.com/a2a (A2A 1.0, JSON-RPC 2.0) and describes itself at https://api.codossier.com/.well-known/agent-card.json. The card lists the skills you can call today (case_file and work_case), and it is signed (ES256 over the RFC 8785 canonical card; the keys are at https://api.codossier.com/.well-known/jwks.json). Send A2A-Version: 1.0 on every call: a call without it is taken as 0.3, which is not served, and answers VersionNotSupportedError.

A message's text parts are the request's text, and one data part may carry options. metadata names skill or intent, plus matter, scope and options. A task is a request. Its state is one of TASK_STATE_SUBMITTED, TASK_STATE_WORKING, TASK_STATE_INPUT_REQUIRED (our questions are in the status message; answer with a message that names the taskId), TASK_STATE_COMPLETED, TASK_STATE_FAILED or TASK_STATE_CANCELED, and the result is a JSON data artifact.

SendMessage
POST https://api.codossier.com/a2a
Authorization: Bearer cdk_live_<id>_<secret>
A2A-Version: 1.0

{
  "jsonrpc": "2.0", "id": 1, "method": "SendMessage",
  "params": {
    "message": {
      "messageId": "m-1", "role": "ROLE_USER",
      "parts": [{ "text": "retaliation after the complaint" }],
      "metadata": { "intent": "search", "matter": "d2d9…", "options": { "top": 5 } }
    }
  }
}

→ { "jsonrpc": "2.0", "id": 1, "result": { "task": { "id": "…", "status": { "state": "TASK_STATE_COMPLETED" }, "artifacts": [ … ] } } }

SendMessage waits for the task to settle, up to 60 seconds; set configuration.returnImmediately to get the task at once. A dossier build outlasts the wait and comes back TASK_STATE_WORKING, so follow it with GetTask. ListTasks pages through your tasks, newest change first. CancelTask stops a queued or waiting task, or an extension in progress. Streaming and push notifications are not offered yet (the card says so), and their methods answer the matching A2A error; poll GetTask or register a webhook. File parts are not accepted on A2A yet: upload with POST https://api.codossier.com/v1/uploads. The UCP profile is at /.well-known/ucp. The A2A door takes a key; signing in from the browser is for MCP.