Skip to main content
Skip table of contents

Integrate Mavvrik MCP in Microsoft 365 Copilot

Mavvrik MCP connects Copilot to Mavvrik through a secure sign-in and authorization flow.

The connection uses the Mavvrik tenant associated with your authenticated Mavvrik user account. After authorization is complete, Mavvrik MCP becomes available inside Copilot , allowing you to ask cloud cost intelligence questions directly in a natural conversation.

To enable this experience, connect Copilot to the Mavvrik MCP server using a Agent. Copilot connects to Mavvrik through OAuth, ensuring access is tied to your authorized Mavvrik account and tenant.

Below are the Steps to Connect

  1. Login to Copilot Studio

  2. Click on Agents

image-20260611-082312.png
  1. Click on Create blank agent

image-20260611-082343.png
  1. Name your Agent (e.g. Mavvrik Agent MVK) and create

  2. Under Select your agent's model, the agent here uses Claude Sonnet 4.6.

  3. Open the Tools tab and add a tool using the MCP wizard.

image-20260611-051822.png
image-20260611-052039.png
  1. Fill in the name, description, and the other required fields the wizard asks for.

  2. Set the MCP server URL to https://mcp.mavvrik.ai/

  3. Select OAuth 2.0 & Dynamic discovery and Create

image-20260611-082918.png
  1. After clicking Create, below page is displayed, click Create new connection →Click Create

image-20260611-083026.png
  1. Enter your tenant domain URL, allow access, and then enter your Mavvrik login credentials.

image-20260611-062652.png
  1. After authorization and login are completed, the connection appears in green. Click the Add and configure button to continue.

image-20260611-083233.png
  1. Click on Tools on left menu

image-20260611-075903.png
  1. Click on the created server

  2. Add mcp under Base URL

  3. Click Update Connector

image-20260611-083649.png
  1. Navigate back to agents and click on the created agent to validate the connection

  2. To validate the connection:

  • Click Settings.

image-20260611-083943.png
  • Click Connection Details.

  • Click Connect and Submit

image-20260611-084032.png
  • Confirm that the status shows Connected. CONNECTED

image-20260611-084100.png

16. To test the agent:

  • Open your agent.

  • Run a prompt such as: Get my cloud costs for AWS and GCP for the last 7 days.

image-20260611-084304.png
  1. Once the test looks right, click Publish.(requires admin access)

image-20260611-084402.png
  1. After Publish, Navigate to Microsoft 365 Copilot

image-20260611-084503.png
  1. Search the agent in agent store and start using it

Troubleshooting — Connection Shows Green, but Tool Calls Fail

Before the OAuth fix shipped in this release, Copilot's connection manager could show the connection as green, while every tool call failed after the first handshake.

Root cause: during token refresh, the manager reused the refresh token instead of completing the initial authorization-code login. It also called the OAuth authorize endpoint as a public client without PKCE, which produced the following errors:

  • OAuthController:authorize HTTP 400 ("requires public clients to use PKCE RFC-7636")

  • TokenRepository:issueToken failure ("uid argument must be a non-empty string")

The connection flow now performs a proper PKCE authorization-code login, so this issue is resolved in current builds.

If you still encounter this issue, recreate the connection in Step 7 to force a fresh login instead of relying on a cached or refreshed token.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.