GitHub Copilot coding agent
GitHub Copilot coding agent in a repository: MCP configuration in the repo settings and the key as an agent secret.
- API key (Bearer)
- In the repository open Settings → Copilot → MCP servers.
- Paste the MCP configuration below and save.
- Add the agent secret COPILOT_MCP_AICHARGED_KEY with your API key (the COPILOT_MCP_ prefix is required).
Repository settings → Copilot → MCP servers
Recommended{
"mcpServers": {
"aicharged": {
"type": "http",
"url": "https://aicharged.io/api/v1/mcp",
"tools": [
"*"
],
"headers": {
"Authorization": "Bearer $COPILOT_MCP_AICHARGED_KEY"
}
}
}
}
Agents secret
COPILOT_MCP_AICHARGED_KEY=<API_KEY>