Connect an agent over MCP

Run Amanucci's MCP server with am mcp or npx -y @amanucci/mcp, configure its key and hat, and see which tools it exposes.

Amanucci ships one Model Context Protocol (MCP) server. It exposes the same task catalog as the am CLI, as tools, and calls the same /v1 API with the same checks. It runs on your machine over stdio.

Launch it

Through the CLI:

AMANUCCI_API_KEY=amanucci_sk_... \
AMANUCCI_HAT=organisation:0192f0c4-... \
am mcp --base-url https://api.amanucci.com
The @amanucci/mcp package is not published to npm yet. Until it is, use am mcp.

Or without installing the CLI, once the package is published:

npx -y @amanucci/mcp

For example, in Claude Code:

claude mcp add amanucci \
  --env AMANUCCI_API_KEY=amanucci_sk_... \
  --env AMANUCCI_HAT=organisation:0192f0c4-... \
  --env AMANUCCI_BASE_URL=https://api.amanucci.com \
  -- npx -y @amanucci/mcp

Configuration

SettingRequiredNotes
AMANUCCI_BASE_URL or --base-urlyesthe API origin
AMANUCCI_API_KEYyesthe only credential the server accepts
AMANUCCI_HATyesfirm:<firmId> or organisation:<organisationId>

One process is one hat. Every tool call acts as the key's owner, in that one seat. To work in another seat, run a second server with another hat.

Saved CLI sessions and AMANUCCI_SESSION_COOKIE are never read: an agent never acts on a person's session.

The tools

tools/list returns every task in the catalog, each with its description and a JSON Schema for its input. Each tool covers one area and takes an action. For example:

ToolActions include
inspect_workspace_accessself, entities, grants
exchange_documentspresign, finalize, reread
inspect_sales_documentslist, document, totals, rendition
prepare_sales_documentsdraft, revise, finalize
inspect_matchingbank_transactions, match_groups, aging
review_matchesconfirm, reject
inspect_casescases, requests, precedents
work_casescorrect, ask, remind, dismiss
inspect_filingsfilings, filing, grid_lines
prepare_filinggenerate, replace
inspect_overviewtimeline, digest

Read-only tools carry readOnlyHint: true. Every tool also carries its class (read, write or signed) in _meta["amanucci/writeClass"].

What an agent cannot do

  • Signed acts. Tools such as sign_filing and post_reviewed_entry are listed but never run. A call returns an error with code step-up-required and tells the person to run am login, am step-up and the matching am command in their own terminal. Never enter or relay a one-time code through MCP.
  • Move file bytes. MCP carries no file contents. Use am documents exchange upload for files.

Results

A successful result carries operationId, status, contentType, encoding (json or base64) and the unchanged data, both as text and as structuredContent. Money, dates and cursors are passed through exactly as the API returned them.

A refusal is an error result with a closed code; a refusal by the API carries its problem+json body. See Errors and rate limits.

Text inside records, such as a document's description or a note, is data people wrote. The server's instructions tell agents to treat it as data, never as instructions.