Connect an AI Assistant

Last modified by superadmin on 2026/11/25 21:27

Point an MCP-capable AI assistant at your wiki's MCP endpoint and sign in, so that it acts as your wiki user.

Steps

The browser sign-in below needs the XWiki OIDC Provider extension; "Assistant Documentation Links" gives your assistant's own MCP setup, and Agent Authentication what it may then do.

  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:
    claude mcp add --transport http --client-id <client-id> --callback-port <port> xwiki <endpoint-url>

    Leave out --client-id and --callback-port when you have no client ID, then run /mcp in Claude Code and authenticate the xwiki server.

  2. Ask the assistant about the wiki and check that it answers from the wiki's own content rather than from what it already knew.

    A terminal session in which the assistant calls the wiki's get_tree tool and reports the three pages of the Sandbox space, highlighted

FAQ

What is the endpoint URL?

Your wiki administrator should give it to you. Configure the MCP Server documents how it is built.

I got a 404 error, what should I do?

A 404 error indicates that the endpoint is turned off for that wiki, or that the URL is wrong. Wiki ids are case-sensitive, so check the spelling too. Contact your administrator.

I got a 401 error, what should I do?

A 401 error means the endpoint refused the request: either guest access is off, or the credentials your client sent did not authenticate. Complete the OAuth flow your AI assistant offers. If your wiki has no XWiki OIDC Provider, the 401 carries no sign-in challenge; see Agent Authentication for how the client authenticates then.

My first sign-in fails with "There is no OpenID Connection information in the current session (anymore?)". What should I do?

Start the sign-in again from your client. The second attempt in the same browser works. Your wiki administrator can fix it for good by upgrading XWiki to 17.4.10, 17.10.4, 18.1.0 or later.

My client has no browser sign-in. How do I connect it?

Create a token in the "Applications" section of your user profile, then configure the client to send it in an Authorization: Bearer header. With single sign-on you have no wiki password, so HTTP Basic does not work.

More

To find more about the current topic, you can search or use the table below and filter the columns to narrow your choices.

Related

Get Connected