GitHub MCP 与 API 接入

团队应用鉴权:api_key

团队 GitHub 代码仓库:PR、Issues、Actions 工作流、发行版、安全告警、软件包与组织管理。

本地 GitHub MCP 配置

每台设备存放明文密钥

  • 原始 GitHub Token 被复制到本地配置文件
  • 每位成员在每台电脑都需要重复安装配置
  • 每次对话都要注入数十个工具 Schema 占满上下文
通过 Duang 金库接入 GitHub

一次连接,随时一键吊销

  • 每团队独立信封加密保存凭证
  • 本地磁盘与大模型提示词中零明文密钥
  • 全团队共享同一个远程 MCP 端点
发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

set up https://duang.ai/SKILL.md

全部操作(989)

操作价格
GET api.github.com/repos/{owner}/{repo}/actions/artifacts

List artifacts for a repository

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/artifacts/{artifact_id}

Get an artifact

自备 Key
DELETE api.github.com/repos/{owner}/{repo}/actions/artifacts/{artifact_id}

Delete an artifact

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts

List workflow run artifacts

自备 Key
GET api.github.com/enterprises/{enterprise}/actions/cache/retention-limit

Get GitHub Actions cache retention limit for an enterprise

自备 Key
PUT api.github.com/enterprises/{enterprise}/actions/cache/retention-limit

Set GitHub Actions cache retention limit for an enterprise

自备 Key
GET api.github.com/enterprises/{enterprise}/actions/cache/storage-limit

Get GitHub Actions cache storage limit for an enterprise

自备 Key
PUT api.github.com/enterprises/{enterprise}/actions/cache/storage-limit

Set GitHub Actions cache storage limit for an enterprise

自备 Key
GET api.github.com/organizations/{org}/actions/cache/retention-limit

Get GitHub Actions cache retention limit for an organization

自备 Key
PUT api.github.com/organizations/{org}/actions/cache/retention-limit

Set GitHub Actions cache retention limit for an organization

自备 Key
GET api.github.com/organizations/{org}/actions/cache/storage-limit

Get GitHub Actions cache storage limit for an organization

自备 Key
PUT api.github.com/organizations/{org}/actions/cache/storage-limit

Set GitHub Actions cache storage limit for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/cache/usage

Get GitHub Actions cache usage for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/cache/usage-by-repository

List repositories with GitHub Actions cache usage for an organization

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/cache/retention-limit

Get GitHub Actions cache retention limit for a repository

自备 Key
PUT api.github.com/repos/{owner}/{repo}/actions/cache/retention-limit

Set GitHub Actions cache retention limit for a repository

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/cache/storage-limit

Get GitHub Actions cache storage limit for a repository

自备 Key
PUT api.github.com/repos/{owner}/{repo}/actions/cache/storage-limit

Set GitHub Actions cache storage limit for a repository

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/cache/usage

Get GitHub Actions cache usage for a repository

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/caches

List GitHub Actions caches for a repository

自备 Key
DELETE api.github.com/repos/{owner}/{repo}/actions/caches

Delete GitHub Actions caches for a repository (using a cache key)

自备 Key
DELETE api.github.com/repos/{owner}/{repo}/actions/caches/{cache_id}

Delete a GitHub Actions cache for a repository (using a cache ID)

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/concurrency_groups

List concurrency groups for a repository

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/concurrency_groups/{concurrency_group_name}

Get a concurrency group for a repository

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/runs/{run_id}/concurrency_groups

List concurrency groups for a workflow run

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners

List GitHub-hosted runners for an organization

自备 Key
POST api.github.com/orgs/{org}/actions/hosted-runners

Create a GitHub-hosted runner for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/images/custom

List custom images for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}

Get a custom image definition for GitHub Actions Hosted Runners

自备 Key
DELETE api.github.com/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}

Delete a custom image from the organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions

List image versions of a custom image for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}

Get an image version of a custom image for GitHub Actions Hosted Runners

