GitHub Copilot coding agent
Agente de código do GitHub Copilot em um repositório: configuração de MCP nas configurações do repositório e a chave como segredo do agente.
- Chave de API (Bearer)
- No repositório, abra Settings → Copilot → MCP servers.
- Cole a configuração de MCP abaixo e salve.
- Adicione o segredo do agente COPILOT_MCP_AICHARGED_KEY com sua chave de API (o prefixo COPILOT_MCP_ é obrigatório).
Repository settings → Copilot → MCP servers
Recomendado{
"mcpServers": {
"aicharged": {
"type": "http",
"url": "https://aicharged.io/api/v1/mcp",
"tools": [
"*"
],
"headers": {
"Authorization": "Bearer $COPILOT_MCP_AICHARGED_KEY"
}
}
}
}
Segredo de Agents
COPILOT_MCP_AICHARGED_KEY=<API_KEY>