Skip to main content

Microsoft Copilot

Overview​

Microsoft offers several Copilot products with different MCP connection and authentication requirements:

  • Microsoft Copilot Studio - Low-code platform for building custom AI agents
  • Microsoft 365 Copilot - Use a published Copilot Studio agent; direct MCP plugins have different authentication requirements
  • GitHub Copilot - Code completion in VS Code (covered in the GitHub Copilot (VS Code) guide)

For most Copilot scenarios, start with the regional read endpoint. It keeps the Spotto tool catalog smaller, which is useful when Copilot struggles to retrieve all advertised tools. If your Copilot workflow needs action tools, switch to the matching write endpoint or use the default full endpoint after confirming your client can load it.

Microsoft Copilot Studio​

Microsoft Copilot Studio is a low-code platform for creating custom AI agents. It supports MCP through either a direct onboarding wizard or custom connectors.

Prerequisites​

  • Access to Microsoft Copilot Studio
  • Generative Orchestration enabled on your agent
  • Spotto API key from the Getting Started guide
  • Your regional endpoint profile (for example, Australia read: https://mcp-au-read.spotto.ai/mcp)

The simplest way to connect Spotto to Copilot Studio is through the built-in MCP wizard:

  1. Open your agent in Microsoft Copilot Studio
  2. Navigate to the Tools page
  3. Select Add a tool
  4. Select New tool
  5. Select Model Context Protocol

Configure the MCP Server:

FieldValue
NameSpotto
DescriptionCloud costs, resources, recommendations and security posture
URLhttps://mcp-au-read.spotto.ai/mcp (adjust for your region)
Transport TypeStreamable
AuthenticationAPI key

API Key Authentication:

  1. Select API key as the authentication type
  2. Choose Header as the API key type
  3. Set the header name to: X-API-Key
  4. Click Create

Create Connection:

  1. In the "Add tool" dialog, select Create new connection
  2. Enter your Spotto API key when prompted
  3. Click Add to agent

Your agent can now discover the tools in the selected Spotto endpoint profile. Each call remains subject to the API key's access.

Method 2: Custom Connector via Power Apps​

For advanced scenarios or custom authentication, you can create a custom connector:

  1. On your agent's Tools page, select Add a tool -> New tool -> Custom connector.
  2. In Power Apps, select New custom connector -> Import OpenAPI file.
  3. Import the definition below and complete setup with API-key authentication in the X-API-Key header.
  4. Return to Copilot Studio and add the connector to your agent.

See Microsoft's existing MCP server setup guide for the current wizard and custom-connector steps.

The sample below uses the Australian read endpoint. Swap the host for your region if needed.

Sample OpenAPI Definition (YAML):

swagger: '2.0'
info:
title: Spotto MCP Server
description: Spotto cloud management data via MCP
version: 1.0.0
host: mcp-au-read.spotto.ai
basePath: /
schemes:
- https
paths:
/mcp:
post:
summary: Spotto MCP Endpoint
x-ms-agentic-protocol: mcp-streamable-1.0
operationId: InvokeMCP
responses:
'200':
description: Success
securityDefinitions:
api_key:
type: apiKey
name: X-API-Key
in: header
security:
- api_key: []

Managing MCP Tools in Copilot Studio​

Once your MCP server is connected, you can manage which tools your agent uses:

  1. Go to the Tools tab for your agent
  2. Select the Spotto MCP server
  3. View available tools and resources
  4. Use the Allow all toggle to enable or disable all tools
  5. Or toggle individual tools on or off as needed

If you connected the read endpoint, only read-oriented Spotto tools will appear. That is expected.

Verifying the Connection​

Test your setup by asking the agent:

"What companies do I have access to in Spotto?"

or

"Check the Spotto API status"

The agent should use the Spotto MCP tools to retrieve information from your account.

Making Your Agent Available in Microsoft 365 Copilot​

This section applies if you built your agent in Copilot Studio and want to make it available in the Microsoft 365 Copilot experience. Follow your organization's publishing, access, and licensing requirements.

For Copilot Studio agents:

  1. In Copilot Studio, go to Channels
  2. Select Teams and Microsoft 365 Copilot
  3. Check Make agent available in Microsoft 365 Copilot
  4. Click Add channel
  5. After the channel is enabled, select See agent in Microsoft 365
  6. Click Add and Open to use the agent

Microsoft 365 Copilot​

For direct declarative-agent MCP plugins, Microsoft currently supports OAuth and Entra SSO, but does not support API-key authentication. The regional Spotto MCP server accepts Spotto API keys; it does not provide an OAuth login or accept an arbitrary Entra access token. Adding an identity-provider app or a key to a local .env file does not bridge that gap. See Microsoft's MCP plugin authentication matrix.

Use the Copilot Studio API-key connection described above, then make that agent available through its Teams and Microsoft 365 Copilot channel, subject to your organization's publishing and licensing requirements. Follow Microsoft's current channel publishing guide for that deployment.

A direct declarative-agent integration would require a separately implemented and secured OAuth-to-Spotto gateway. This guide does not provide that gateway. Microsoft 365 agent connectors are a different integration surface with their own authentication rules; do not apply API-plugin API-key instructions to an MCP plugin.

Troubleshooting​

Copilot Studio Issues​

"MCP server not found"

  • Ensure Generative Orchestration is enabled on your agent
  • Verify the MCP server URL is correct
  • Check your API key is valid in the Spotto Portal

"Authentication failed"

  • Confirm you are using the correct header name: X-API-Key
  • Verify your API key starts with apik_
  • Check the API key has not been revoked

"Tools not appearing"

  • Restart Copilot Studio after adding the MCP server
  • Verify the MCP server connection status shows "Connected"
  • Check the Tools tab to see if tools are listed but disabled
  • If you're using the default full endpoint, switch to the matching read endpoint

Microsoft 365 Copilot Issues​

"Agent not available"

  • Ensure you have a Microsoft 365 Copilot license
  • Verify Custom App Upload and Copilot Access are enabled
  • Check that the agent is published to the Teams or Microsoft 365 Copilot channel

"Connection timeout"

  • Verify your network allows HTTPS connections to Spotto endpoints
  • Check if a corporate firewall is blocking the connection
  • Try the curl test from the Getting Started guide

"Limiting number of tool calls to 70" or "couldn't retrieve the requested items"

  • The Copilot client is likely struggling with the full Spotto tool catalog
  • Change the MCP URL to the matching regional read endpoint
  • Reconnect the MCP server and test again

General MCP Issues​

Invalid API key errors:

  • Verify you are using the full API key (starts with apik_)
  • Check the key has not been revoked in the Spotto Portal
  • Ensure you are using the correct regional endpoint

Connection timeouts:

  • Verify outbound HTTPS connections are allowed
  • Check if a firewall or proxy is blocking the connection
  • Try the curl test from the Getting Started guide

Regional Endpoints​

Use the read URL for your region from MCP Endpoint Profiles, for example https://mcp-us-read.spotto.ai/mcp in the United States.

Next Steps​

Additional Resources​