Connect Microsoft Copilot
Tutorial
Connect a Microsoft Copilot Studio agent to a wiki's MCP endpoint, from creating the MCP tool to an agent that answers from the wiki's content. You need an existing agent in Copilot Studio. Read Agent Authentication for what the connected agent is then allowed to do. The sign-in in step 7 needs the XWiki OIDC Provider; the FAQ covers what to do when it fails.
- Open "Tools" in Copilot Studio, click "New tool" and select "Model Context Protocol".

- Fill in "Server name" and "Server description", and set "Server URL" to your wiki's endpoint URL. Your administrator can copy that URL from the MCP administration page.
https://<server>/<webapp>/rest/wikis/xwiki/aiLLM/mcp
- Select "OAuth 2.0" under "Authentication" and "Dynamic discovery" under "Type", then click "Create".

- Open your agent, go to its "Tools" tab and click "Add a tool".

- Click the "Model Context Protocol" filter, search for the server name you set in step 2 and select the server.

- Open the "Connection" list, click "Create new connection", then click "Create" in the dialog that opens.

- Sign in to the wiki if asked, and click "Accept" on the consent screen.

- Click "Add and configure", then check that the "Tools" section of the page that opens lists the wiki's MCP tools.

- Ask the agent about a wiki page in the "Test your agent" panel, for example "Use the <server name> MCP server, and summarize the content on this page: Sandbox.WebHome", and check that it answers from the page's content.

FAQ
What if the sign-in fails or the consent screen never opens?
The "Dynamic discovery" type needs the wiki to register Copilot Studio as a client on the fly, which the XWiki OIDC Provider does once its clients are in "Dynamic mode". Ask your administrator to follow Set Up MCP Authentication.
Can I connect a wiki that only runs on my computer?
No. Copilot Studio calls the endpoint from Microsoft's cloud, so the wiki must be reachable from the internet.
Why can't the agent create or edit pages?
Your administrator chooses which tools the endpoint exposes, and the authoring tools are off by default. See MCP Tools for the full list.