Zum Inhalt springen
Diese Seite ist in Ihrer Sprache noch nicht verfügbar. Englische Version wird angezeigt.

MCP Server for a Running Potato Study

Let an agent annotate a live Potato study as a declared machine annotator or operate the study over /mcp, with a scoped token or an OAuth sign-in.

Potato's mcp config block lets an agent work inside a running study over the Model Context Protocol (MCP), an open protocol through which an AI application calls tools that another program exposes. An agent can annotate as a declared machine annotator and pass through every phase a person passes through, from consent to graded training. As an operator, an agent can also find the items annotators disagree on, read agreement and annotator quality, adjudicate, and add items. Potato 2.15.0 offers 29 study tools, and every tool stays off until an admin enables the block and names the tool. One tool destroys work and needs a second opt-in. Clients connect at the study's /mcp address with an agent token or through an OAuth sign-in that an admin approves, and Potato appends every call, granted or refused, to an audit log in the task directory.

The authoring server and the study server

Potato's MCP server has two halves, and the mcp block configures only the second. potato mcp serve runs the authoring half on your own machine over stdio while a study is being designed. The authoring server lists annotation types, display types, config keys, and bundled examples, validates a config with the validator that potato start runs, checks the data files, and boots a temporary copy of the task to return a screenshot with any browser errors. All 14 authoring tools read and write only inside the folder given by --root, and Quick Start with a Coding Agent covers the authoring server. The study half runs inside a Potato server and answers at the task's own address, under /mcp and /api/mcp/. Everything below covers the study server.

New in v2.15.0

Every tool is named potato__<method> on every transport, such as potato__get_next_item or potato__validate_config. Claude Code shows the same tool as mcp__potato__potato__get_next_item. The mcp.tools list in the config takes the bare method name, get_next_item. A study's /mcp can also serve any of the 11 authoring tools that take no file path, once mcp.tools names the tool.

Installing the MCP extra

The MCP server needs Python 3.10 or newer and release 2.3 or later of the MCP SDK (mcp>=2.3,<3), and the mcp extra installs the SDK. For render_task_screenshot, the agent extra adds Playwright, and Playwright needs Chromium as well:

bash
pip install 'potato-annotation[mcp]'
 
# or, for the authoring tools with screenshots
pip install 'potato-annotation[agent]'
playwright install chromium

Potato itself still installs and runs on Python 3.9, where the mcp extra installs nothing and the MCP server is unavailable. When the SDK is missing or older than 2.3, a study server answers /mcp with 503 and names the problem in the response body. Because potato mcp tools lists the authoring tools without starting a server or importing the SDK, a working potato mcp tools beside a failing potato mcp serve points at the SDK install.

Declaring a machine annotator

New in v2.15.0

An agent records annotations only as a machine annotator that the config declares, never as a person. Every tool that records work writes under the machine annotator that the agent's credential is bound to. Potato stamps the work with the machine's origin, and agreement, Multi-Annotator Competence Estimation (MACE), and item response theory (IRT) then keep the machine apart from people. The block below declares one LLM annotator:

yaml
machine_annotators:
  enabled: true
  annotators:
    - id: claude-labeller
      kind: llm
      model: claude-sonnet-5-5

Each entry under annotators takes the fields below:

FieldMeaning
idThe user id the agent annotates under. A token issued with --machine-id names the id.
kindllm or tool. Potato treats any other value as a machine as well.
model, tool, endpoint_typeThe program that produced the answers.
version, database_version, run_dateThe version of the program and the date of the run.
web_loginWhether the id may also sign in through the web pages, as described below.

In a study with mcp.enabled, a declared id does not sign in through the web pages unless the entry sets web_login: true. The web pages here are registration, the sign-in form, single sign-on, and crowd links. Because the simulator's llm and agent strategies sign in through /register and /auth, a declared id that the simulator uses against such a study needs web_login: true. In a study without MCP, declared ids sign in as any account does, and web_login: false keeps an id off the web pages there too. The machine annotators documentation covers how agreement, MACE, IRT, adjudication, and export treat machines.

Phases a machine sees

By default, a machine annotator goes through every phase a person does, with training graded and qualification gating applied. A model that fails training therefore never reaches the annotation phase. machine_annotators.phases switches consent, prestudy, instructions, training, and poststudy off for machines, and the annotation phase cannot be switched off:

