Skip to Content
Droot Developers

Connect AI Apps (MCP)

Connect Claude, ChatGPT, Gemini and other AI apps: they ask about records as the person.

People connect an AI app (Claude, ChatGPT, Gemini CLI, Cursor, VS Code and others that speak the Model Context Protocol) to DrootERP and ask it about their business records. The app reads with Droot AI's read tools as the person: only what their role, their companies and their administrator's Droot AI settings allow. It never changes anything.

Turn It On

  1. Setup › Integrations › Droot AI › Business Access: set AI Apps (MCP) to Allowed (externalClients, off by default). Business Records must be read for the people concerned (the switch there, or their policy).
  2. Roles: people need Ask Droot AI (assistant.ask) and record reading (records.read) in their role.

That is all while Apps Register Themselves is Allowed (the default): an AI app registers itself the first time someone connects it. Such an app:

  • reads and suggests, never writes: it gets Ask About Your Business, Suggest Changes, the read scope of every app, and Stay Connected, never a write or events scope (what it reads and suggests is still cut to the person's role and policy, and a suggestion changes nothing until the person applies it);
  • may send people back only to their own computer (http://localhost), to the Allowed Sites (claude.ai, claude.com, chatgpt.com and vscode.dev by default, with their subdomains), or, signing in with PKCE, through an Allowed App Link (cursor:// by default: Cursor signs in through its own link);
  • shows as Self-Registered in Apps and Access, where an administrator disables or deletes it like any app; the consent screen tells the person it registered itself and where they will return;
  • gets tokens that work on /mcp only, never on API v1.

The same switch covers apps that identify themselves by a client ID metadata document: instead of registering, the app's client ID is an https address (https://app.example.com/oauth/client.json) whose JSON names the app and its redirect URIs. DrootERP fetches it (public addresses only, no redirects, 5 seconds, 5 KiB), keeps it for an hour, and applies the same rules; the app shows with the address's host as its publisher. With the switch off, a new one is refused and one already known keeps working.

With Apps Register Themselves off, an administrator registers each AI app instead:

  1. Setup › Integrations › Apps and Access: register the AI app (one registration per app, such as "Claude" or "ChatGPT"):
    • Type: Public (the app signs in with PKCE), or Confidential if the app takes a client secret.
    • Redirect URIs: the app's callback. Claude uses https://claude.ai/api/mcp/auth_callback; tools on the person's computer (Claude Code, Gemini CLI) use http://localhost:<port>/callback; Cursor uses its own cursor://… link (a public app's own link scheme is allowed; javascript:, data: and the like never are). The app's documentation names its own.
    • Scopes: Ask About Your Business (assistant.ask), the read scope of each app it may read (crm.read, sales.read…), and Stay Connected (offline_access) so people don't sign in again every hour.

Connect an App

The server's address is the API address followed by /mcp, for example https://api.example.com/mcp. Setup › Web and API Addresses lists it as AI Apps (MCP), and Business Access shows it with a Copy button.

  • Claude (web, desktop, mobile): Settings › Connectors › Add custom connector, paste the address. When an administrator registered the app, enter its client ID (and secret) under Advanced settings.

  • Claude Code:

    claude mcp add --transport http drooterp https://api.example.com/mcp
    

    With an app an administrator registered, add --client-id <client id> --callback-port <port>.

  • ChatGPT: Settings › Apps & Connectors (developer mode), create a connector with the address and OAuth.

  • Gemini CLI: add the server to settings.json under mcpServers with httpUrl set to the address.

The app opens DrootERP's sign-in and consent page. The person sees the app, what it may read, and chooses the companies. They see and revoke it in Me › Connected Apps, with its Recent Questions (what it asked lately, by step, never the answers); an administrator sees every grant on the app's page, and AI App Usage in Setup › Integrations › Droot AI: each AI app that may ask, who is connected to it now, and its questions and refusals per day, person and kind of question (never what was asked or answered).

What the App Can Do

The tools are Droot AI's business tools:

Tool Does
find_records_models, describe_records_model the kinds of record the person can read, and their fields
search_records records of every kind matching words
query_records, aggregate_records lists with filters, and totals, counts and groups
get_record, trace_links, explain_value one record, the documents linked to it, where a value came from
analyse_process how records move through their stages
my_work the person's own activities and the approvals waiting on them, in the apps the app may read
find_business_metrics, query_business_metric the semantic layer's measures
propose_record_changes suggests changes (below); offered with Suggest Changes and the policy's switch

What the app reads is the narrowest of:

  • the scopes the person granted (a crm.read grant never reads HR records);
  • their role in that company (field rights, row policies, the views they open);
  • their Business Access policy for that company and role (on or off, record data, apps, tools, and AI Apps: a policy that names their company or role must allow AI apps, off by default; people no policy names follow the AI Apps switch alone);
  • the companies they chose when connecting. Tools read all of them together; an app may pass company to read one.

Fields marked personal (names, emails, phone numbers) are sent to an AI app only where the person's policy sets Personal Fields to AI Apps to Sent (off by default; never without a policy). Encrypted fields never are. Every tool call is in the audit log (assistant.mcp.tool), with the app and the person.

In apps that show rich results (ChatGPT, and Claude where it supports MCP Apps), tables, records, traces, "my work" and search results appear as a small DrootERP card, with links that open the records in DrootERP; other apps show the same answer as text. The card follows the app's light or dark theme, says when it was read ("Read 5 minutes ago") with a Refresh that reads it again as the same person, and offers up to three follow-up questions to ask next, where the app allows it.

Filters can say "me" ($me, for example records the person created or owns): it is the person who connected the app.

Not offered: changes the app makes itself, imports, documents and files, and scheduled tasks.

Suggested Changes

With the Suggest Changes scope (assistant.propose) and, where a Business Access policy names the person, AI Apps Suggest Changes allowed in it (off by default; with no policy, AI Apps on is enough), the app may propose: a new record, new values on a record, a stage move, a comment, an activity, or an approval decision, in the apps it may read. The app never makes the change:

  1. DrootERP checks the proposal as the person, with their own rights and policy, without saving. A proposal with problems goes back to the app to fix; the person never sees it.
  2. A sound one is kept in a new Droot AI conversation of the person's ("Claude: Mark Acme won"), with its card, and the app gets the link (reviewUrl) to give them.
  3. The person opens it in DrootERP and presses Apply (checked again, all or nothing, with Undo) or Reject.

Bulk changes, imports, emails and scheduled tasks stay with Droot AI's own chat.