Coming soon. The Wiki is in active development, so features and these docs may still change. Early adopters: contact us for access.

Outside AI apps

Let people connect their own AI apps to the Wiki's built-in server: the switch, what apps may do per group of tools, who may connect, keys, the call limit, registered apps, usage and connections

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

WhatDetails
LicencePro or higher
Its own switchLet 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 addressSet under Settings → General. The server's address is that address followed by /mcp/wiki
A registered AI appEach AI app people use is registered under Settings → Access management → Applications; there is no self-registration
The permissionConnect 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.

Settings → Kee → Outside AI apps: the switch, and for each group of tools what apps may do
Settings → Kee → Outside AI apps: the switch, and for each group of tools what apps may do
  1. Open Settings → Kee and the Outside AI apps tab (with Kee off: the card under the page).
  2. Turn on Let outside AI apps connect.
  3. Under What apps may do, set each group of tools to Off, Read or Read and change.
  4. Under Who may connect, and how, tick the roles that may connect apps, and save.
  5. 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.

GroupToolsModes
Core (in every connection)Search, pages and their tree, spaces, comments and labels: 7 that read, 4 that changeRead (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 listAlways on
Product docs (in every connection)The Wiki's own documentation, built into your versionOff or Read
VersionsA page's version history and earlier versionsOff or Read (default)
TemplatesPage templates of a space and the libraryOff or Read (default)
AttachmentsFiles attached to pages: list them and read their textOff or Read (default)
SlidesSlide decks shown on pages: list them and read their slidesOff or Read (default)
Space membersWho holds a role in a spaceOff or Read
Wiki administration14 tools that administer: space access and categories, labels everywhere, page locks, the template library, Q&A and blog settings, mirror syncs, imports and analyticsOff (default) or Read, change and administer (Enterprise). See Administration tools
What apps may do: Core set to Read and change, Tool search always on, Product docs and Versions set to Read
What apps may do: Core set to Read and change, Tool search always on, Product docs and Versions set to Read
  • 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.
  1. Open Settings → Kee and the Outside AI apps tab.
  2. Under What apps may do, find Wiki administration (marked Administration tools) and set it to Read, change and administer.
  3. Read the dialog Allow administration tools? and select Allow administration. Cancel leaves it off.
  4. 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.
What apps may do: Space members set to Read, and Wiki administration with its Administration tools badge set to Read, change and administer, with the note on what an app needs
What apps may do: Space members set to Read, and Wiki administration with its Administration tools badge set to Read, change and administer, with the note on what an app needs
Allow administration tools?: the 14 tools, the warning that an app can then make these changes at once under the person's name, and Allow administration
Allow administration tools?: the 14 tools, the warning that an app can then make these changes at once under the person's name, and Allow administration
The sign-in screen of an AI app that asks to read, change and administer the Wiki, with the administer scope listed under the warning
The sign-in screen of an AI app that asks to read, change and administer the Wiki, with the administer scope listed under the warning
  • 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.
Connections used in the last 7 days: two connections with Read and change and Administration badges, and one with Read and change, each with End connection
Connections used in the last 7 days: two connections with Read and change and Administration badges, and one with Read and change, each with End connection

5. Who may connect, and how

Who may connect, and how: the roles that may connect apps, Let people make keys, calls per person per minute, the registered AI apps, use in the last 7 days and the connections with End connection
Who may connect, and how: the roles that may connect apps, Let people make keys, calls per person per minute, the registered AI apps, use in the last 7 days and the connections with End connection
SettingDefaultMeaning
Who may connect AI appsAdministratorsThe 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 keysOffFor 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 minute60All 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

JobWhenWhat it does
wiki-outside-apps-cleanupDaily at 03:41Deletes 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.