Skip to content

Connect an agent over MCP

The server speaks the Model Context Protocol at /api/mcp. An agent such as Claude Code adds it as an HTTP server and reads what the dashboard shows: what is waiting on you, projects, series, tickets, runs and Work it out conversations.

Every tool calls one of the dashboard's own routes, with your credential. What an agent sees is what you would see in the dashboard: the same permissions, the same project scope, the same refusals.

Add the server

With a personal access token (create one on Your identity, see personal access tokens):

claude mcp add --transport http codeably https://<server>/api/mcp \
  --header 'Authorization: Bearer codeably_pat_…'

<server> is the address the dashboard answers on. The ingress routes /api to the server, so the MCP endpoint is under the same host. The token's scope narrows what the agent may do: read reaches the reader bundle, which has no dialog.write, so a read token lists no conversation tool.

An OIDC bearer from the configured authority works the same way, in the same header.

MCP OAuth

A client that signs in by itself over MCP OAuth finds the server's protected-resource document at GET /api/mcp/oauth-protected-resource, which a 401 from /api/mcp names in its resource_metadata. The document names the configured authority as the authorization server and {dialogue.dashboard_url}/api/mcp as the resource.

The token the client brings back is validated like any bearer, against the configured audience. That works where your identity provider issues that audience to the client. Where it does not, use a personal access token. Without an authority, or without dialogue.dashboard_url, the document is not served and the challenge names none.

A service principal

A service principal reaches the server with its own token when the role mapping gives its app role a role, as for a person (group_roles / roles in access control).

The tools

Tool Reads
needs_me The Needs-you page: tickets waiting on you. include_admin_holds adds the admin holds, as an admin's Your move reads them.
find One list, by kind: project, series, ticket, run, conversation, pull_request, deployment, delivery, tracker_ticket.
read_project A project by aspect: init, bootstrap, memories, deployments.
read_series A series by aspect: overview, changes, measurement.
read_ticket A ticket by aspect: overview, text, series, requires, reviews, defaults, conversation, approval_preview, design_dialog.
read_run A run by aspect: overview, trail, steps, step_events, decisions, specs, spec, passes, compute, acceptance, statistics, trace, trace_entry, prompt, prompt_digest, deployment, measurement, dialog_activity, document (a run document by name, GET /api/runs/{runId}/documents/{name}).
read_conversation An open Work it out conversation of yours by aspect: view, series, filed_work.

Each enum value is bound to exactly one dashboard route. An argument the chosen value does not take is refused, and the refusal names the ones it takes. tools/list shows a tool when you may use the route of at least one of its values; the route still decides each call, and a refusal comes back as the route's own status and text.

Results are the route's JSON, minified, with null and empty members left out. Lists the route pages itself (cursor, before, limit) take those arguments; a list the route answers in one array is paged by offset and page_size (25 unless you ask for another), with total and next_offset. Every row the route answered can be reached by paging.

The acts

These tools change something, and tools/list marks them destructive. Each calls the dashboard route behind the same button.

Tool Changes
send_message Sends a message into a Work it out conversation.
answer Answers by kind: a run's question (run_question), a proposal, a series master's question.
work_it_out A conversation by action: open, resume, delete, ratify_mock.
control_run A run by action: cancel, retry, judge a criterion, withdraw_judgement.
control_series A series by action: pause, resume, start_ticket.
merge Merges a series ticket's pull request.
control_ticket A ticket by action: close, reopen, derive_specs, refresh_base, follow_up, landed_by_hand, default_verdicts.
control_project A project by action: init, deploy, delete_memory.

The admin server

An admin adds a second server at /api/mcp/admin to diagnose the installation without a database connection:

claude mcp add --transport http codeably-admin https://<server>/api/mcp/admin \
  --header 'Authorization: Bearer codeably_pat_…'

The endpoint needs admin.assistant, which of the built-in roles only admin holds, so an operator's agent never lists an admin tool. A personal access token reaches it only with the admin scope. The admin tools read raw records, masked where they come from /api/admin; the shaped views (tickets, a ticket's reviews, prompts) stay on /api/mcp, so an admin adds both servers.

A 401 from /api/mcp/admin names the same protected-resource document as /api/mcp, whose resource is {dialogue.dashboard_url}/api/mcp. A client that accepts the endpoint under that resource signs in over MCP OAuth; one that wants the exact endpoint uses a personal access token.

Tool Reads
inspect_run A run's raw records by aspect: raw (the stored run, steps, decisions), calls (model calls with their prompt ids, which read_run prompt opens), events.
read_state The installation by aspect: runs, active_runs, capacity_queue, health (of the replica that answers), admin_holds, config, settings_types, settings, secret_names.
read_series_record A series run's stored record whole.
read_transcript Any Work it out conversation's transcript. Each read is recorded and shown to the conversation's owner.
read_live_pull_request A pull request's state and CI from its host now, with the installation's credentials (needs diagnostics.probe as well).
repair Changes the installation by action: queue_drop, queue_requeue, series_stop, series_delete, transcript_clean, change_config. Needs admin.repair.

