People can connect their own AI apps (Claude, Cursor, VS Code and others) to a server built into the Wiki. An app signs in as the person: it reads only what that person can read, and changes only what they may change, where you allow changes. It uses the same tool list as Ask Kee. For what people see, see Connect AI apps.
1. What it needs
| What | Details |
|---|---|
| Licence | Pro or higher |
| Its own switch | Let outside AI apps connect, off by default. It is separate from Kee: it needs no model provider and works while Kee is off |
| The public address | Set under Settings → General. The server's address is that address followed by /mcp/wiki |
| A registered AI app | Each AI app people use is registered under Settings → Access management → Applications; there is no self-registration |
| The permission | Connect AI apps, a row of the Kee permissions grid. Organization admins by default |
2. Where it is
Settings → Kee → Outside AI apps (ai:manage). While Kee is off, the same settings show as a card under the Kee page.
- Open Settings → Kee and the Outside AI apps tab (with Kee off: the card under the page).
- Turn on Let outside AI apps connect.
- Under What apps may do, set each group of tools to Off, Read or Read and change.
- Under Who may connect, and how, tick the roles that may connect apps, and save.
- Register each AI app under Settings → Access management → Applications (see Register an AI app). Its client ID then shows to people on Connect AI apps.
Turning the switch off asks first. Every connected app stops at once, on every server; connections and their settings are kept and work again when it is turned back on. A space whose admins turned Kee off is closed to outside apps too.
3. What apps may do
Each group of tools has a mode. A change is written at once, under the person's name, with the same permissions, page locks and limits as in the Wiki.
| Group | Tools | Modes |
|---|---|---|
| Core (in every connection) | Search, pages and their tree, spaces, comments and labels: 7 that read, 4 that change | Read (default) or Read and change; it can't be off |
| Tool search (in every connection) | Find and run the tools that aren't in a connection's list | Always on |
| Product docs (in every connection) | The Wiki's own documentation, built into your version | Off or Read |
| Versions | A page's version history and earlier versions | Off or Read (default) |
| Templates | Page templates of a space and the library | Off or Read (default) |
| Attachments | Files attached to pages: list them and read their text | Off or Read (default) |
| Slides | Slide decks shown on pages: list them and read their slides | Off or Read (default) |
| Space members | Who holds a role in a space | Off or Read |
| Wiki administration | 14 tools that administer: space access and categories, labels everywhere, page locks, the template library, Q&A and blog settings, mirror syncs, imports and analytics | Off (default) or Read, change and administer (Enterprise). See Administration tools |
- Off hides a group from the tool list, from tool search and from calls. People can't choose it for a connection.
- Only the Core group has tools that change: create page drafts, change pages, comment, add and remove labels. Only the Wiki administration group has tools that administer. No tool touches people, keys, sign-in, the licence or Kee's own settings.
- An app changes something only when all three allow it: the application is registered for reading and changing, the person agreed to it when signing in, and the group is set to Read and change here. A key changes only when the person made it for reading and changing.
- A change applies to every connection from its next call.
4. Administration tools
With an Enterprise licence, outside AI apps can also administer the Wiki for a person: who can do what in a space, space categories, labels across the Wiki, page locks, the template library, a space's blog settings, Q&A tags and comments, mirror syncs, and reading imports and analytics. The full list is in What Kee can do. Kee itself, agents and scheduled help never get these tools.
An app runs an administration tool only when all of these are true:
- The licence is Enterprise. Below it, the level isn't offered and the tab says so.
- An administrator set the Wiki administration group to Read, change and administer on this tab and confirmed that choice in its own dialog.
- The AI app's application is registered with the Administer scope, and the person agreed to it when signing in. The sign-in screen lists it apart, under a warning.
- The connection signed in through the browser. A key never runs these tools, whatever it may do otherwise.
- The person holds the permission for that change themselves (a space admin for a space's access, a Q&A moderator for tags, and so on). An app can never do more than the person could do by hand.
- Open Settings → Kee and the Outside AI apps tab.
- Under What apps may do, find Wiki administration (marked Administration tools) and set it to Read, change and administer.
- Read the dialog Allow administration tools? and select Allow administration. Cancel leaves it off.
- Register the AI app under Settings → Access management → Applications with the Administer scope (see Register an AI app). People who sign in to it are asked to agree.
- Every call of an administration tool is in the audit log as wiki_outside_apps:admin, with the tool, the app, via, whether it changed something and whether it was destructive, next to the change's own entry and events.
- Tools that remove something (set_space_access, set_space_categories, delete_label, merge_tags) are marked destructive, so AI apps ask before running them.
- They take from the same call limit as other tools, and an app that retries gets the first answer.
- Connections that may administer carry a Read, change and administer badge in the connections list.
- Setting the group back to Off removes the tools from every connection at its next call. Saving Read, change and administer without the confirmation, or for a group without administration tools, is refused.
- A person without the permission who connects with the Administer scope sees the tools listed; every call is refused.
5. Who may connect, and how
| Setting | Default | Meaning |
|---|---|---|
| Who may connect AI apps | Administrators | The roles of the Connect AI apps permission. Super admins always may. Groups are added in the Kee permissions grid on Features and access. A person's app never gets more than the person has |
| Let people make keys | Off | For apps that can't open a browser to sign in. A key acts as the person who made it, is shown once and ends after at most 90 days. The switch is the installation's: it also covers keys for plugins that serve AI apps, and shows only to people who manage applications. Turning it off stops existing keys |
| Calls per person per minute | 60 | All of a person's connections together; a change counts as two. 1 to 6000. Over it, the app is told how long to wait |
6. Register an AI app
Each AI app people sign in through is an application under Settings → Access management → Applications: a public application of the kind AI agent, with the app's redirect addresses, and this Wiki's server (wiki) among the servers it may use. Choose Read only, or Read and change for apps that may write; add the Administer scope only for apps that may run administration tools. See AI agents.
- Registered AI apps on the tab lists them, marked Read only or Read and change.
- People find each app's client ID on their Connect AI apps page.
- The person signing in sees what the app asks for; changing the Wiki is listed apart, under a warning.
7. Usage and connections
- Use in the last 7 days: people, tool calls, changes, and calls refused or failed.
- Connections used in the last 7 days (at most 50): the app, the person, key or sign-in, read only or read and change, calls, tools and changes.
- End connection asks first, then blocks that connection on every server: the app can no longer read or change the Wiki as that person. Their other connections are not affected. There is no undo: the person removes the connection and signs in again to reconnect.
8. Audit and events
- Every change is in the audit log with the person, the app and the page: the page's own entry carries via and via_app, and the server adds wiki_outside_apps:change (tool, app, page, version; never content).
- Reads are counted in the usage numbers, not logged one by one.
- Settings changes raise wiki.outside_apps.update (audit wiki_outside_apps:update_settings); ending a connection raises wiki.outside_apps.connection.revoke (audit wiki_outside_apps:revoke_connection). A person's choice of groups for a connection is audited as wiki_outside_apps:update_connection.
- A change raises the page's own events (page.create, page.publish, page.comment.create and the rest) with via: mcp. See Events.
- Every call of an administration tool adds wiki_outside_apps:admin (tool, app, via, changed, destructive, target) next to the service's own entry.
9. Cluster and Redis
Settings, connections and ended connections are in the database and apply on every server with the next request. The call limit and the write budgets are shared through Redis; without Redis each server counts on its own.
10. Scheduled job
| Job | When | What it does |
|---|---|---|
| wiki-outside-apps-cleanup | Daily at 03:41 | Deletes usage counts and unused connections older than 13 months, and retry keys older than a day |
11. Limits
- Ending a connection doesn't remove the person's sign-in or key: it blocks the connection in the Wiki until they remove it.
- Usage and the connections list cover the whole installation, not one organization.
- An app that retries a new page or comment with the same retry key gets the first answer; if the first call never finished, the app is told the outcome isn't known and nothing is written.