GitHub Copilot coding agent
仓库中的 GitHub Copilot coding agent:在仓库设置中配置 MCP,并把密钥保存为智能体 secret。
- API 密钥(Bearer)
- 在仓库中打开 Settings → Copilot → MCP servers。
- 粘贴下方的 MCP 配置并保存。
- 添加智能体 secret COPILOT_MCP_AICHARGED_KEY,值为你的 API 密钥(必须带 COPILOT_MCP_ 前缀)。
仓库 Settings → Copilot → MCP servers
推荐{
"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>