Running Fettledesk
AI connections and personal tokens
Connect Claude, ChatGPT, Cursor or another AI app to Fettledesk over MCP, use personal tokens, set up Ask AI with your own provider, and connect Fettleboard or Fettlecode.
Fettledesk has no AI of its own. People can connect the AI apps they already use, and other Fettle apps (Fettleboard, Fettlecode) connect the same way. Both go through one address, <PUBLIC_URL>/mcp, which speaks the Model Context Protocol (MCP).
An AI app acts as the person who connected it, with exactly their permissions and no more. It can't change people, roles, settings or tokens, and bulk changes, deletions, merges and replies to customers wait for that person to confirm them.
Turning it on
AI connections are off until an admin turns them on, under Organisation settings → AI:
- Allow AI, then choose who can use it: admins only (the default) or all staff. Customers never can.
- AI apps can connect: apps and tokens reach
/mcp. Turn it off to stop every connection at once without revoking them. - Ask AI inside Fettledesk: a chat panel that uses a provider the admin sets up (OpenAI, Anthropic, xAI, Google, or a model you run yourself). The key is encrypted with the instance's secret key.
Turning AI on, changing these settings, and every connection made or revoked is in the audit log.
Apps that sign in
Apps that support MCP sign-in (OAuth with PKCE), such as Claude, ChatGPT and Cursor, only need the address <PUBLIC_URL>/mcp. They open a Fettledesk page asking you to allow them, which names the app and where connecting sends you back. Any app can call itself anything, so only connect if you started it from that app and trust that address. Access lasts 30 days from the last use. Apps that run on someone else's servers need Fettledesk to have a public https:// address.
How long Ask AI takes
Nearly all the wait is the AI provider. Ask AI goes back to the model after each thing it reads or changes, so a request that makes a change usually takes two or three trips. Speed depends on the provider, the model and the plan: free plans can be slow at busy times, and a model on a computer without a strong graphics card can take minutes. Testing a provider in its settings shows how long a tiny request took.
Answers appear as they're written. If nothing arrives for 20 seconds, the panel says it's still waiting. A request stops after 5 minutes (6 for a model on your own server), and says what it had already changed. Each step's timing is in the server's log, as Ask AI step, without the words of the conversation.
Personal tokens
A personal token lets an app act as you, for apps that take a token rather than signing in.
- Open your avatar menu → AI connections (or Profile and preferences, then the AI connections section).
- Choose New personal token, name it after what will use it ("Claude Code", "Fettleboard"), and Create token.
- Copy the token. It starts with
fdai_and is shown once: Fettledesk keeps only a hash of it.
Send it as a bearer token to /mcp:
POST /mcp
Authorization: Bearer fdai_…
- It works only on
/mcp. It can't sign in to the web app or call the REST API. - It stops working when you disconnect it (AI connections → Disconnect), when an admin turns AI or app connections off, when AI is limited to admins and you aren't one, or when your account is deactivated.
- Everything done with it shows in history as yours, marked "via" the token's name.
Confirming changes
Bulk changes, deletions, merges and replies to customers are never done straight away: they wait for you under Ask AI → Waiting for you, for up to 15 minutes, showing exactly what would change. Nothing happens unless you confirm.
Text written by customers, or by anyone who can email the help desk, reaches a model marked as untrusted, with instructions to treat it as information only. A model can still be misled by what it reads, which is why risky changes wait for a person.
Connecting Fettleboard or Fettlecode
Both use a personal token:
- Allow AI for the person they will act as. Use a dedicated account, such as "Fettleboard", that can see only the projects they need: everything they do shows in Fettledesk's history as that account.
- Signed in as that account, create a personal token.
- In Fettleboard (Settings → Integrations) or Fettlecode (repository settings), enter the Fettledesk address and the token.
Tools
The full list of tools, with whether each one reads, changes one record, or waits for confirmation, is at GET /api/v1/ai/tools and in the API docs (/api/docs). Tools call the same code as the API, so permissions, validation, history and the audit log work the same way.