Start free

Your AI works with Cenaly (MCP + OAuth)

Your own Claude, ChatGPT, Codex, Antigravity, Cursor or VS Code on your business account via MCP and OAuth 2.1: 202 tools in 12 domains, a no-sign-in sandbox, read-only mode and confirmations

19 min read Admin panel demo
On this page 16

Your AI works with Cenaly (MCP + OAuth)

For business owners, accountants, CFOs, operations managers and integrators: connect your own Claude (claude.ai, Claude Desktop, Claude Code), ChatGPT / OpenAI Codex CLI, Google Antigravity, Cursor or VS Code directly to your Cenaly business account over MCP (Model Context Protocol 2025-06-18) and OAuth 2.1.

You use your existing AI subscription — with zero AI token markup, no middleman chatbot and no copied API keys. Your assistant acts strictly within the permissions your Cenaly account role grants, picks from 202 domain tools, reads your live business profile and built-in protocol guides, and always shows a preview and asks for confirmation before executing financial, external or irreversible actions.

In this article: guides in this section, server addresses and sandbox, 17 business verticals, domain map and identifiers, built-in MCP resources and prompts, OAuth 2.1, permissions and confirmations, cloud contour differences.

Five guides in this section#

Guide What it covers
Step-by-step connection & cenaly-ai-kit connecting Claude (web / Desktop / Claude Code), ChatGPT / Codex CLI, Google Antigravity, Cursor and VS Code in 60 seconds, choosing Read-only mode on the /mcp-oauth consent screen, pairing with the /pbx-api/mcp telephony server, installing portable skills from cenaly/cenaly-ai-kit, raw JSON-RPC requests and error codes
Accounting, Books v2, postings & projects with AI working with Cenaly Books v2 (accounting, 44 tools) and management accounting (management, 7 tools): how bank_* (“Counterparties → Bank”) differs from books_bank_* (“Accounting → Book Bank”), chart of accounts, trial balance, statement reconciliation, cash orders, adjustments, tax worksheets, month-end close with confirmToken (mct1.*), projects, cost centers, budgets and the book bridge
15 ready-made playbooks copy-and-run prompts and exact call chains for owners, accountants, CFOs, managers and integrators: morning brief, bank reconciliation, month-end close, project P&L, PDF refund letters, B2B invoices and reconciliation acts, team stand-ups, storefront audits and a 2-hour new-location launch
MCP tool catalogue code-generated reference of all 202 tools, 6 resources and 10 prompts with domains, risk classes (R0/R1/R2), confirmation modes, required permissions and input parameters
Guest API & guest MCP public interface for guest and shopper AI agents (/llm/v1 and /llm/mcp, 16 unauthenticated tools: menu/catalog, cart, orders, table reservations, hotel concierge) and how to choose between the guest and business contours

For call logs, call recordings, forwarding and routing rules on your own phone system, connect the dedicated Your PBX MCP server (/pbx-api/mcp).

Server addresses and contours#

The server implements MCP 2025-06-18 (with backward compatibility for 2025-03-26 and 2024-11-05) over streamable HTTP (POST JSON-RPC 2.0, stateless).

Purpose Address (international contour) Address (Russian contour, cenaly.ru) Authentication
Cenaly Business Account (primary server) https://api.cenaly.com/llm/mcp/account https://api.cenaly.ru/llm/mcp/account OAuth 2.1 Bearer (required for every method including initialize; unauthenticated requests receive 401 and trigger standard OAuth discovery)
Public Sandbox (30-second test without an account) https://api.cenaly.com/llm/mcp/sandbox https://api.cenaly.ru/llm/mcp/sandbox No sign-in and no token (isolated per-session copy of a demo business, reset hourly and on reconnect)
Your PBX MCP (telephony & call center) https://api.cenaly.com/pbx-api/mcp (plus direct https://sip-<loc>.…/pbx-api/mcp) https://api.cenaly.ru/pbx-api/mcp PBX OAuth or cpx_… key (details)
Guest Storefront MCP (acting on behalf of a guest/shopper) https://api.cenaly.com/llm/mcp https://api.cenaly.ru/llm/mcp No authentication for the 16 guest tools (details)