Repairs

Every repair is a run of the repair preset on the installation, and the run is the record: who asked, which repair on what, why, the state it acted on and how it ended. inspect_run raw reads it, and the installation's runs list it. A configuration change is a run of the config preset, the one the admin assistant's Apply starts.

A repair confirms in two calls. The first answers 409 with the preview (what would change) and a digest of the state it read. The same call with digest set starts the run, which reads the state again and acts only when the digest still matches; otherwise it acts on nothing and answers the new preview.

  • queue_drop drops a capacity-queue entry whose reserved run is missing, finished or cancelled, or which has no stored start context, through the queue pump's own drop. An entry whose run still queues is ended with control_run cancel on /api/mcp.
  • queue_requeue moves an entry behind every other entry and keeps its reserved run.
  • series_stop stops a series as its master's stop_series does. series_delete deletes a stopped or finished series' record. Its tickets keep their runs.
  • transcript_clean removes the numbered entries from a series master's thread (series_id) or a conversation (session_id). It is refused while the conversation is mid-turn or the master is in a beat.
  • change_config takes the changes the admin assistant drafts (operation, kind, id, document). It needs config.write too, and secrets.write for a change that touches a secret.

A cancel records who asked for it beside the reason code, and the run page shows it.

Trust posture

What an agent connected to these servers can do, and how to check what it was offered.

  • What each server reads and changes. /api/mcp reads what the dashboard shows and changes what its buttons change, as the tables above list. /api/mcp/admin reads the installation's raw records and runs the repairs. Neither server offers a tool beyond those tables.
  • Every call is your own route call. A tool calls one dashboard route with your credential, under your permissions and project scope. A personal access token narrows them to its scope. The route decides each call, and a refusal comes back as the route's own status and text.
  • Repairs are confirmed runs. A repair previews first and acts only on a second call carrying the preview's digest, as a run that records who asked, what, the reason given and how it ended.
  • No authority, no sign-in. An installation without an authority configured answers both endpoints, like every route, to anyone who can reach the server.
  • Tool texts are pinned. A tool's name, description, input schema, annotations and every route its values bind to are constants in the server's code. Nothing at runtime (configuration, the database, a skill) changes what a client is offered. Each tool carries a sha256 of all of that in its _meta under ai.codeably/sha256, and the repository pins every hash and every binding in tests/AgentSmith.Tests/Server/mcp-tool-pins.tsv. The test suite fails while the tools differ from that file, which blocks the commit, so every change to a tool text or binding is a reviewed line in that file's history.

Compare against the release

GET /api/mcp/manifest and GET /api/mcp/admin/manifest answer, behind each endpoint's own permission, the endpoint, its permission, the server's build revision and version, and the tools you see with their hashes, as tools/list lists them:

curl -s -H 'Authorization: Bearer codeably_pat_…' https://<server>/api/mcp/manifest \
  | jq -r '.tools[] | "/api/mcp\t\(.name)\t\(.sha256)"' > offered.tsv
git show <revision>:tests/AgentSmith.Tests/Server/mcp-tool-pins.tsv > pinned.tsv
grep -vFxf pinned.tsv offered.tsv

<revision> is the manifest's revision; a build stamped without one names none. The last command prints nothing when every hash the server reports is pinned in that revision, and a line it prints is a tool that release did not pin. The hashes are the server's own report: they tell a client which pinned release a server says it serves and catch a tool text that drifted from it, not a server that was altered to report pinned hashes over other texts. That trust rests on running the image the release built.

The operator skill

The tool descriptions say what each tool answers. How a series runs, which tool answers which question, how ids pass from one tool to the next and how to work out why a series is stuck live in a skill, codeably-operator, that the agent loads when a question needs it. Every server serves the skill of its own skills catalog at GET /api/catalog/skills/codeably-operator (catalog.read). With the embedded catalog the skill names exactly the tools that server offers; a catalog from another source serves the skill of that release, or 404 when it carries none. Install it for Claude Code:

mkdir -p ~/.claude/skills/codeably-operator
curl -fsS -H 'Authorization: Bearer codeably_pat_…' https://<server>/api/catalog/skills/codeably-operator \
  | jq -r .markdown > ~/.claude/skills/codeably-operator/SKILL.md

Fetch it again after the server is upgraded. The skill is also in the skills release the server pins, under skills/_clients/codeably-operator/SKILL.md.

How it runs

The endpoint is stateless Streamable HTTP. Any server replica answers any call, and no session is kept, so there is no server-sent progress: read again to see what changed. The server offers tools only, no MCP resources or prompts.

Without an authority configured, /api/mcp and /api/mcp/admin, like every route, answer anyone who can reach the server.