The API and the MCP server
ShippedWorks today.
Each book has an HTTP ledger API scoped by a book key, and an MCP server exposing the tool surface an agent needs to read and write validated double-entry.
Scope and authorisation
A book key (cbk_…) is scoped to exactly one book. Three authorisation layers
stay distinct — org membership, access grants, and key scopes — and no access
returns 404 rather than 403, so a key cannot be used to discover which books
exist.
The tool surface
create_book · book_status · add_transactions · add_directives ·
open_accounts · list_accounts · get_ledger · run_query · balances ·
generate_report · history · revert
Writes go through bean-check server-side. A rejected write returns REJECTED
with the validator’s error, and nothing is committed.
The hosted MCP server
Any MCP client can reach a book at https://api.finkpr.com/mcp (Streamable
HTTP, stateless, JSON responses). There are two ways in:
- Sign in with finkpr (OAuth 2.1). Give the client the address and nothing
else. A request with no credential gets
401withWWW-Authenticate: Bearer resource_metadata="https://api.finkpr.com/.well-known/oauth-protected-resource/mcp". That document names the authorization server,https://api.finkpr.com, whose metadata is at/.well-known/oauth-authorization-server. The owner signs in atapp.finkpr.com, picks one book and chooses read only or read and write. Claude, ChatGPT and Claude Code connect this way. - A book key, sent as
Authorization: Bearer cbk_…, for clients that take a header: Cursor, Hermes, OpenClaw, scripts.
What the authorization server supports, following the MCP authorization spec:
| What | How |
|---|---|
| Grant types | authorization_code with PKCE (S256 only, required), refresh_token |
| Client registration | Client ID Metadata Documents (an https client_id), Dynamic Client Registration at /oauth/register, or a pre-registered client |
| Scopes | book:read, book:write (write includes read) |
| Redirect URIs | exact match; https, or http on localhost / 127.0.0.1 with any port |
| Access tokens | one hour, valid only at the MCP server they were issued for (resource) |
| Refresh tokens | rotated on every use; reusing an old one ends the connection |
| Revocation | /oauth/revoke (RFC 7009), or Disconnect on the book’s Use your own assistant page |
A signed-in connection reaches the one book its owner chose, through the same checks as a book key of the same scope. Its token is not accepted by the HTTP ledger API, and assistant calls never spend finkpr credits.
Connecting the plugin
Pass only the cbk_… key and the bok_… id. Do not pass an explicit
control_url — connect_book rejects it even when it is the correct
/v1/books/<id>/api URL the book page prints. Let the plugin resolve the
endpoint.
Webhooks
A book can send a signed book.changed webhook when it changes: ids and a
count, never ledger content. The receiver then reads the changes from the
book’s feed with its own read-only key. The webhook is built and switched off on
finkpr’s servers for now. See Connecting a CRM.
What there is not
No public OpenAPI document, and no rate-limit headers you can plan against. If you are building something that depends on any of those, say so on the board and it will be visible rather than guessed at.
Something here wrong or missing? Put it on the board — it is public, and the reply is in the thread.