Your brand's exact endpoint URL, one-click CLI commands and configuration snippets are available inside the admin panel under AI models → Connect your AI (MCP) (/ai-models?tab=connect).

Try in 30 seconds: public sandbox (/llm/mcp/sandbox)#

To test Claude, Codex or Antigravity before connecting a live business, point your MCP client at https://api.cenaly.com/llm/mcp/sandbox:

  • No registration is required. The sandbox serves a realistic demo business, “Hearth & Grain” (a bakery-cafe cafe + online store ecommerce + B2B catering): an accounting book with 19 accounts, 20 October bank statement lines and 20 postings, 2 management projects with budgets, 10 team tasks across 4 employees, 5 emails, document files and templates, a knowledge-base collection, 7 CRM counterparties, 6 commercial B2B documents, storefront settings and 4 widgets.
  • tools/list exposes 41 simulated tools: 32 read tools (sandbox: "read") and 9 session-write tools (sandbox: "session" — books_bank_v2_decide, team_task_add, team_task_comment, team_task_update, mail_mark_read, mail_send, kb_add_note, widget_config_update, catalog_stoplist_set), along with all 6 MCP Resources (plus cenaly://sandbox/about) and 10 MCP Prompts.
  • Writes are real within your private session (Mcp-Session-Id): posting a bank line via books_bank_v2_preview → books_bank_v2_decide with a confirmToken updates your session's trial balance and project plan-vs-actual report, while mail_send records the message in your session's sent folder without sending external email. Your session state resets automatically at the top of every hour and whenever you reconnect.
  • Calling any other write tool from the full catalogue returns a safe dryRun: true preview (“nothing changed”); calling a read tool that has no demo fixture returns not_in_sandbox with a hint to connect /llm/mcp/account.

17 verticals and the live account profile#

Cenaly powers 17 business verticals (businessType) and 2 industry terminology presets:

  • Food service (5): restaurant, cafe, bar, fastfood, canteen (item=dish, catalog=menu, place=table/hall, guest=guest, visit=reservation).
  • Commerce, hospitality & logistics (4):
    • retail and ecommerce (item=product, catalog=catalog, guest=customer, place=counter/warehouse);
    • hotel (item=service, place=room/floor, guest=guest, visit=reservation, dedicated PMS module);
    • pickup_point — parcel pickup point (item=parcel, place=cell/rack, guest=recipient).
  • Services & appointment booking (3):
    • beauty — beauty salon / barbershop (item=service, provider=master, place=chair, guest=client, visit=booking);
    • booking_services — appointment-based services (provider=specialist, place=office/branch), including the clinic preset (guest=patient, provider=doctor, place=cabinet, visit=appointment) and the auto_service preset (item=work, catalog=works, provider=mechanic, place=servicePost);
    • professional_services — legal, accounting and consulting firms.
  • Education (1): education — private schools, training centers and tutoring (item=course, catalog=courses, place=classroom, guest=student, provider=teacher, visit=lesson).
  • Content & external website widgets (4): blog (item=article, guest=reader), corporate_site, widgets, chat.

Domain map and identifier dictionary#

The /llm/mcp/account registry contains 202 tools (135 R0, 45 R1, 22 R2): 195 tools across 12 user-facing business domains, plus 7 internal tools in the partners domain (rootOnly: true) that appear in tools/list only for the verified root administrator of a brand's partner program.

Domain (domain) What it covers Tools R0 / R1 / R2 Where to start
account Business locations of the account and MCP endpoint discovery (including /pbx-api/mcp) 2 2 / 0 / 0 list_locations, list_mcp_endpoints
accounting Cenaly Books v2: legal entities, books (mgmt, statutory, tax, ifrs), chart of accounts, postings, trial balance, book bank (books_bank_*), cash orders, expense journal, adjustments, reconciliations, tax worksheets, regulatory forms and month-end close 44 33 / 5 / 6 books_entities → books_list, books_readiness, books_actions, books_chart, books_bank_lines, books_close_status
management Management accounting: P&L and cash-flow article trees, cost centers (ЦФО), management projects, budgets, plan-vs-actual variance and the book-to-book bridge 7 6 / 0 / 1 books_mgmt_structure, books_mgmt_projects_list, books_mgmt_report, books_budgets_list, books_budget_planfact, books_bridge_get
bank “Counterparties → Bank”: location bank accounts and statements, operation search, linking payments to CRM invoices and counterparties, direct Russian bank sync (bank_refresh on .ru) 8 5 / 1 / 2 bank_list_accounts → bank_suggest_links, bank_search_operations
crm CRM & B2B documents: counterparty cards, contracts, commercial documents (quotes, invoices, acts, shipment notes), issue flow with confirmToken, counterparty ledgers, debt aging, reconciliation acts, sales deals, activities and PDF refund letters (refund_*) 26 18 / 6 / 2 crm_find_counterparties, crm_counterparty_get, crm_doc_registry, crm_aging_report, crm_deals_list, refund_list
documents “Documents” section: location file storage, document templates and rendered instances, built-in rich text and Univer spreadsheets (doc_rich_*), website legal documents and audit history 17 11 / 5 / 1 files_list, doc_templates_list, doc_instances_list, legal_docs_list, doc_history_list
tasks Team tasks & work chat: location task boards, subtask trees, interactive HTML checklists, recurring shift templates, blockers, in-task approvals, email thread linking and internal team chat (workchat_*) 18 8 / 10 / 0 team_members, team_tasks_list, team_templates_list, team_checklist_report, workchat_channels_list
mail Mailboxes: corporate, shared and connected mailboxes, thread and attachment reading, signatures and sending email 8 5 / 2 / 1 mail_list_mailboxes → mail_get_mailbox_settings, mail_list_messages
kb AI Knowledge Base: collections, documents, rule/Q&A notes, review queue, free passage search (kb_search) and paid RAG answers (kb_ask) 12 5 / 5 / 2 kb_list_collections, kb_search, kb_list_documents, kb_drafts_list
site Storefront, website & marketing: location storefront settings, design templates, subdomain rename, Static Website Builder (international contour), “My Site” embeddable widgets (widget_*), visitor triggers (triggers_*), blog and guest reviews 26 17 / 6 / 3 get_site_settings, widgets_status_list, website_list, triggers_list, blog_posts_list, reviews_list
ops Daily operations: catalog and stop-list (“86”), live and historical orders, revenue analytics and POS risk alerts, warehouse stock and documents, customers, reservations and appointments, staff timesheets and vertical summaries (hotel, school, pickup_point) 21 19 / 2 / 0 analytics_revenue_summary, analytics_risk_alerts, dashboards_summary, catalog_categories_list, orders_list, inventory_stock_list, vertical_summary
data Raw storage files: reading and writing account/location configuration JSON files and event-sourced signals (system and secret keys are strictly refused) 6 3 / 0 / 3 resolve_domain, list_files, read_file
partners Brand partner program root domain (rootOnly: true, hidden from regular accounts) 7 3 / 3 / 1 partner_candidates_list, partner_candidates_search

How business objects and identifiers connect#

Account (the signed-in owner, or a staff member working in the owner's account)
 ├── Location (locationId · public uppercase `domain` code) — vertical (businessType) and terminology slots
 │    ├── ops: catalog (itemId) · stop-list · orders (orderId) · stock · customers · reservations / appointments · staff
 │    ├── site: storefront · Static Website Builder (siteId) · "My Site" widgets · triggers · blog · reviews
 │    ├── tasks: task board (taskId) · templates (templateId) · checklists · work chat (channelId)
 │    ├── CRM: counterparties (counterpartyId) · contracts (contractId) · B2B documents (docId) · deals · refunds
 │    ├── Counterparties → Bank (bank_*): bank accounts (accountKey) · statements · operations (opId + month) ↔ CRM docs
 │    └── Documents: files (fileId) · templates (templateId) · instances (instanceId) · rich docs/sheets · legal docs
 ├── Mailboxes (mailboxId, messageId) · knowledge-base collections (collectionId, docId)
 └── Legal entity (entityId)
      └── Book (book = mgmt | statutory | tax | ifrs) — chart, postings, book bank (books_bank_*, itemId), taxes, close
           └── management layer: P&L and cash-flow articles · cost centers · projects (projectId) · budgets (budgetId) · bridge

Never mix up these four pairs of identifiers:

  1. locationId / domain vs entityId / book: daily operations, storefront, tasks, warehouse, files and CRM are scoped to a location (locationId or uppercase domain from list_locations). Cenaly Books accounting (books_*) is scoped to a legal entity (entityId from books_entities) and its book (book from books_list).
  2. bank_* (accountKey + opId) vs books_bank_* (entityId + itemId): two separate bank contours exist by design. “Counterparties → Bank” (bank_*) links payment rows (opId) to CRM counterparty cards and invoices to track operational receivables and payables. “Accounting → Book Bank” (books_bank_*) classifies statement rows (itemId starting with "bank:") into double-entry accounts and posts ledger entries across the entity's books. See Accounting, Books v2 & projects with AI.
  3. counterpartyId (cp_…) vs partyId / sellerPartyId (sp_…): counterpartyId is an external customer or supplier card in CRM; partyId is one of your own seller legal entities in CRM documents and bank statements.
  4. docId vs fileId vs instanceId: docId in crm_doc_* addresses a commercial CRM document (invoice, act, quote), whereas in books_journal_event it addresses an accounting source document; fileId addresses a file in “Documents → Files”; instanceId addresses a document rendered from a template (doc_templates_list).

Built-in MCP resources and prompts#

Even without local skills installed, /llm/mcp/account teaches any MCP client how Cenaly works in-protocol via resources/list, resources/read, prompts/list and prompts/get.

6 MCP Resources (resources/read)#

Resource URI MIME type Contents
cenaly://account/vertical-profile application/json (dynamic) Live profile of the signed-in account: accessible locations with businessType, presets (clinic/auto_service), terminology slots, country, currency and time zone; accessible legal entities (entityId); contour (aws — international, yc — cenaly.ru); active OAuth scope (account/account:read); AI consent status (aiConsentRequired/aiConsentGranted); /pbx-api/mcp availability
cenaly://guide/overview text/markdown Map of the 12 user domains, identifier dictionary, R0/R1/R2 risk classes, confirmToken rules and cloud/regional boundaries
cenaly://guide/accounting-books text/markdown Cenaly Books v2 guide: books (mgmt, statutory, tax, ifrs), chart of accounts, trial balance, statement reconciliation (books_bank_v2_preview → books_bank_v2_decide and books_bank_decide), cash orders, expense journal, adjustments, tax worksheets and month-end close
cenaly://guide/crm-vs-books text/markdown How “Counterparties → Bank” (bank_*) differs from “Accounting → Book Bank” (books_bank_*), issuing B2B documents (crm_doc_*), reconciliation acts and two-step PDF refund letters (refund_parse → refund_apply)
cenaly://guide/tasks-projects text/markdown Team task board (team_*), HTML checklists, auto-translation, recurring shift templates, internal work chat (workchat_*), management projects (books_mgmt_*) and CRM sales deals (crm_deals_*)
cenaly://guide/site-widgets-kb text/markdown Location storefront vs Static Website Builder (website_*) vs “My Site” widgets (widget_*) vs visitor triggers (triggers_*) vs AI Knowledge Base (kb_*)

On the public sandbox /llm/mcp/sandbox, a seventh resource — cenaly://sandbox/about — describes the “Hearth & Grain” demo business and session rules.

10 MCP Prompts (prompts/get)#

Prompt name (name) Arguments (* = required) What it runs
morning_brief locationId?, entityId?, date? Owner's morning brief: revenue, POS risk alerts, overdue tasks, unread emails, unclassified bank lines
reconcile_bank_month period* (YYYY-MM), entityId?, locationId?, contour? (books|crm) Step-by-step monthly bank statement reconciliation in the accounting book (books) or CRM bank (crm)
month_close_check entityId*, period* (YYYY-MM), book? Month-end close readiness audit: source coverage, active exceptions, sub-ledger and inventory checks, close checklist
project_pnl_review entityId*, period* (YYYY-MM|YYYY-Qn|YYYY), projectId? Management P&L by project and cost center, budget plan-vs-actual variance and cell drill-down
process_refund_letter locationId?, fileId?, text? Customer refund letter parsing (refund_parse), risk and bank account verification, refund card creation (refund_apply)
prepare_b2b_documents counterpartyQuery*, locationId?, docType? (invoice|act|quote|reconciliation) Draft B2B invoice, act or quote preparation, or bilateral reconciliation act preview
team_tasks_standup locationId?, assigneeName?, days? Team stand-up: overdue and blocked tasks, shift checklist execution report and new task assignment
audit_storefront_and_widgets domain?, locationId? Full audit of storefront settings, Website Builder, “My Site” widgets, triggers, guest reviews and KB gaps
inventory_and_sales_check locationId?, period? Warehouse stock below-minimum alerts, inventory documents, book stock reconciliation and stop-list management
onboard_new_location locationId?, vertical?, country? Integrator 2-hour launch playbook for setting up and verifying a new business location

Permissions, OAuth modes and security#

1. Token permissions match your in-app role#

No MCP tool grants privileges on its own. Every call runs through the standard admin or Go microservice authorization layer using the verified identity of the signed-in user:

  • The account owner can access all owned locations, legal entities, books and sections.
  • A staff member can read or change only the locations, sections, mailboxes and accounting books (acct.read, acct.review, acct.post, acct.close, cards.read, docs.write, etc.) allowed by their role.

2. Choosing “Read only” vs “Read and changes” on /mcp-oauth#

When an AI client connects via OAuth 2.1, the browser opens your brand's consent screen (/{lang}/mcp-oauth), where you choose the session access mode:

Consent screen mode OAuth scope Server enforcement
Read only (recommended to start) — selected by default account:read tools/list returns only read and dry-run preview tools (R0, up to 135 tools). Any R1 or R2 tool call (as well as mail_get_message with markRead: true, or doc_instance_pdf when it would record a recipient delivery stamp) is rejected at the dispatcher before reaching the service with 403 scope_read_only. Resources and prompts include a READ-ONLY session banner.
Read and changes (within your permissions) account Enables reading, drafts (R1) and write operations (R2) allowed by the user's role, guarded by confirmation rules.

Access tokens are sealed server-side with AES-256-GCM (lao1.<iv>.<ciphertext>.<tag>, refresh tokens — lar2.<grantId>.<clientId>.<sealed>): the client application never receives the raw internal JWT and cannot escalate account:read to account.

You can revoke any connected app in one click under AI models → Connect your AI (MCP) → Connected apps → Revoke. Revoked tokens stop working within 30 seconds.

3. Risk classes (R0 / R1 / R2) and cryptographic confirmToken (mct1.*, rfc1.*)#

Every tool carries deterministic MCP 2025-06-18 annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) and risk metadata:

Risk class Count MCP annotations Scope & confirmation rules
R0 (Read-only & previews) 135 readOnlyHint: true, destructiveHint: false, idempotentHint: true Lists, gets, searches, reports, trial balance, tax worksheets and dry-run previews (*_preview). Never mutate state; available in account:read.
R1 (Reversible write / draft / AI billing) 45 readOnlyHint: false, destructiveHint: false Creates or edits commercial document drafts (crm_doc_save_draft), adjustment drafts (books_adjustment_save), tasks and checklists (team_task_add, team_task_note_check), internal chat messages (workchat_post_message), KB notes (kb_add_note) and stop-lists (catalog_stoplist_set). Also includes kb_ask and refund_parse (riskWhy: "billing"), which consume the account's AI balance.
R2 (Money / outbound / publish / delete / period-close) 22 readOnlyHint: false, destructiveHint: true (except refund_apply), openWorldHint: true for external actions Ledger and bank postings, issuing financial documents, closing periods, sending external emails, activating visitor triggers, renaming subdomains, deleting files or projects. The agent must show a preview and obtain explicit user confirmation first.

For critical R2 actions, the server enforces two-step cryptographic confirmation tokens (confirmToken):

  • Mandatory server token (confirmMode: "token_required", 3 tools):
    1. books_close_action (when action is "hardClose", "lock", "reopen", or override: true) — must first be called with dryRun: true to inspect the close checklist and mint a single-use mct1.* token (TTL 15 minutes); calling without a token returns 409 confirm_token_required.
    2. books_mgmt_project_save (when op: "delete") — must first be called with op: "delete", dryRun: true and baseRev to mint an mct1.* token (TTL 1 hour).
    3. refund_apply — requires the rfc1.* token (TTL 6 hours) minted by refund_parse, plus the array of user-confirmed action IDs (actions).
  • Paired preview + token (confirmMode: "token_optional", 2 tools):
    • books_bank_v2_preview → books_bank_v2_decide (mct1.*, 15 minutes);
    • crm_doc_issue_preview → crm_doc_issue (mct1.*, 15 minutes). Any passed confirmToken is verified strictly (fail-closed).
  • Anti-tampering & anti-replay (mct1.*): each token is HMAC-SHA256 signed and bound to the brand, account, user (sub), tool name, canonical hash of all arguments (ah) and live server state hash (sh). Changing any parameter triggers 409 confirm_args_mismatch; concurrent state changes trigger 409 confirm_state_changed; reusing a token triggers 409 confirm_token_replayed.

4. Operations never exposed through MCP (forbidden class R3)#

To protect business security, the following operations are never registered in MCP and cannot be called under any token scope:

  • reading or writing account secrets, LLM provider API keys, PBX SIP passwords or integration tokens (ai/*, mcp-keys.json, security.json, locations/*/sip.json, *-tokens.json — raw read_file/write_file/delete_file calls return 403 owner_secret, and list_files filters them out);
  • changing passwords, MFA, deleting the account, transferring ownership or modifying staff roles and access grants;
  • reading HR personnel files, identity document scans, PIN codes or payroll slips (staff/*, hotel-guests.json, privacy/*);
  • automatically submitting tax returns to government authorities (RS.ge, FNS, etc.) — MCP exposes only tax worksheets (books_tax_worksheets) and immutable form drafts (books_form_draft);
  • fiscalizing cash-register receipts, sending bank payment orders or transferring money on refunds (refund_apply only creates the refund request card in CRM);
  • live publication in Static Website Builder (website_publish is not exposed — only website_edit_draft and website_publish_preview).

Differences between the international contour and cenaly.ru#

Most of the 202 tools work identically on both cloud contours, with the following cloud- or jurisdiction-specific boundaries:

Capability / Tool International contour (api.cenaly.com) Russian contour (api.cenaly.ru)
OAuth 2.1 sign-in (/llm/mcp/account) & account:read scope Yes Yes
Public sandbox (/llm/mcp/sandbox) Yes Yes
Direct Russian bank API sync (bank_refresh: Tochka, T-Bank, Modulbank, Raiffeisen) Hidden (clouds: ["yc"]), returns 403 wrong_contour if called Available (owner only); file upload via bank_upload_statement works on both contours
Static Website Builder (website_list, website_get, website_edit_draft, website_publish_preview) Available (owner only) Returns 501 website_builder_aws_only — use built-in storefront settings (get_site_settings / update_site_settings) and CMS pages (website_pages_list with source: "cms")
Creating a brand-new catalog item via catalog_item_upsert_draft (without itemId) Available (creates a hidden draft with published: false) Returns 501 create_unsupported_cloud — updating existing items (with itemId) and catalog_stoplist_set work on both contours
Accounting book write mutations (books_bank_decide, books_bank_v2_decide, books_cash_order_create, books_exception_resolve) May return { queued: true } (read-model rebuild completes asynchronously within a few seconds) Executes synchronously
Tax worksheets (books_tax_worksheets) & regulatory forms (books_forms_list) Governed by the legal entity's country pack (country in books_entities); inapplicable mechanisms return 404 capability_not_in_pack Russian pack includes USN (kind: "usn"), VAT (vat), profit tax, threshold radar and taxpayer registry check (taxpayer_check)
Written AI consent (requiresAiConsent: true, 14 tools: all kb_*, refund_parse, website_edit_draft) On cenaly.ge (Georgian Law No. 3144 Art. 37(2)(d)), requires the owner's signed AI consent in Settings → AI features (otherwise 403 ai_consent_required) Not required

See also#

Was this article helpful?