Guide

# MCP server

Connect Claude, or any MCP client, to your business: it reads what you can read, and prepares transfers and invoices that only a person can approve or issue in the app.

## Connect a client

The server speaks MCP over Streamable HTTP at `/mcp` on the host you sign in to. Add that URL to your client as a remote server, for example in Claude Code:

```shell
claude mcp add --transport http manza https://za.manza.finance/mcp
```

In claude.ai, add it as a custom connector with the same URL. There is no API key to paste: the client signs you in with OAuth 2.1.

1. The client calls `/mcp`, gets `401` and finds the authorization server from `/.well-known/oauth-protected-resource/mcp`.
2. It registers itself (dynamic client registration) and opens the consent page.
3. You sign in, choose the business it may reach, review what it asks for and allow it with your second factor.
4. The client receives an access token for one hour and a refresh token that keeps it connected for 30 days of use.

A connection belongs to you in one business. It can only ever do what your own role allows there, and it loses a permission the moment your role does. Revoke it at any time in Security settings, under Connected apps.

The business must have finished its verification (KYB), and the MCP server must be switched on for it.

## Scopes

A client asks for scopes; the consent page grants only those your role holds. A client that asks for none asks for all of them.

| Scope | What it allows |
| --- | --- |
| `entities:read` | See the business's details |
| `accounts:list` | List your accounts |
| `accounts:read` | See account details and balances |
| `movements:list` | List your transactions, and the spending and cash flow summaries |
| `movements:read` | See transaction details |
| `invoices:list` | List your invoices |
| `invoices:read` | See invoice details |
| `customers:list` | List your customers |
| `customers:read` | See customer details |
| `invoice_drafts:create` | Prepare invoice drafts for you to finish in the app |
| `invoice_drafts:read` | See the invoice drafts it prepared |
| `payment_links:list` | List your payment links |
| `payment_links:read` | See payment link details and where one stands |
| `beneficiaries:list` | List your recipients |
| `beneficiaries:read` | See recipient details (no tool needs it yet) |
| `transfer_drafts:create` | Prepare transfers for you to approve in the app |
| `transfer_drafts:read` | See the transfers it prepared |
| `bulk_payments:read` | List your bulk payments and see where one stands |
| `cards:list` | List your cards, with their last four digits, holder and status |
| `cards:read` | List your cards and see where one stands |
| `card_details:read` | See a card's details, controls and limits |
| `tasks:read` | See what needs your action |
| `api_keys:read` | See your API keys, their scopes and IP allowlists |
| `api_requests:list` | See your API request log and why a key was refused |
| `checkout_sessions:read` | See why a checkout session was not paid |

## Tools

`tools/list` shows only the tools this connection may call: those whose scopes it holds, for the products your business has. Any other tool answers as one that does not exist. Records come back as the REST API describes them (cards, which have no REST endpoint, as `get_card` lists), with personal data masked (below); amounts are decimal strings, always per currency.

| Tool | Scope | What it does |
| --- | --- | --- |
| `get_entity` | `entities:read` | The business: its id and name |
| `list_accounts` | `accounts:list` | Your accounts; balances and the last four digits of each number with `accounts:read` |
| `get_account` | `accounts:read` | One account with its available and booked balance |
| `list_transactions` | `movements:list` | Transactions, newest first, by account, operation or dates |
| `get_transaction` | `movements:read` | One transaction |
| `spending_analysis` | `movements:list` | Spending by category, label or merchant |
| `cash_flow_summary` | `movements:list` | Money in and out per month or week |
| `business_overview` | `movements:list` | Cash flow, top expenses and revenue; balances with `accounts:read`, invoices with `invoices:list` |
| `list_invoices` | `invoices:list` | Invoices, newest first, by status or customer |
| `get_invoice` | `invoices:read` | One invoice with its items |
| `list_customers` | `customers:list` | Customers, with a search |
| `get_customer` | `customers:read` | One customer |
| `create_invoice_draft` | `invoice_drafts:create` | Prepare an invoice draft for a person to finish in the app |
| `get_invoice_draft` | `invoice_drafts:read` | One invoice draft an MCP connection prepared in this business; its wizard link while it is a draft |
| `list_payment_links` | `payment_links:list` | Payment links, by status or type; the account number's last four digits with `accounts:read`, for accounts you may read |
| `get_payment_link` | `payment_links:read` | One payment link; the account number's last four digits with `accounts:read`, for an account you may read |
| `list_beneficiaries` | `beneficiaries:list` | Recipients with the bank accounts a transfer can pay |
| `create_transfer_draft` | `transfer_drafts:create` | Prepare a transfer for approval in the app |
| `get_transfer_draft` | `transfer_drafts:read` | One draft an MCP connection prepared in this business; its review link while it awaits approval |
| `list_cards` | `cards:list` | Your cards: name, last four digits, holder, status, type, network, account and currency |
| `get_card` | `card_details:read` | One card, with whether ATM, online and contactless payments are on, this month's spend and, where the card has them, its spending limits; never the card number beyond its last four, the expiry or the PIN |
| `get_record_status` | any of `payment_links:read`, `bulk_payments:read`, `cards:read` | Where a payment link, bulk payment or card stands |
| `list_record_statuses` | any of `payment_links:list`, `bulk_payments:read`, `cards:read` | Your most recent payment links, bulk payments or cards of one kind, to ask `get_record_status` about |
| `list_attention_items` | `tasks:read` | What needs your action, in the order to act, each with the link where you act |
| `list_api_keys` | `api_keys:read` | Your API keys: name, prefix, status, scopes, IP allowlist and when each was last used; never the secret |
| `list_api_requests` | `api_requests:list` | Your API requests of the last 30 days, newest first, by key, refusals only or a start time: route, status, why the allowlist refused it, the address it showed and whether it was proven, the host and the user agent |
| `diagnose_api_key` | `api_requests:list` and `api_keys:read` | Why a key is refused with `403 ip_not_allowed`, and what to change |
| `diagnose_checkout_session` | `checkout_sessions:read` | Why a checkout session was not paid: its attempts' decline codes and a verdict |
| `search_docs` | None: every connection | Search this documentation; the best pages with their Markdown and URL |