yaml
machine_annotators:
  enabled: true
  phases:
    consent: false
    instructions: false
    training: true        # still graded before annotation
  annotators:
    - {id: claude-labeller, kind: llm, model: claude-sonnet-5-5}

Potato records each skipped page in the participant's flow record with the reason machine_annotator. A page whose show_when tests participant.kind stays even when the page's phase is switched off. With instructions: false, a machine therefore skips the generic instructions and still sees a briefing written for machines. participant.kind is human, llm, or tool. The partial phases block below shows a briefing page to LLM annotators only:

yaml
phases:
  order: [consent, instructions, model_briefing, training, annotation]
  model_briefing:
    type: instructions
    file: pages/model_briefing.json
    show_when:
      - {schema: participant.kind, operator: equals, value: llm}

Configuration options

No study tool answers until an admin names the tool in an mcp block, and Potato has no default set of tools. The block below lets an agent annotate as claude-labeller and lets an operator token read progress and agreement. Add the block to a config that declares the machine annotator above:

yaml
mcp:
  enabled: true
  tools:
    - get_task_spec
    - get_current_page
    - submit_page
    - get_next_item
    - submit_annotation
    - get_annotations
    - get_progress
    - search_items
    - get_agreement
  destructive: []
  audit_log: mcp_audit.jsonl

The example project in Potato's repository is a complete study built from the two blocks above, with a consent page, a briefing only machines see, and graded training. Each option of the block and the option's default are listed below:

OptionDefaultWhat the option controls
enabledfalseRegisters /mcp and the /api/mcp/ routes. While enabled is false, neither exists and Potato skips every other check of the block.
toolsnoneThe tools a credential may call, by bare method name. A tool left off the list is refused.
destructivenoneThe destructive tools a credential may call. A destructive tool has to appear in both tools and destructive.
scope.usersnoneThe annotators a call may name in the call's annotator argument. The value must be a list. With no list, or an empty list, a call may name any annotator.
expose_usernamesfalseShows annotators' real usernames to operator tools in place of pseudonyms.
audit_logmcp_audit.jsonlThe file Potato appends each call to. A relative path is read from task_dir.
auth.tokens_filemcp_tokens.jsonThe file that stores the token digests. A relative path is read from task_dir.
http.enabledtrueServes MCP at /mcp whenever enabled is true. Set false to keep only the /api/mcp/ JSON routes, and /mcp then answers 404.
http.public_urlnoneThe study's external origin, such as https://study.example.org. OAuth metadata names the address, and /mcp checks each request's Host and Origin headers against the address.
http.allowed_hosts, http.allowed_originsnoneFurther hosts and origins that /mcp accepts.
oauthoffOAuth sign-in for remote connectors, covered under Remote connectors and OAuth.
rate_limit.calls_per_minute600Calls each credential may make in a minute.
rate_limit.writes_per_minute120Writing calls each credential may make in a minute.
app.enabledtrueThe review form that propose_annotation opens.
allow_debugfalseLets the MCP routes run on a server with debug: true. Without the option, Potato refuses the combination.

Potato treats the block as an allowlist and stops at startup on a mistake rather than logging a warning. With enabled: true, Potato refuses a config in which tools names an unknown tool, or destructive lists a tool that destroys no work or that tools leaves out. A config that still lists list_items stops with an error naming the new tool, search_items. Potato also refuses a config that grants a tool that records annotations without declaring a machine annotator. The tools that record annotations are submit_annotation, submit_page, get_next_item, get_current_page, and adjudication_submit. Granting an engine_ tool while the labeling engine is off logs a warning, because every call to the tool would be refused.

Agent tokens

Clients that send a bearer header present an agent token issued on the machine that has the task's files. Claude Code, Codex, Cursor, and scripts all send a bearer header. The first command below issues a token that annotates as claude-labeller for 30 days, and the second command issues an operator token limited to three read tools:

bash
potato mcp issue-token --config config.yaml --name labeller --role annotator \
    --machine-id claude-labeller --expires 30d
potato mcp issue-token --config config.yaml --name ops --role admin \
    --tools get_progress,search_items,get_agreement
potato mcp tokens --config config.yaml
potato mcp revoke-token --config config.yaml --name labeller

issue-token takes the options below:

