GitHub Copilot coding agent
GitHub Copilot coding agent trong repository: cấu hình MCP trong cài đặt của repo và khóa dưới dạng agent secret.
- Khóa API (Bearer)
- Trong repository, mở Settings → Copilot → MCP servers.
- Dán cấu hình MCP bên dưới rồi lưu.
- Thêm agent secret COPILOT_MCP_AICHARGED_KEY với khóa API của bạn (bắt buộc có tiền tố COPILOT_MCP_).
Repository settings → Copilot → MCP servers
Khuyên dùng{
"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>