Wiki source code of Connect an AI Assistant
Last modified by superadmin on 2026/11/25 21:27
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | The browser sign-in below needs the XWiki OIDC Provider extension; "[[Assistant Documentation Links>>doc:documentation.extensions.user.llm.mcp-server.connect-assistant.assistant-documentation.WebHome]]" gives your assistant's own MCP setup, and [[Agent Authentication>>doc:documentation.extensions.user.llm.mcp-server.agent-authentication.WebHome]] what it may then do. | ||
| 2 | |||
| 3 | 1. Configure your MCP client with the endpoint URL your wiki administrator gives you, and with the client ID and callback port when they give you those, then complete the sign-in flow it opens in your browser. On a wiki that uses single sign-on, you sign in with your organization's account. For example, with Claude Code:((( | ||
| 4 | {{code language="shell"}} | ||
| 5 | claude mcp add --transport http --client-id <client-id> --callback-port <port> xwiki <endpoint-url> | ||
| 6 | {{/code}} | ||
| 7 | |||
| 8 | Leave out {{code language="none"}}--client-id{{/code}} and {{code language="none"}}--callback-port{{/code}} when you have no client ID, then run ##/mcp## in Claude Code and authenticate the ##xwiki## server. | ||
| 9 | ))) | ||
| 10 | 1. Ask the assistant about the wiki and check that it answers from the wiki's own content rather than from what it already knew.((( | ||
| 11 | {{image reference="assistant-first-answer.png" size="extra" alt="A terminal session in which the assistant calls the wiki's get_tree tool and reports the three pages of the Sandbox space, highlighted"/}} | ||
| 12 | ))) |