OptionDefaultMeaning
--roleannotatorannotator, adjudicator, or admin. The role decides which tools the token can call.
--machine-idnoneThe declared machine annotator the token records annotations as. A token without a machine id can read and operate but cannot record annotations. Potato refuses an id that machine_annotators does not declare.
--toolsevery tool in mcp.toolsA comma-separated subset of mcp.tools.
--expiresneverA lifetime such as 30d, 12h, 90m, or 2w.
--notenoneFree text stored beside the token.

issue-token prints the token once, and Potato never shows the token again. Potato stores only the token's SHA-256 digest in mcp_tokens.json under task_dir. potato mcp tokens lists each token's name, role, and binding, and revoke-token revokes every token issued under the name. Agents send the token as Authorization: Bearer <token> or in an X-Agent-Token header. Potato ignores X-API-Key on the MCP routes, and the shared admin key therefore opens no MCP tool.

A token's role grants the permissions of Potato's built-in role of the same name, and custom roles in the rbac block do not change what the token role grants. The built-in roles reach the tools as follows:

Token rolePermissionsTools the role can call
adminall sevenevery tool
adjudicatoradjudicate, export_data, annotatethe annotator tools, the three adjudication_ tools, export_data, and engine_certificate
annotatorannotatethe annotator tools

Connecting a client

New in v2.15.0

A study server with mcp.enabled answers MCP at /mcp over Streamable HTTP in stateless mode, and answers the same tools as plain JSON at POST /api/mcp/tools/<method>. potato mcp config prints the setup block for a client. The block points at the study's /mcp and reads the token from the POTATO_AGENT_TOKEN environment variable. --client takes claude-code, claude-desktop, cursor, or codex:

bash
potato mcp config --client claude-code --url https://study.example.org

For Claude Code, the same connection is one command:

bash
claude mcp add --transport http potato https://study.example.org/mcp \
    --header "Authorization: Bearer $POTATO_AGENT_TOKEN"

Because Claude Desktop's config file starts only local processes, the command prints a block for Claude Desktop that runs the stdio bridge, potato mcp connect. The bridge forwards to the study's JSON routes and serves the local authoring tools beside the study's tools. Other users of the machine can read a --token value in the process list, so keep the token in POTATO_AGENT_TOKEN rather than passing --token:

bash
export POTATO_AGENT_TOKEN=...
potato mcp connect --url https://study.example.org

Over either route, tools/list shows only the tools the credential can call. The list depends on mcp.tools, the token's --tools subset, the token's role, and whether the token has a machine id. A destructive tool appears in the list only when mcp.destructive names the tool as well, because Potato refuses every call to a destructive tool that mcp.destructive leaves out. GET /api/mcp/manifest returns the same tools with each tool's arguments, along with the task name, the credential's name and role, and the machine id.

Annotating as a machine

New in v2.15.0

An agent bound to a machine annotator works through the study with six tools, in the order below:

  1. get_task_spec returns the questions and the shape each answer takes.
  2. get_current_page returns the page in front of the machine, with the page's text and questions, or annotation once the machine is through the earlier phases.
  3. submit_page answers the current page and moves on. The call passes the page name that get_current_page returned, and Potato refuses the call with 409 if the machine has moved on since.
  4. get_next_item returns the next item assigned to the machine. Before the annotation phase, the result names the phase and tells the agent to call get_current_page.
  5. submit_annotation records answers for the item.
  6. The agent repeats steps 4 and 5 until get_next_item returns done: true.

A machine that fails training gets done: true with training_failed: true from get_next_item and annotates no items. submit_annotation takes answers keyed by scheme name, shaped as below:

Scheme typesAnswer
radio, selectone label, such as "positive"
likertan integer from 1 to size, such as 4
multiselecta list of labels, such as ["sports", "tech"]
texta string, or {field: text} for a scheme with several boxes
number, slidera number within the scheme's range, such as 72.5
multirate{row: column}, such as {"grammar": "good"}
affect_grida point within the axes' ranges (-1 to 1 by default), such as {"x": 0.4, "y": -0.2}. The keys may also be the axes' configured names, valence and arousal by default.
spanan entry in spans rather than answers, such as {"schema": "entities", "label": "PER", "start": 0, "end": 4}

Span offsets count code points in the item text that get_next_item returned. get_task_spec reports every other annotation type as writable: false, with a note that a person can answer the scheme on the annotation page.

Potato checks every answer before writing anything and returns every problem at once, with the valid labels or the range for each. dry_run: true validates without writing, and items submits up to 50 items in one call, all validated before any is written. A write that leaves a required scheme unanswered is refused. Answers the machine already stored on the item count toward the required schemes.

