Microsoft Copilot Studio
Microsoft Copilot Studio
Prerequisites
Generate a Personal Access Token (PAT) on the Settings page of CData Connect Cloud. Copy this down, as it acts as your password during authentication.
Create a Connector
-
Copy and save the following code as an OpenAPI file:
swagger: '2.0' info: title: QueryMCP description: Connect Cloud Query MCP Copilot Integration version: 1.0.5 host: cloud-16284.eastus-dev.mcp.clouddataos.com basePath: / schemes: - https paths: /mcp: post: summary: Query MCP Server x-ms-agentic-protocol: mcp-streamable-1.0 operationId: InvokeMCP parameters: - name: Accept in: header required: true type: string default: application/json, text/event-stream description: Content types that the client can handle responses: '200': description: Success securityDefinitions: basic-auth: type: basic security: - basic-auth: []
-
Log in to Microsoft Copilot Studio.
-
In the navigation menu, select Tools, and then click the New Tool button.
-
In the New tool dialog, click Custom connector. You are redirected to Microsoft Power Apps.
-
Select New custom connector > Import an OpenAPI file.
-
Select the file you saved in step 1 and click Continue.
-
In the 1. General step, enter general information about the connector, including a description and a new icon (optional). Host and Base URL are required.
-
Host–enter mcp.cloud.cdata.com.
-
Base URL–enter a forward slash (/).
-
-
In the 2. Security step, the Authentication type should be Basic authentication. Ensure that the Parameter labels are set to username and password.
-
Leave 3. Definition and 4. Code as is.
-
Click Create connector. You should now have a testable connector.
-
In the 5. Test step, click +New connection. Click Create.
-
Enter your username and password. The username is your CData Connect Cloud username, and the password is the PAT you created in the prerequisites.
-
Click Save. You may have to find the connector again in the Custom connectors screen and click Edit.
-
Return to 5.Test. Select the new connection you just created.
-
Enter the following JSON snippet in InvokeMCP (turn on Raw Body):
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "getCatalogs", "arguments": {} } }
-
Click Test operation. You now have a live connector and can return to Copilot Studio.
Create an Agent and Exercise the Connector
-
In the Copilot Studio navigation menu, click Agents, and then click +New agent.
-
Toggle the Configure button.
-
Enter information based on how you intend to use this agent while it is consuming our MCP server.
-
Click Create on the upper right. Copilot shows you the agent details.
-
Under Tools, click Add tool. Limit the selection to Model Context Protocol and click the Query MCP Server connector you created.
-
Click Add to agent to add your tool.
-
You can now exercise this connector. Select the Topics tab and click +Add a topic.
-
Enter a question in the chat window. Since this is the first time you are exercising this connector, Copilot displays a message telling you to open the connection manager. Click the link.
-
Select the connection you created and click Connect. In the Create or pick a connection dialog, click Submit.
-
Return to the Agent window and click Retry to retry your request.