Integrate Unleash with GitHub Copilot
The Unleash MCP server connects GitHub Copilot to your Unleash instance, enabling AI-assisted feature flag management directly in your IDE. This page covers how to install and configure the server for Copilot. To learn what the server can do, see Unleash MCP server.
GitHub Copilot supports MCP in several environments:
- Visual Studio Code with full MCP support available in versions 1.102+.
- JetBrains IDEs with IntelliJ IDEA, PyCharm, WebStorm, and others AI Assistant.
- Visual Studio with the GitHub Copilot extension.
- Neovim with community plugins like mcphub.nvim.
- Copilot CLI, a command-line interface.
- On GitHub.com, a web-based Copilot (no MCP support).
Prerequisites
Before you begin, make sure you have the following:
- Node.js 24 or later: the MCP server is distributed as an npm package.
- A supported IDE, see environment-specific requirements here.
- An Unleash instance: cloud or self-hosted, with API access enabled.
- A personal access token (PAT) with permissions to create and manage feature flags.
Install the MCP server
The Unleash MCP server runs as a local stdio process. Configuration differs by environment, but all IDEs use the same npm package and credentials.
First, create a shared credentials file that works across all environments:
Configure your IDE
Visual Studio Code
JetBrains IDEs
Visual Studio
Neovim
Copilot CLI
GitHub.com
Requirements: Visual Studio Code 1.102 or later with GitHub Copilot extension.
Create the configuration file
Create a file at .vscode/mcp.json in your project root:
Global configuration: To use the MCP server across all projects, run MCP: Add Server from the Command Palette and choose Global.
Remote development: For Dev Containers, WSL, or SSH, define the server in the remote .vscode/mcp.json or in the customizations.vscode.mcp section of devcontainer.json.
Requirements: IntelliJ IDEA, PyCharm, WebStorm, or another JetBrains IDE with AI Assistant plugin.
JetBrains AI Assistant MCP support is evolving. Check the JetBrains AI Assistant documentation for the latest capabilities.
JetBrains does not currently support envFile. You must configure environment variables directly in the settings or use system environment variables.
Requirements: Visual Studio 2022 or later with GitHub Copilot extension.
Visual Studio MCP support is currently in preview. Check the Visual Studio Copilot documentation for the latest capabilities.
Requirements: Neovim 0.9+ with a Copilot plugin and MCP support.
The official copilot.vim plugin does not support MCP. Use community plugins like mcphub.nvim for MCP integration.
Requirements: GitHub Copilot CLI installed and authenticated.
GitHub Copilot CLI is a terminal-native interface to GitHub Copilot’s coding agent. It supports custom MCP servers via the /mcp add slash command, which means you can use the Unleash MCP server directly from your terminal.
Copilot CLI is in public preview. The configuration interface may change. Check the official Copilot CLI documentation for the latest instructions.
Install Copilot CLI
Choose your preferred installation method:
macOS/Linux (Homebrew)
Windows (WinGet)
npm (cross-platform)
Start Copilot CLI
Navigate to your project directory and launch the CLI:
If prompted, trust the current directory and authenticate with /login.
Add the Unleash MCP server
Use the /mcp add slash command:
Fill in the following details (use Tab to move between fields):
For environment variables, add:
UNLEASH_BASE_URL:https://your-instance.getunleash.ioUNLEASH_PAT: Your personal access token
Press Ctrl+S to save the configuration.
You will see a confirmation message such as “MCP configuration saved successfully! Changes will take effect immediately.”
Verify the installation
Run the /mcp show command to confirm the server is configured:
You should see unleash-mcp listed with its tools. Alternatively, ask Copilot to evaluate a change or create a feature flag to confirm the tools are working. If Copilot cannot see the Unleash MCP server, check the ~/.copilot/mcp-config.json file and verify if the environment variables have been configured correctly.
Configuration is stored in ~/.copilot/mcp-config.json. You can also edit this file directly using the MCP JSON structure.
Status: No MCP support
GitHub Copilot on github.com is designed for code review, issue triage, and pull request descriptions. It does not currently support custom MCP servers for feature flag management.
Recommended workflow:
- Use your IDE to manage feature flags with the MCP server.
- Use github.com Copilot for reviewing flag-related pull requests.
Verify the installation
After configuring your IDE, verify that the Unleash MCP tools are available. Try one of the following prompts:
Tools and workflows
Once the server is connected, Copilot can use every tool the Unleash MCP server exposes. To learn what the server can do and see step-by-step workflows, read Unleash MCP server. For the current list of tools, see the README on GitHub.
Feedback reports
In VS Code and JetBrains IDEs, Copilot shows a consent prompt in the chat the first time the assistant tries to send a feedback report. The MCP server saves whether you opted in or out, so you see the prompt only once.
To opt in or out in Visual Studio, Eclipse, or Xcode, or to skip the prompt, add UNLEASH_MCP_SEND_FEEDBACK=true or UNLEASH_MCP_SEND_FEEDBACK=false to ~/.unleash/mcp.env. In IDEs that don’t support envFile, set the variable with your other Unleash variables. To learn what a report contains, see What is recorded.
Troubleshooting
MCP tools not showing up
VS Code
JetBrains
Neovim
Copilot CLI
- Check that
.vscode/mcp.jsonis in the project root. - Verify the env file path is correct and the file exists.
- Confirm Node.js and npm are available in your terminal.
- Check that your Unleash PAT has the required permissions.
Run MCP: List Servers from the Command Palette and select Show Output to view server logs.
- Verify the AI Assistant plugin is installed and enabled.
- Check that the MCP server is listed in Settings > Tools > AI Assistant > MCP Servers.
- Confirm environment variables are set correctly.
- Restart the IDE after making changes.
- Verify mcphub.nvim or your MCP plugin is installed correctly.
- Check that environment variables are exported in your shell.
- Run
:checkhealthto verify plugin status. - Check plugin logs for connection errors.
- Verify the server was saved after running
/mcp add. - Check
~/.copilot/mcp-config.jsonfor syntax errors. - Confirm environment variables are set in the server configuration.
- Restart the Copilot CLI session after adding a new server.
- Check that Node.js and npm are available in your PATH.
Authentication failed
- Confirm your Unleash PAT is valid and has permissions to create and manage feature flags.
- Check that
UNLEASH_BASE_URLdoes not include/apiat the end. - For GitHub Enterprise plans, ensure the “MCP servers in Copilot” policy is enabled.
Too many tools in the tool picker
Visual Studio Code limits a single chat session to 128 tools. If you have many MCP servers installed:
- Create a tool set with only the Unleash tools you need.
- Deselect tools from other MCP servers you’re not actively using.
Server not starting in remote containers
When using Dev Containers, WSL, or SSH remote development:
- Define the server in the remote
.vscode/mcp.jsonor in thecustomizations.vscode.mcpsection ofdevcontainer.json. - Ensure Node.js is available in the container.
envFile not supported
Some IDEs (JetBrains, Visual Studio) do not support the envFile property. In these cases:
- Set environment variables directly in the IDE’s MCP configuration.
- Use system-level environment variables in your shell profile.
- For CI/CD, use secrets management to inject variables.
Feedback is disabled
send_feedback returns this message if you declined the consent prompt, if your IDE couldn’t show it, or if UNLEASH_MCP_SEND_FEEDBACK is set to false. To opt in, add UNLEASH_MCP_SEND_FEEDBACK=true to ~/.unleash/mcp.env and restart the server. In IDEs that don’t support envFile, add the variable to the IDE’s MCP env configuration instead. To see the consent prompt again, delete feedback_consent.json from the configuration directory. Feedback settings don’t affect flag operations.