rationale takes one sentence on why, and Potato keeps the rationale in the audit log. Because the write goes through the save path the browser uses, the item's annotator list, progress, agreement, and exports all include the machine's answer. A second submit for the same item replaces the machine's answer, and a retried call therefore changes nothing.

get_annotations returns stored answers in the shape submit_annotation accepts. A machine reads the machine's own answers, and an operator with view_admin_dashboard can pass annotator to read anyone's.

Review before recording

propose_annotation shows a person the machine's proposed answer in an inline form, in clients that support MCP Apps. The person confirms or corrects the answer, and the form calls submit_annotation with review: {status: confirmed} or {status: corrected, proposed: {...}}. Potato still records the answer as the machine's and stores the review beside the answer with the time. A correction also stores the machine's proposal and rationale. CSV and TSV exports add _review_status and _review columns, and a later write without a review clears the stored review. A client that does not declare app support gets text telling the model to wait for the person if the person can see the form, and otherwise to ask in chat. mcp.app.enabled: false turns the form off.

Operator tools

New in v2.15.0

An agent that operates the study needs no machine id, only a role that has each tool's permission. The 22 operator tools are listed below:

ToolPermissionWhat the tool does
get_statusview_admin_dashboardReturns the task name, the number of items, and the number of annotators.
get_progressview_admin_dashboardReturns items, items with an annotation, percent complete, total annotations, and active annotators.
list_annotatorsview_admin_dashboardLists each annotator's phase, kind (human or machine), items assigned, and items done.
search_itemsview_admin_dashboardFinds items by status (any, unannotated, annotated, or disagreed), by annotator, by has_machine_label, or by a query substring of the id or text. Pages of up to 200 items, continued with cursor.
get_itemview_admin_dashboardReturns one item's data and the item's annotators, without the annotators' answers.
get_item_disagreementview_admin_dashboardReturns how annotators answered one item, scheme by scheme, and how far apart the answers are.
get_agreementview_admin_dashboardReturns agreement per scheme, between people and between machines and the human majority.
get_annotator_qualityview_admin_dashboardReturns attention-check and gold-standard results per annotator, and MACE competence where MACE is on.
get_configview_admin_dashboardReturns the task's config with every secret replaced by [redacted] and without the mcp block.
engine_status, engine_requests, engine_scheme_reportview_admin_dashboardRead the labeling engine.
adjudication_queue, adjudication_itemadjudicateReturn the items waiting for adjudication, most contested first, and one item's adjudication view.
adjudication_submitadjudicateRecords the final answer for a contested item, as the machine.
add_itemsmanage_assignmentAdds up to 500 items, each with the task's id_key.
assign_itemsmanage_assignmentSets how many items an annotator may receive.
engine_run, engine_certifymanage_assignmentRun one labeling-engine planner pass, or evaluate every contract.
engine_certificateexport_dataReturns the labeling engine's quality certificate in json, md, or html.
export_dataexport_dataRuns a registered export format on the server.
delete_annotationsmanage_assignmentClears one annotator's answers to one item. Destructive.

Annotator names are hidden by default. Operator output shows each person as a stable pseudonym such as annotator_3f9a12c4. Potato derives the pseudonyms from a key kept in {task_dir}/.mcp_state_key. The same person gets the same pseudonym on every call and across restarts. An argument that names an annotator takes the pseudonym, as in assign_items, delete_annotations, or search_items. Machine annotator ids are shown as written. Set mcp.expose_usernames: true when the study's admin has decided that the names may leave the server.

The write tools follow the rules below:

  • adjudication_submit works only for a machine listed in adjudication.adjudicator_users, on an item in the adjudication queue. A decision another adjudicator already made stands.
  • add_items checks every id first and adds nothing when any id already exists in the study or repeats within the call. Potato records each added item in <output_annotation_dir>/runtime_items.jsonl and loads the items again after a restart. Items added at runtime are assigned only while max_annotations_per_user is -1, and when the cap is set, the response says that the new items are not assigned.
  • assign_items never lowers an annotator's cap below the number of items the annotator has already annotated.
  • export_data writes to a folder inside <output_annotation_dir>/exports/ that the output argument names, by default the format name. The tool's answer lists the files written, and the files name annotators by real username, as a web export does.
  • delete_annotations clears the annotator's labels and spans on the item and removes the annotator from the item, and the deletion cannot be undone. Take a project snapshot before granting the tool.

