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

# Connecting Microsoft Copilot Studio

> Connect a Microsoft Copilot Studio agent to Sensolus using the MCP connector with OAuth2 authentication

## Overview

Microsoft Copilot Studio lets you build custom AI agents for your organization. By adding the Sensolus MCP (Model Context Protocol) connector as a tool, an agent can answer live questions about your organizations and devices, such as "How many devices are online in org X?". The connector uses OAuth 2.0 with your own Sensolus account, so the agent only sees the data that account is allowed to access.

The Sensolus MCP server endpoint is `https://mcp.agents.sensolus.com/mcp`.

Setting this up involves three phases: creating the MCP tool, attaching it to an agent, and completing the OAuth connection so the agent can call the tool.

## Prerequisites

Before you start, make sure you have:

* Access to Microsoft Copilot Studio in the correct environment.
* An existing agent, or permission to create one.
* A Sensolus account, used to sign in during the OAuth step.
* Browser pop-ups allowed for `copilotstudio.microsoft.com`, which are needed for the sign-in window.

## Step 1 — Create the MCP tool

**1. Start a new Model Context Protocol tool**

In Copilot Studio, go to **Tools** in the left navigation, click **+ New tool**, and choose **Model Context Protocol**.

![New tool dialog with Model Context Protocol selected](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/01-new-tool-mcp.png)

**2. Fill in the connection details**

Complete the dialog with the following values:

| Field | Value |
| - | - |
| Server name | Sensolus connector |
| Server description | Sensolus platform MCP connector |
| Server URL | `https://mcp.agents.sensolus.com/mcp` |
| Authentication | OAuth 2.0 |
| Type (appears after selecting OAuth 2.0) | Dynamic discovery |

![Model Context Protocol configuration form filled with Sensolus connector details](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/02-mcp-tool-config.png)

**3. Create the tool and wait until it is ready**

Click **Create**. The tool appears in the **Tools** list. Wait until its status shows **Ready**, which usually takes a minute or two.

![Sensolus connector listed as Ready in the Tools overview](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/03-tool-ready.png)

## Step 2 — Attach the tool to your agent

**1. Open the agent's Tools tab**

Open your agent and go to the **Tools** tab, then click **Add a tool**.

![Agent Tools tab with the option to add a tool](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/04-agent-tools-tab.png)

**2. Search for the Sensolus connector**

In the **Add tool** search box, type `Sensolus connector` and select it from the results.

![Search results showing the Sensolus connector](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/05-search-connector.png)

**3. Review the tool details**

The **Add tool** screen shows the Sensolus connector. The **Connection** field reads **Not connected**, which is expected at this stage.

![Add tool screen showing the connection as not connected](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/06-add-tool-not-connected.png)

**4. Create a new connection**

Open the **Connection** dropdown and click **Create new connection**.

![Connection dropdown with Create new connection option](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/07-create-new-connection.png)

**5. Confirm the connection**

Optionally enter a display name for the connection, then click **Create**.

![Connect to Sensolus connector dialog with optional display name](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/08-connection-display-name.png)

**6. Sign in and approve**

A pop-up opens the Sensolus authorization page. Sign in with your Sensolus account and click **Approve** to grant the agent access on your behalf.

![Sensolus application authorization pop-up with Approve button](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/09-authorize.png)

**7. Add the connected tool**

Once authorized, the **Connection** field turns **Connected** with a green check. Click **Add**.

![Add tool screen showing the connection as connected](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/10-connection-connected.png)

**8. Verify the tool is attached**

The tool is now attached to the agent, with **Enabled** set to **On** and **Trigger** set to **By agent**.

![Tool list confirming the Sensolus connector is added and enabled](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/11-tool-added.png)

## Step 3 — Connect and test

The tool is attached, but the agent still needs an active connection at runtime. The quickest way to complete this is from the agent's test pane.

**1. Ask a data question**

Open the agent's **Test** pane and ask a question that requires live data, for example "How many devices are online in org Vietnam BLE demo?". The agent responds that it needs a connection first and shows an **Open connection manager** link.

![Test pane prompting to open the connection manager](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/12-test-open-connection-manager.png)

**2. Open the connection manager**

Click **Open connection manager**. On the **Manage your connections** page, find the Sensolus connector with status **Not Connected** and click **Connect**.

![Manage your connections page with the Sensolus connector not connected](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/13-connection-manager-connect.png)

**3. Submit the connection**

In the **Create or pick a connection** dialog, confirm the Sensolus connector and click **Submit**.

![Create or pick a connection dialog with Submit button](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/14-pick-connection-submit.png)

**4. Confirm the connection is active**

The connection status now shows **Connected**.

![Manage your connections page showing the connector connected](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/15-connection-manager-connected.png)

**5. Retry your question**

Return to the **Test** pane and click **Retry**. The agent re-runs your question, calls the Sensolus tool, and returns a live answer.

![Test pane showing the agent calling the Sensolus tool and returning a result](https://mintlify.s3.us-west-1.amazonaws.com/sensolus/docs/sensolusai/images/copilotstudio/16-test-retry-result.png)

## Troubleshooting

### Authorization does not complete

If the OAuth sign-in does not finish, make sure pop-ups are allowed for `copilotstudio.microsoft.com`, verify your Sensolus account has the appropriate permissions, and try the connection again.

### Tool never reaches "Ready"

If the tool stays in a pending state, confirm the server URL is exactly `https://mcp.agents.sensolus.com/mcp` and that **Dynamic discovery** is selected. The MCP server must support OAuth 2.0 Dynamic Client Registration for dynamic discovery to work.

### SSO authentication

If your organization uses Single Sign-On (SSO), sign in to the Sensolus platform in your browser before starting the OAuth flow.

## Next steps

* Review [MCP Connector capabilities](https://doc.sensolus.com/docs/sensolusai/mcpconnector.md) to see what you can do.
* Explore [tips and examples](https://doc.sensolus.com/docs/sensolusai/mcp_tips.md) for effective use.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.