A2A Check

For developers: account key and REST

You do not need this page for MCP: the guides per tool are enough there. This page holds the way with account key, agent token and REST, and the plugins.

You do not need this path for MCP.

1. Create an account

2. Create an agent and allow the configuration

An agent is the identity a package is checked under. Create it in the web interface (/ui): tick “Allow submitting the configuration” and the page that follows shows the agent token once, with ready-made commands (environment variables, MCP connection, one REST call) that hold the real agent ID. Or create it through the API:

curl -sS -X POST https://api.a2a-check.com/v1/agents \
  -H "Authorization: Bearer ACCOUNT_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Daily brief", "purpose_statement": "Reads calendar and mailbox and writes the daily brief.", "success_criterion": "The draft is in the mailbox by 07:30.", "domain_tags": ["reporting"]}'

The answer holds agent_id and agent_token. The token is shown once. A new agent allows nothing: the release rule is blocked until you allow a data class, and a submission of a blocked class is refused. Allow the configuration:

curl -sS -X PUT https://api.a2a-check.com/v1/agents/AGENT_ID/sharing-policy \
  -H "Authorization: Bearer ACCOUNT_KEY" -H "Content-Type: application/json" \
  -d '{"configuration": "allowed"}'

3. Connect

Pick one way. All of them give the same check and the same result.

MCP in Claude Code

claude mcp add --transport http a2a-check https://api.a2a-check.com/mcp

Then open /mcp in Claude Code and sign in: with your company e-mail address and the six-digit code (an address of an account, as owner or member, signs in to that account; the first sign-in of any other address creates a free account with it as owner address; no key is shown or sent), or with the account key; the page names the client, shows where it redirects to and what the connection may do. The tools are get_account, list_agents, register_agent, submit_check, get_check, list_checks and get_patterns. For a client without a browser, use the agent token instead: add --header "Authorization: Bearer AGENT_TOKEN" to the command. An account key is never accepted at /mcp.

MCP in Claude Cowork

Add a custom connector with the address https://api.a2a-check.com/mcp and approve the sign-in page.

MCP in Codex CLI

codex mcp add a2a-check --url https://api.a2a-check.com/mcp
codex mcp login a2a-check

The second command opens the sign-in page in the browser: sign in with your e-mail address and the six-digit code, then approve the connection. The tools are those of Claude Code. When you submit, name the harness codex-cli.

MCP in Gemini CLI

gemini mcp add --transport http a2a-check https://api.a2a-check.com/mcp

Then run /mcp auth a2a-check in Gemini CLI: the sign-in page opens in the browser, sign in with your e-mail address and the six-digit code and approve the connection. The tools are those of Claude Code. When you submit, name the harness gemini-cli.

REST

curl -sS -X POST https://api.a2a-check.com/v1/submissions \
  -H "Authorization: Bearer AGENT_TOKEN" \
  -F data_class=configuration -F harness=claude-code \
  -F "files=@CLAUDE.md" \
  -F "files=@.claude/settings.json;filename=.claude/settings.json"

harness is claude-code, claude-cowork, codex-cli or gemini-cli. The file name is the path inside the package: keep folders in filename=. A zip or tar archive works as one file. The answer holds check_id. Passwords, keys and tokens in a file make the intake filter refuse the whole submission; personal data is replaced and the answer names file and line.

4. Read the result

curl -sS https://api.a2a-check.com/v1/checks/CHECK_ID \
  -H "Authorization: Bearer AGENT_TOKEN"

state runs from received through filtered and checking to done. partial means the checks of external tools failed while the own rules completed; failed means the own rules could not run. The finding list is there once the own rules have completed. Poll with a growing pause, or use get_check with wait_seconds in MCP. Reading a result explains every field and the scores. In the web interface, /ui/findings lists your checks; each check has its own page with the findings, their limits, the patterns, a form to check again and, for an escalated finding, the button to acknowledge it.

5. Fix and check again

Change the files as the proposals say, then submit the package again with the previous check and the findings you addressed:

curl -sS -X POST https://api.a2a-check.com/v1/submissions \
  -H "Authorization: Bearer AGENT_TOKEN" \
  -F data_class=configuration -F harness=claude-code \
  -F recheck_of=CHECK_ID -F addressed_finding_ids=FINDING_ID \
  -F "files=@CLAUDE.md"

The new result marks each finding as resolved, still open or new. A finding that stays open through many checks is escalated; POST /v1/operator/findings/{finding_id}/acknowledge with the account key clears it. The same content within 24 hours is refused as a duplicate.

Plugins and other ways