편집자 노트

GitRuozhi/dsh-github-mcp

DSH-GitHub bridge: direct GitHub access for DSH via the official GitHub MCP server, plus a fix for the official bridge's dropped file content.

이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.

dsh-github-mcp

DSH-GitHub 桥接器,将 GitHub 官方 MCP 服务桥接成 DSH 原生工具,同时修复了 DSH 官方丢弃文件原文的问题。

安装后,Agent 可以使用 mcp__github__* 工具族和 github_file_read 工具直接访问 GitHub 和读取文件,不再需要通过本地 Git 或 gh 工具中转。

安装

dsh plugin --profile web add github:GitRuozhi/dsh-github-mcp

安装后需配置 GITHUB_TOKEN 并重启 dsh web。本机 gh 已登录时,可直接让 DSH 帮你配置。

特点

✅ 官方直连 GitHub 官方 github-mcp-server
✅ 原生 MCP走 MCP 协议直连,不包装 gh、不手写 REST
✅ 零本地依赖使用 GitHub 官方托管端点 https://api.githubcopilot.com/mcp/
✅ 能读文件正文github_file_read 修复了官方桥接丢弃文件原文的问题

工具

安装后新增两类工具:

github_file_read —— 读取文件正文(解码为 UTF-8 文本)或列出目录,私有仓库也能读(需 GITHUB_TOKEN)。

mcp__github__*(44 个,来自 GitHub 官方 MCP server)

  • 搜索search_repositories 搜仓库、search_code 搜代码、search_issues 搜 issue、search_pull_requests 搜 PR、search_commits 搜 commit、search_users 搜用户
  • 仓库create_repository 建仓库、fork_repository fork、list_repository_collaborators 协作者、list_branches / create_branch 列/建分支、list_tags / get_tag 列/读 tag、list_commits / get_commit 列/读 commit
  • 文件get_file_contents 读文件/目录、create_or_update_file 写文件、delete_file 删文件、push_files 批量推文件
  • Releaselist_releases 列 release、get_latest_release 最新 release、get_release_by_tag 按 tag 读 release
  • Issuelist_issues 列 issue、issue_read 读、issue_write 建/改、sub_issue_write 子 issue、add_issue_comment 评论、get_label 标签、list_issue_types / list_issue_fields 类型/字段、get_teams / get_team_members 团队/成员
  • Pull Requestlist_pull_requests 列 PR、pull_request_read 读、create_pull_request 建、update_pull_request 改、update_pull_request_branch 更新分支、merge_pull_request 合并、pull_request_review_write 审查、add_comment_to_pending_review 待审评论、add_reply_to_pull_request_comment 回复评论、request_copilot_review 请求 Copilot 审查
  • 其它get_me 当前用户信息、run_secret_scanning 密钥扫描

模型看到的名字都带 mcp__github__ 前缀。

极简预设

这个插件把工具注册在全局,所以所有预设都会继承 GitHub 工具,包括极简预设。如果您希望某个预设不采用此插件,可以使用下面的方法屏蔽。请注意,DSH 原生极简预设 minimal 无法屏蔽全局插件,您可以新建一个自定义极简预设来实现屏蔽。

// restrict-github.js
const name = 'restrict-github';
const inject = ['tools'];

function apply(ctx) {
  const deny = ctx.tools
    .schemas()
    .map((schema) => schema.name)
    .filter((n) => n.startsWith('mcp__github__') || n === 'github_file_read');
  if (deny.length > 0) ctx.tools.restrict({ deny });
}

export { apply, inject, name };
# 在该预设的 agent.cordis.yml 里
- id: restrict-github
  name: ./restrict-github.js
REPOSITORY SIGNALS

보안 및 설치 증거

이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.

출처 추적 가능

공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.

라이선스

저장소가 MIT 라이선스를 선언했습니다.

유지보수 활동

최근 180일 내 코드 업데이트가 있습니다.

설치 증거

재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.

설치 라이프사이클 스크립트

검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.