Skip to main content

MCP server and AI app connections (administrator notes)

The switch​

Settings → Apps → MCP, part of Accounting agents. Off, the MCP server, the OAuth endpoints' approval screen and the tokens screen refuse; connections already made stop working until it is on again.

Who may connect an app​

mcp_token.create — seeded for Admin, Manager and Accounting. A person connects apps for themselves only, in the company they are in; an app is never broader than the person. Changes an app asks for follow the MCP clients agent's autonomy (Settings → Accounting agents): Propose by default; an auto-post rule naming a tool lets it run alone within the rule's limit, logged, with Undo. A tool that moves money is never run alone.

What the installation needs​

Nothing to register with Claude, OpenAI, Perplexity or Google: each app registers itself (OAuth dynamic client registration) when somebody connects it.

  • WEB_BASE_URL is the public origin; the MCP address is <WEB_BASE_URL>/api/v1/mcp.
  • The load balancer sends /.well-known/oauth-* to the API, where the OAuth discovery documents are.
  • Redis holds one-time approval codes for five minutes.

Revoking​

Each person revokes their own connections on Settings → AI models → MCP. Removing a person from the company also stops their connections: a refresh is refused.

Deciding approvals from AI apps​

People may approve or reject from ChatGPT, Claude and other AI apps, proving each decision with the phone app, a texted code or their authenticator app. Two settings under Settings → Agents decide how (changing them needs the approval policy permission):

SettingChoicesDefault
Deciding approvals from AI apps (mcp.chat_approvals)Phone app, text or authenticator · Phone app or text · Phone app only · Not from AI appsPhone app, text or authenticator
Phone app only at or above (mcp.chat_approval_push_over)an amount; zero for none0

The authenticator app is never accepted for anything that moves money, whatever the setting. The amount is compared as a number, whatever the currency.

Finding them afterwards. In the audit log, tick Decided from an AI app: every change a decision made from a chat caused, with how it was proven ("confirmed by sms", "by push", "by authenticator").

Records kept. AI apps' retry records and unused approval codes are deleted after 30 days; the record of how each decision was proven, after two years (job mcp.purge_records, daily).

After a deploy, check the server from outside without changing anything:

MCP_TOKEN=mcp_… uv run python scripts/mcp_smoke.py https://your-erp.example.com