自备 Key
DELETE api.github.com/orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}

Delete an image version of custom image from the organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/images/github-owned

Get GitHub-owned images for GitHub-hosted runners in an organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/images/partner

Get partner images for GitHub-hosted runners in an organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/limits

Get limits on GitHub-hosted runners for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/machine-sizes

Get GitHub-hosted runners machine specs for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/platforms

Get platforms for GitHub-hosted runners in an organization

自备 Key
GET api.github.com/orgs/{org}/actions/hosted-runners/{hosted_runner_id}

Get a GitHub-hosted runner for an organization

自备 Key
PATCH api.github.com/orgs/{org}/actions/hosted-runners/{hosted_runner_id}

Update a GitHub-hosted runner for an organization

自备 Key
DELETE api.github.com/orgs/{org}/actions/hosted-runners/{hosted_runner_id}

Delete a GitHub-hosted runner for an organization

自备 Key
GET api.github.com/enterprises/{enterprise}/actions/oidc/customization/properties/repo

List OIDC custom property inclusions for an enterprise

自备 Key
POST api.github.com/enterprises/{enterprise}/actions/oidc/customization/properties/repo

Create an OIDC custom property inclusion for an enterprise

自备 Key
DELETE api.github.com/enterprises/{enterprise}/actions/oidc/customization/properties/repo/{custom_property_name}

Delete an OIDC custom property inclusion for an enterprise

自备 Key
GET api.github.com/orgs/{org}/actions/oidc/customization/properties/repo

List OIDC custom property inclusions for an organization

自备 Key
POST api.github.com/orgs/{org}/actions/oidc/customization/properties/repo

Create an OIDC custom property inclusion for an organization

自备 Key
DELETE api.github.com/orgs/{org}/actions/oidc/customization/properties/repo/{custom_property_name}

Delete an OIDC custom property inclusion for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/oidc/customization/sub

Get the customization template for an OIDC subject claim for an organization

自备 Key
PUT api.github.com/orgs/{org}/actions/oidc/customization/sub

Set the customization template for an OIDC subject claim for an organization

自备 Key
GET api.github.com/repos/{owner}/{repo}/actions/oidc/customization/sub

Get the customization template for an OIDC subject claim for a repository

自备 Key
PUT api.github.com/repos/{owner}/{repo}/actions/oidc/customization/sub

Set the customization template for an OIDC subject claim for a repository

自备 Key
GET api.github.com/orgs/{org}/actions/permissions

Get GitHub Actions permissions for an organization

自备 Key
PUT api.github.com/orgs/{org}/actions/permissions

Set GitHub Actions permissions for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/permissions/artifact-and-log-retention

Get artifact and log retention settings for an organization

自备 Key
PUT api.github.com/orgs/{org}/actions/permissions/artifact-and-log-retention

Set artifact and log retention settings for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/permissions/fork-pr-contributor-approval

Get fork PR contributor approval permissions for an organization

自备 Key
PUT api.github.com/orgs/{org}/actions/permissions/fork-pr-contributor-approval

Set fork PR contributor approval permissions for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/permissions/fork-pr-workflows-private-repos

Get private repo fork PR workflow settings for an organization

自备 Key
PUT api.github.com/orgs/{org}/actions/permissions/fork-pr-workflows-private-repos

Set private repo fork PR workflow settings for an organization

自备 Key
GET api.github.com/orgs/{org}/actions/permissions/repositories

List selected repositories enabled for GitHub Actions in an organization

自备 Key
已展示 60 / 989 个操作,在上方输入关键词可检索全部。

常见问题

如何在 Claude Code 或 Cursor 中接入 GitHub?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 GitHub 全部 989 个操作,无需本地维护 MCP 插件或明文密钥。

通过 Duang 接入 GitHub 需要额外付费吗?

团队应用接入永久 $0 平台费。凭证加密封存于团队金库,永不进入模型上下文。

我的 GitHub 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关团队应用