Skip to main content

将 GitHub Copilot coding agent 连接到 aicharged.io

215 个工具,一个端点:https://aicharged.io/api/v1/mcp

GitHub Copilot coding agent

仓库中的 GitHub Copilot coding agent:在仓库设置中配置 MCP,并把密钥保存为智能体 secret。

  • API 密钥(Bearer)
  1. 在仓库中打开 Settings → Copilot → MCP servers。
  2. 粘贴下方的 MCP 配置并保存。
  3. 添加智能体 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>

或者让 CLI 自动设置

aicharged setup 会自动查找此电脑上的 AI 客户端,通过浏览器引导您登录,并写入相应的配置。

一行命令,轻松连接

安装 CLI · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
安装 CLI · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
MCP 端点
https://aicharged.io/api/v1/mcp

流式 HTTP。发送 Authorization: Bearer <API_KEY> 请求头,或者在客户端支持的情况下通过 OAuth 登录。

或者告诉您的智能体
阅读 https://aicharged.io/agent.md,并为我设置 aicharged.io

使用此提示词打开于 Claude (在新标签页中打开) ChatGPT (在新标签页中打开) Perplexity (在新标签页中打开)