A study's items can contain text written to steer a model. Item content therefore comes back inside an untrusted_item object, and the server's instructions tell the model to treat the content as data.

Agreement with machines in the study

A machine annotator's answers count toward an item's coverage like a person's, and the agreement report keeps the two groups apart. /admin/iaa reports inter-human agreement as the headline figure, and get_agreement reports people with people and, for single-answer schemes such as choices and scales, machines against the human majority. MACE leaves declared machines out of competence estimates. The agreement guide covers the coefficients.

Remote connectors and OAuth

New in v2.15.0

Connectors that cannot send a bearer header sign in with OAuth 2.1, as a custom connector in Claude.ai or Claude Desktop does. Potato is the study's own authorization server, and an admin approves each connection. The partial block below adds OAuth to the mcp block above:

yaml
mcp:
  http:
    public_url: https://study.example.org
  oauth:
    enabled: true
    max_role: annotator
    max_grant_days: 90
    access_token_minutes: 60
    allowed_client_hosts: []
    allow_dynamic_registration: false
OptionDefaultWhat the option controls
oauth.enabledfalseTurns OAuth sign-in on. A config with oauth.enabled and http.enabled: false stops at startup.
oauth.max_roleannotatorThe highest role the consent page offers. Lowering the value also lowers every grant already made.
oauth.max_grant_days90The longest lifetime the consent page offers.
oauth.access_token_minutes60How long each access token lasts before the connector refreshes the token.
oauth.allowed_client_hostsnoneConnector hosts that may sign in, such as [claude.ai]. With a list set, no other connector can sign in.
oauth.allow_dynamic_registrationfalseAccepts connectors that register through RFC 7591 instead of a client ID metadata document.

Adding https://study.example.org/mcp as a connector starts the sign-in below:

  1. /mcp answers 401 and points the connector to /.well-known/oauth-protected-resource/mcp.
  2. The connector reads /.well-known/oauth-authorization-server and opens /mcp-oauth/authorize in a browser.
  3. An admin signs in on the page with the admin API key, or is already signed in with an RBAC role that has manage_users. Debug mode does not count as a sign-in.
  4. The consent page names the connector and the address the connector returns to. On the same page, the admin picks the machine annotator the connector records as (or none, for an operator), the role, the tools, and the number of days. Destructive tools start unticked.
  5. The connector exchanges the code with the connector's Proof Key for Code Exchange (PKCE) verifier and receives an access token and a refresh token.

Each connector is identified by a client ID metadata document, an https URL that serves the connector's name and redirect addresses. Codes last 60 seconds, PKCE S256 is required, and each refresh token works once. Replaying a code or presenting a used refresh token ends the whole grant.

Potato stores codes and tokens as SHA-256 digests in {task_dir}/mcp_oauth.sqlite and writes each grant, refresh, and refused refresh to the audit log. Because remote connectors require https, put the study behind TLS. Behind a reverse proxy, set POTATO_PROXY_FIX=1 as the reverse proxy guide describes, and route /.well-known/ at the domain root to the study when the proxy serves the study under a path prefix.

/admin/mcp/grants lists each connection with the connector's name, the machine the connector writes as, the role, the tools, and the times granted, last used, and expiring, and a Revoke button ends a connection. The page takes the same sign-in as the consent page and does not accept an X-API-Key header. A revoked grant's tokens stop at once. The same list and revocation run from a shell, where potato mcp grants --all includes revoked grants and --json prints the records as JSON:

bash
potato mcp grants --config config.yaml
potato mcp revoke-grant --config config.yaml g_8Hc2...

Checks on each call

Potato runs every call through the checks below, in the order listed, and stops the call at the first check that fails with a message the agent can act on:

CheckPasses whenAnswer on failure
Enabledmcp.enabled is true404, because the endpoints do not exist
Known toolthe call names one of the 29 study tools404, with the valid names
Credentiala valid token or OAuth grant that has not expired or been revoked401
Grantedthe tool appears in mcp.tools403, with the granted tools
Credential's toolsthe tool is in the credential's own subset, if the credential has one403
Destructive opt-ina destructive tool also appears in mcp.destructive403
Confirmationa destructive call is confirmed400
Machine identitya tool that records annotations has a credential bound to a declared machine annotator403
Permissionthe credential's role has the tool's permission403, naming the missing permission
Scopea call that names an annotator names one on mcp.scope.users, when the list is not empty403
Rate limitthe credential is under mcp.rate_limit429, with Retry-After

