Lets AI assistants call the GitHub Copilot CLI for coding help, debugging, explanation and analysis of large files and codebases.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add copilot-tool -- npx -y @leonardommello/copilot-mcp-server~/.codex/config.toml
[mcp_servers.copilot-tool]
command = "npx"
args = ["-y", "@leonardommello/copilot-mcp-server"]
# codex mcp add copilot-tool -- npx -y @leonardommello/copilot-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"copilot-tool": {
"command": "npx",
"args": [
"-y",
"@leonardommello/copilot-mcp-server"
]
}
}
}.vscode/mcp.json
{
"servers": {
"copilot-tool": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@leonardommello/copilot-mcp-server"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"copilot-tool": {
"command": "npx",
"args": [
"-y",
"@leonardommello/copilot-mcp-server"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"copilot-tool": {
"command": "npx",
"args": [
"-y",
"@leonardommello/copilot-mcp-server"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"copilot-tool": {
"command": "npx",
"args": [
"-y",
"@leonardommello/copilot-mcp-server"
]
}
}
}