> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuraltrust.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Copilot Studio

> Connect Microsoft Copilot Studio to a TrustGate MCP consumer.

Connect **Microsoft Copilot Studio** to a TrustGate [MCP consumer](/trustgate/concepts/consumers).
The Copilot side is the same regardless of IdP; only how you create the consumer changes.

## 1. TrustGate consumer

In **Agent Gateway → Consumers**, create an **MCP** consumer with **OAuth2**, bind the
[registries](/trustgate/concepts/registries) / toolkit you need, then copy the URL from the
**Connect** tab:

```text theme={null}
https://{mcpHost}/{consumer_slug}/mcp
```

**Auth — pick one:**

| Option                            | Consumer setup                                                                                                                                                                                                                     |
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **NeuralTrust** (no external IdP) | Leave the OAuth **Client** blank, or select **Use NeuralTrust**.                                                                                                                                                                   |
| **Your IdP** (Okta, Entra ID, …)  | Attach an OAuth2 auth from [Identity](/trustgate/concepts/authorization/overview). Follow [Okta](/trustgate/concepts/authorization/okta) or [Entra ID](/trustgate/concepts/authorization/entra-id) for the IdP app + redirect URI. |

## 2. Copilot Studio

<Steps>
  <Step title="Add an MCP tool">
    Create a tool → **MCP**.
  </Step>

  <Step title="OAuth + Dynamic discovery">
    Authentication → **OAuth** → **Dynamic discovery**.

    Copilot should **not** ask for Client ID or Client secret.
  </Step>

  <Step title="Server URL">
    Paste the consumer URL from step 1. Leave defaults — if Power Automate opens, no changes needed.
  </Step>

  <Step title="Agent">
    Create an agent, add this MCP Server tool, and enable browser **pop-ups**.
  </Step>

  <Step title="First run">
    Activate connections when prompted (including the MCP Server). Complete any NeuralTrust /
    IdP login and upstream connect (e.g. Notion) if shown.
  </Step>
</Steps>

## Troubleshooting

| Symptom                        | Fix                                                                  |
| ------------------------------ | -------------------------------------------------------------------- |
| Asks for Client ID / Secret    | Use **Dynamic discovery**; URL must end with `/{consumer_slug}/mcp`. |
| Consent never finishes         | Allow pop-ups; retry connection activation.                          |
| Tools missing / upstream fails | Check consumer registries + toolkit; finish IdP / provider connect.  |