A destructive call is confirmed through the client's confirmation prompt where the client has such a prompt, and otherwise by passing "confirm": true. Potato counts rate limits per worker process, for each token or each OAuth grant.

Audit log

Potato appends one JSON line to the audit log for every call and every refused attempt. A granted call writes a call line with the credential's name, role, and source (token or OAuth), the client, the machine id, the transport, and the names of the arguments, without the argument values. For a refused call, the line gives the reason, such as auth_failed, not_granted, not_granted_to_token, no_machine_identity, permission_denied, out_of_scope, or rate_limited. When a tool raises an exception, Potato adds an error line, and a tool that answers with an HTTP error adds a refused line with the status. No setting turns the audit log off, and a blank audit_log falls back to mcp_audit.jsonl.

The write tools add a second line naming what changed:

  • annotation_submitted, with the item, the numbers of labels and spans written, and any rationale and review
  • page_submitted, with the phase and the page
  • adjudication_submitted, with the item
  • items_added, with the number of items
  • assignment_changed, with the annotator and the new cap
  • exported, with the format and the output folder
  • annotations_deleted, with the annotator and the item
  • engine_run and engine_certify

Safety on a live study

Because the study server gives an agent control of a study that people are working on, grant the fewest tools the agent's job needs and the lowest role whose permissions cover the tools. Potato's own checks cover several failure modes, and the settings below cover the rest:

  • Debug mode. debug: true opens admin pages without a key to requests from the server's own machine, and a tunnel or reverse proxy on the same machine can make every caller look local. Potato refuses mcp.enabled with debug mode in two places. First, config validation fails at startup when mcp.tools is not empty. Second, the routes do not register even when validation is bypassed. mcp.allow_debug: true overrides both refusals, and tokens and OAuth still apply.
  • DNS rebinding. With mcp.http.public_url or mcp.http.allowed_hosts set, /mcp checks the Host and Origin headers against the listed addresses and loopback. Set one of the two in production.
  • Scope. scope.users applies only to calls that name an annotator. Tools such as list_annotators, get_item, and export_data still read every annotator's work.
  • Rate limits. The defaults of 600 calls and 120 writes a minute per credential suit one agent. Lower the limits for an agent you are still testing.

potato deploy check config.yaml runs four MCP checks before you deploy. Errors D017 and D018 flag mcp.enabled on a server with debug: true and an enabled MCP block with no active agent token. Warnings D019 and D020 flag any tool in mcp.destructive and an active admin token with no scope.users list. The deployment guide covers the rest of potato deploy.

Upgrading from 2.14

Potato 2.15.0 changes the MCP server in ways that break 2.14 configs, tokens, and prompts:

  • Agents no longer record annotations as people. submit_annotation lost the username argument. Declare the agent under machine_annotators and reissue the agent's token with --machine-id. A token without a machine id can still read and operate.
  • Every tool is renamed to potato__<method> on the stdio server, the connect bridge, and /mcp. The live_ prefix is gone, so live_get_status is now potato__get_status. Update prompts, skills, and client allowlists that name tools. mcp.tools in the config keeps bare names.
  • list_items is now search_items. A config that still lists list_items stops at startup with the new name in the message.
  • Operator tools take annotator where 2.14 took username (assign_items and delete_annotations), and show people as pseudonyms. Pass the pseudonym back, or set mcp.expose_usernames: true.
  • A config that grants a tool that records annotations without declaring a machine annotator stops at startup.
  • The MCP server needs the 2.x SDK (mcp>=2.3) and Python 3.10. Upgrade with pip install -U 'potato-annotation[mcp]'.
  • The study server answers /mcp when mcp.enabled is set. Set mcp.http.enabled: false to keep only the /api/mcp/ JSON routes.
  • In a study with MCP on, a declared machine annotator's id no longer signs in on the web. Add web_login: true to each entry the simulator signs in under.

A 2.14 agent could record annotations under a person's username, and the audit log names each such write. Records written by 2.15 include machine_id in place of target. The command below lists the 2.14 writes:

bash
jq -c 'select(.event == "annotation_submitted" and .target != null)
       | {time, agent, target, instance_id}' mcp_audit.jsonl

Further reading

For implementation details, see the source documentation.