---
title: Connect GitHub Copilot in VS Code to the OpenLM MCP Connector
description: "Add the OpenLM MCP Connector to GitHub Copilot in VS Code with .vscode/mcp.json or the MCP: Add Server command, sign in, and query your license usage in Agent mode."
product: OpenLM Platform
---

To ask GitHub Copilot about your OpenLM Platform license data in VS Code, add the OpenLM MCP Connector as an HTTP MCP server, sign in with your OpenLM Platform account, and use Copilot Chat in Agent mode.

This page applies to the GitHub Copilot desktop app in VS Code. GitHub Copilot reads MCP servers from a configuration file in the project, or from your user configuration.

## Before you begin

To connect GitHub Copilot, you need the following:

- An active OpenLM Platform account with access to a cloud-hosted tenant (US or EU).
- VS Code with GitHub Copilot signed in. If your organization manages your Copilot plan, its policy must allow MCP servers.
- The OpenLM MCP Connector URL for your region.

The following table lists the OpenLM MCP Connector URL for each environment:

| Environment | OpenLM MCP Connector URL |
|---|---|
| Prod US | `https://cloud-us.openlm.com/mcp` |
| Prod EU | `https://cloud-eu.openlm.com/mcp` |

## Add the connector to a project

To add the connector to one project, create a `.vscode/mcp.json` file in it:

1. In VS Code, open any project folder.
1. In the project root, create a folder named `.vscode` if it doesn't already exist.
1. In `.vscode`, create a file named `mcp.json`.
1. Paste the following configuration, entering a name for the server and the OpenLM MCP Connector URL for your environment:

   ```json
   {
     "servers": {
       "openlm-mcp-copilot": {
         "type": "http",
         "url": "https://cloud-us.openlm.com/mcp"
       }
     }
   }
   ```

1. Open the Command Palette (**Control+Shift+P**).
1. Select **MCP: List Servers**.
1. Select your server, for example `openlm-mcp-copilot`, and select **Start Server**.
1. On the OpenLM sign-in page, sign in with your OpenLM Platform credentials.

   After you sign in, the server connects and the tools are discovered.

## Add the connector with the MCP: Add Server command

To add the connector without editing JSON, or to make it available in every workspace, use the guided flow in VS Code:

1. Open the Command Palette (**Control+Shift+P**) and select **MCP: Add Server**.
1. Select **HTTP (HTTP or Server-Sent Events)**.
1. Enter the OpenLM MCP Connector URL for your region.
1. Enter a server ID, for example `openlm-reporting`.
1. Choose where to save the server: the current workspace, or your user configuration to use it in every workspace.
1. When the OpenLM sign-in page opens, sign in with your OpenLM Platform credentials.

## Ask GitHub Copilot about your license data

To use the OpenLM tools in a chat:

1. Open GitHub Copilot Chat.
1. Set the mode drop-down list at the bottom of the chat box to **Agent**.

   Tools work only in Agent mode.
1. To check the connection, ask `Which OpenLM account am I signed in as?`
1. Ask a question about your license data, for example `Show the license denials for the last 30 days by feature.`

:::tip
In the Copilot chat box, select the tools icon and check that the tools of the OpenLM MCP Connector are toggled on.
:::

For more questions to ask, see [License FinOps prompt library](https://www.openlm.com/documentation/cloud/mcp-reporting-server/prompt-library).

## Troubleshoot the GitHub Copilot connection

The following problems are specific to GitHub Copilot in VS Code:

- **VS Code says that access to MCP servers is disabled by your organization**: Your organization's Copilot policy blocks MCP servers. Ask the administrator of your organization's Copilot plan to allow them.
- **The OpenLM tools don't appear in the chat**: Check that the chat mode is **Agent**, and that the OpenLM tools are turned on in the tools list of the chat box.
- **The server doesn't connect**: Open the Command Palette, select **MCP: List Servers**, select your server, and select **Start Server** again.

For problems that affect every AI client, see [OpenLM MCP Connector FAQ and troubleshooting](https://www.openlm.com/documentation/cloud/mcp-reporting-server/faq-and-troubleshooting).

## Next steps

To continue, use the following pages:

- [License FinOps prompt library](https://www.openlm.com/documentation/cloud/mcp-reporting-server/prompt-library): Copy prompts that find unused licenses, size renewals, and track denials.
- [Tools and capabilities reference](https://www.openlm.com/documentation/cloud/mcp-reporting-server/tools-reference): See the data that each OpenLM tool returns.
- [Connect Microsoft Copilot Studio to the OpenLM MCP Connector](https://www.openlm.com/documentation/cloud/mcp-reporting-server/client-setup-guide/microsoft-copilot-studio): Build a Copilot agent for your whole team instead.
