To securely access your company's enterprise applications directly from your Copilot CLI session, you must connect it to the JumpCloud AI Gateway. Connecting through JumpCloud ensures your enterprise data remains secure and your access is verified.
Configuring Copilot CLI
You can connect Copilot CLI to the AI Gateway by manually editing the MCP configuration file.
- Open your terminal.
- Create or open the Copilot CLI configuration file located at ~/.copilot/mcp-config.json.
- Add the JumpCloud AI Gateway to the mcpServers object using the exact JSON snippet below:
{
  "mcpServers": {
    "jumpcloud-ai-gateway": {
"type": "http",
      "url": "https://ai.jumpcloud.com/mcp"
    }
  }
}
Note: Alternatively, from an active Copilot CLI session, you can run the interactive command /mcp add and supply the JumpCloud HTTP URL when prompted).
- Save the file and restart your Copilot CLI session.
Authenticating Your Tools
- In your CLI session, submit a prompt that requires access to a company application.
- When prompted, you will be redirected to the JumpCloud authorization page in your web browser.
- Review the list of available applications and select the checkbox next to each one you want to access.
- Authenticate to the selected tools via OAuth or by entering your API token (click the documentation link provided in the UI if you need help finding your API token).
- Once all required tools display a green Connected status, click Authorize tools at the bottom of the page.
- Return to your terminal. Your AI client can now use the tools authorized through the gateway.