List tools page with `limit` (up to 200); pass the previous page's `next_cursor` as `cursor`.

Once plan entitlements are enforced for your business, a plan without payment links leaves the payment link tools out of the list, and `get_record_status` then answers a payment link as not found.

`get_record_status` answers in the words the record's own page shows you: whether it is on track, needs you to act or needs help, since when, and when the next step is expected. It needs the scope of the record's kind, and is available where record status is switched on for your business. `list_record_statuses` lists the records of one kind, newest first, so you can find the one to ask about; payment links need `payment_links:list` there, and your role must allow listing that kind. Cards and card requests, for either tool, also need card status switched on for your business; until then they answer `Not found`.

`list_attention_items` lists what is waiting on you, as the in-app assistant lists it: approvals waiting for your vote, other open tasks, records that need you to act, transfer drafts you may review, then setup steps. It shows only what your role lets you act on.

`search_docs` reads these pages, which are public, so every connection may call it.

`diagnose_api_key` explains a refused key. A `403 ip_not_allowed` never says why, so the reasons are kept on our side: `ip_unverified` means we could not prove your address, most often because the client called a host other than your market's API URL (the guidance names it); `ip_not_listed` means a proven address outside the key's list. Each reason comes with the addresses, hosts and user agents we saw. An unproven address is never one to add to the list. The API key tools and `diagnose_checkout_session` are for legal representatives and managers.

`diagnose_checkout_session` takes a session's `id` or its `cs_` slug and returns the session's status and amount, its newest card attempts with each decline's code and classification, and a verdict. It never returns the payer's name, email, address or card, the session's metadata values, description or URLs, or a provider's request or response body.

**Personal data.** What a tool returns leaves Manza for your AI client, so it is masked first. A person's email and phone come back masked (`j***@gmail.com`, `+27 ••• ••• •123`), and every account number, your own included, shows only its last four digits (`••••1234`). A business's email and phone come back in full; a customer or recipient not marked as a business counts as a person. Names, references and amounts are not masked, nor is the user agent an API call sent, which `list_api_requests` and `diagnose_api_key` return as your client sent it. The full details stay in the app and the REST API. To tell the two apart, an invoice's `customer` also carries `customer_type`, which the REST API's invoice does not.

## Transfer drafts

`create_transfer_draft` moves no money. It saves the same draft the New transfer form saves, from one of your accounts to a recipient's bank account (`beneficiary_id` and `external_account_id` from `list_beneficiaries`) or to another of your accounts (`destination_account_id`), with the same checks on your role and the accounts it names.

The answer says `"draft": "requires in-app approval"` and gives `review_url`, the draft's review page. Nothing happens until a person opens it in the app, checks it and approves it with their second factor, under your plan's limits and your business's approval rules. Until then the draft is listed with your other drafts in Payments.

No tool approves, finalizes, edits or deletes a draft, and none ever will. Every call without a `client_reference` makes a new draft; send your own `client_reference` and a retry with the same arguments returns the draft it made instead of a second one.

`transfer_method` chooses the rail, as on `POST /api/payments`: `eft` or `rtc`. Left out, the draft takes `eft`, the default rail; any other value is refused with the values allowed.

> **Note:** Drafts are limited to 10 a minute per connection.

## Invoice drafts

`create_invoice_draft` prepares an invoice for one of your existing customers (`customer_id` from `list_customers`), with its lines, discounts and dates, under the same checks on your role as the invoice wizard. A line left without `tax_rate` gets your business's own VAT rate; a rate your business may not charge is refused, with the rates it may.

The draft is never numbered, sent or put up for approval here. The answer says `"draft": "requires in-app completion"`, gives `review_url`, the draft in the invoice wizard, and lists in `still_needed` what the wizard will still ask for, such as a bank account. A person finishes and issues it there; until then it is listed with your other drafts in Invoices.

If your invoice settings are not finished, the tool says so and links them. No tool issues, edits or deletes an invoice. A `client_reference` makes a retry safe, as for transfer drafts.

> **Note:** Invoice drafts are limited to 10 a minute per connection.

## Limits and errors

Each access token may make **120 calls a minute**. Past that the server answers `429`.

| Answer | When |
| --- | --- |
| `401` with `WWW-Authenticate` | No usable access token: refresh it if possible; otherwise connect again |
| `403` `entity_inactive` | The business has not finished its verification |
| `403` `entity_restricted` | Manza has made the business read-only: every call is refused until it is lifted |
| `429` `rate_limited` | More than 120 calls in a minute on one access token |
| Tool result with `isError: true` | The call ran and failed: invalid arguments, `Not found`, or the reason a draft was not saved |

A record outside what you may see answers `Not found`, exactly like one that does not exist.