Configuration Properties
Last modified by superadmin on 2026/10/14 18:44
Reference
All MCP server configuration properties from the AI.MCP.Code.MCPServerConfig document (backed by AI.MCP.Code.MCPServerConfigClass).
| Property | Default | Description |
|---|---|---|
| enabled | 1 (enabled) | Master switch for the wiki's MCP endpoint. Fails closed on read errors (disabled). Only an explicit 0 disables. |
| serverName | Wiki pretty name, then "XWiki" | Server name advertised to connecting agents. |
| serverDescription | "XWiki MCP Server" | MCP initialization instructions sent to connecting agents. A "call man first" hint is appended automatically. |
| enabledTools | Empty (default policy: all non-write tools) | Explicit tool id list when non-empty. man is always added. Empty falls back to defaults. |
| allowRenderedContent | 1 (enabled) | Gates get_document's rendered mode. Fails open on read errors (rendering is a capability, not a confidentiality boundary). |
| spaceFilterMode | none | Space filter mode: none, whitelist, or blacklist. Read errors propagate as unchecked exceptions (fails closed). |
| spaceFilterSpaces | Empty | Space entries for the filter. Each entry covers the space and its whole subtree. |
| spaceFilterDocuments | Empty | Document entries for the filter. Each entry matches exactly one document. |
| reachEnabledWikis | Main wiki only (gated by reachInitialized) | Farm-level list of wikis whose MCP endpoints can reach across wikis. Read only from the main wiki's config document. |
| reachInitialized | Unset | Hidden farm-level marker. While unset, the default applies (main wiki reaches, others do not). The first farm dashboard save materializes defaults and sets this flag. |
Configuration document location
| Item | Value |
|---|---|
| Space | AI.MCP.Code |
| Document | MCPServerConfig |
| Class | MCPServerConfigClass |
| Space locked to | XWikiAdminGroup |