
Github Tools
io.github.craft-agent由 GitHub 账号 craft-agent 发布v0.10.1更新于 Nov 7, 2026
GitHub tools for coding agents: issues, project boards, pull requests, releases and Actions.
概览
面向编码代理的 GitHub 工具:读写议题、拉取请求与堆叠、项目看板、仓库、发布和 Actions。
- 可以做什么
- 读取、创建、编辑、评论、关闭和关联议题,并创建与议题关联的分支
- 读取、创建、评审、合并和关闭拉取请求,以及关联或解散 PR 堆叠
- 读取并管理项目看板及其字段、视图和条目
- 读取和修改仓库、标签、里程碑与规则集(默认关闭)
- 列出、创建、编辑、发布和删除发布(默认关闭)
- 列出工作流与运行记录,启动、重跑和取消 Actions 运行(默认关闭)
- 适用场景
- 适合希望助手在编码环境中直接操作 GitHub 的场景:整理和提交议题、开启与评审拉取请求、更新项目看板,或在不离开会话的情况下查看和触发 CI 运行。
- 运行要求
- 通过 npm 包 @craftsamo/github-tools 以 stdio 在本地运行。需要 Node.js 24 或更高版本,以及已以你的身份登录的 GitHub CLI;项目工具集需要令牌具备 project 权限范围。工具集通过 --toolsets 或 GITHUB_TOOLS_TOOLSETS 选择,repos、releases 和 actions 默认关闭。
安装
在 SourceWeft 中
- 打开 控制台中的 Github Tools,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
github-tools
GitHub tools for coding agents: issues, project boards, pull requests, repositories, releases and Actions. One implementation, delivered to each agent harness in the form that suits it best.
0.3.0 moved the package from craftsamo/agent-github to craft-agent/github-tools and renamed it: npm @craftsamo/github-tools (was @craftsamo/agent-github, now removed from npm), plugin and MCP server github-tools, programs github-tools and github-tools-cli, settings GITHUB_TOOLS_*. Allow rules, plugin installs and MCP configurations written for 0.2.0 change; the tool IDs do not.
The tools need Node.js 24 or later and the
GitHub CLI, authenticated as you.
docs/conventions.md describes how the tools are named
and how they behave.
Install
Install from a release, never from the default branch: a release is a tag whose
commit carries the built dist/, and the default branch does not. In the
commands below, <version> is a release's version (1.2.3) and <sha> is the
commit its tag names:
OpenCode
OpenCode V2 takes the package and its options in opencode.json:
OpenCode V1 takes the package as a string, or as a pair with its options:
OpenCode allows any action no rule names, so the plugin's request is granted
silently unless a rule says ask. Read tools never ask, so the github_* glob
is safe.
V1 registers no skills. Unpack the package and copy its skills/* folders into
~/.config/opencode/skills/:
Claude Code
Codex
Codex turns - into _ in server names, so it shows the tools as
mcp__github_tools__github_issue_*. It starts the MCP server in the plugin's
install directory, so name issues as owner/repo#N or pass repo (a bare number
fails there with a message saying so).
Grok Build
Grok starts the MCP server in the session's working directory, so inside a clone a bare issue number names an issue of that repository.
Antigravity
Install from the tree of the release tag, never from the default branch, which
has no built dist/; Antigravity clones the tag into
~/.gemini/config/plugins/github-tools.
Hermes Agent
Hermes installs a commit, not a tag, and the plugin installs disabled:
If a Hermes gateway is already running, restart it (hermes gateway restart) to
load the plugin.
Any other MCP host
Add the server to the host's MCP configuration. Flags go in args:
Tools and skills
Each toolset comes with a skill that tells an agent how to use its tools.
Issues (issues)
The skill is github-issues, shown as
github-tools:github-issues in Claude Code and github-tools:issues in Hermes.
An issue's kind is the organization's Issue Type of that name when it defines
one, otherwise a type:<kind> label. Issue fields (Priority, Effort, Start
date, Target date and any others) are the organization's own, so only an
organization's repositories have them; list filters by one with
field.<name>:<value> in query.
Pull requests and stacks (pull_requests)
The skill is
github-pull-requests, shown as
github-tools:github-pull-requests in Claude Code and
github-tools:pull-requests in Hermes. The tools do not push: push the branch
first and pass the commit it pushed as head_sha, so a pull request opens, is
reviewed or merges on exactly that commit. Closing issues are kept as Closes #N lines in the body, since GitHub has no other way to link them. Stacks use
GitHub's REST stack endpoints, so the gh stack extension is not needed.
Attachments need gh 2.99 or newer.
Project boards (projects)
The skill is
github-projects, shown as
github-tools:github-projects in Claude Code and github-tools:projects in
Hermes. A board is named by its number, owner/N, URL or title (Roadmap when
none is given), and found among the boards linked to the repository, then its
organization's, then the viewer's. The token needs the project scope
(gh auth refresh -s project). No API sets a roadmap view's date fields, so
after github_project_create set the Roadmap view's "Date fields" to Start and
Target in the web UI. A column that mirrors an organization's issue field is
read like any other, but its value is the issue's own: the board tools refuse
to set or clear it, and github_issue_edit does both.
github_project_field_ensure with issue_field: true adds such a column, and
github_project_create with dates: "issue_fields" uses the issue fields Start
date and Target date as an organization board's dates.
Repositories (repos)
The toolset is off by default: add repos to toolsets. The skill is
github-repos, shown as
github-tools:github-repos in Claude Code and github-tools:repos in Hermes.
Most settings changes need admin permission on the repository, and rulesets on
a private repository need a paid plan. Deleting, renaming, transferring or
forking a repository is left to the user.
Releases (releases)
The toolset is off by default: add releases to toolsets. The skill is
github-releases, shown as
github-tools:github-releases in Claude Code and github-tools:releases in
Hermes. A new release is always a draft; assets are not covered yet.
Actions (actions)
The toolset is off by default: add actions to toolsets. The skill is
github-actions, shown as
github-tools:github-actions in Claude Code and github-tools:actions in
Hermes. Every Actions write asks each time, since a workflow can deploy or
publish whatever its name says. Enabling or disabling a workflow, deleting a
run and downloading artifacts are not covered yet.
Reads and writes
Every read tool is named github_<domain>_read. Reads can run unasked; writes
are confirmed by the harness.
Where a write is asked about, and where it is not:
- OpenCode grants any action no rule names, so a write runs unasked unless
a rule asks for it: add the
github_*rule shown under OpenCode. - Codex under
codex exec, and Grok Build undergrok -p, refuse a write they cannot ask about, unless it is allowed beforehand. - Grok Build calls the plugin's tools through its
use_tooltool, and the agent often names a tool without its server first (github_project_read). Grok checks the rules against the name as given, so the server-qualified rule alone does not match that first call, andgrok -prefuses it and stops instead of letting the agent retry withgithub-tools__github_project_read. The second rule matches the short name; a write still matches neither. - Antigravity asks before any MCP tool no rule allows, reads included, and
names the plugin's server
github-tools_github-tools(plugin, then server).agy -prefuses a tool it cannot ask about;--dangerously-skip-permissionsruns every tool unasked. - Hermes
hermes chat -qrefuses a write it cannot ask about;hermes -zand--yoloskip approval, so writes then run unasked.
Settings
Every entry point takes the same settings. A flag wins over its environment variable, and an option or setting wins over the variable too.
Lists are comma-separated in a flag or a variable. GitHub Actions does not let a
secret or configuration variable be named GITHUB_*, so in a workflow pass a
value through env: from a secret of another name, e.g.
GITHUB_TOOLS_READ_ONLY: ${{ secrets.TOOLS_READ_ONLY }} (setting such an
environment variable in env: is allowed). Where each harness reads them:
-
OpenCode takes the plugin
optionsshown above, with lists as arrays andread_onlyas a boolean, and falls back to the variables. V2 runs plugins in its background service, which keeps the environment it started with: a variable set whereopencode runstarts has no effect until the service is restarted in that environment (opencode service restart). V1 runs plugins in its own process. -
Hermes takes
plugins.entries.github-tools.settingsinconfig.yaml:The plugin passes its own environment to the command line it runs, so the variables work too. A running gateway keeps the environment it started with; restart it (
hermes gateway restart) after changing one. -
Claude Code, Grok Build and Antigravity start the plugin's server without flags and pass it the client's environment, so set the variables in the environment the harness runs in.
-
Codex passes a plugin's MCP server only a few basic variables (such as
PATHandHOME) and those the plugin's manifest names, which are the variables above: set them in the environment Codex runs in. To pass flags, or to give the server another variable it needs, add the server under[mcp_servers]in Codex'sconfig.tomlinstead of using the plugin: flags go inargs,env_varsnames the variables to forward from Codex's environment, andenvsets fixed values.
Layout
src/core/— the tools, free of any harness.src/mcp/— the MCP server, built todist/mcp.jsand run bygithub-tools.src/opencode/— the OpenCode plugin, built todist/opencode.js.src/cli/— the command line the Hermes plugin calls, built todist/cli.jsand run bygithub-tools-cli.src/hermes/,plugin.yamland__init__.py— the Hermes plugin.skills/— one skill per toolset,skills/<name>/SKILL.md, which every harness that takes skills loads from the package or plugin root..claude-plugin/,.codex-plugin/,.agents/plugins/,.mcp.json,.antigravity-plugin/andmcp_config.json— the plugin manifests of the other harnesses. Codex reads.codex-plugin/plugin.json; a rootplugin.jsonwould make it load the plugin as an Agent Plugin, whose tool budget hides tools past a fixed size. The root.mcp.jsonis the configuration Grok Build reads (with${CLAUDE_PLUGIN_ROOT}, the variable both Grok Build and Claude Code expand); when working on this repository in Claude Code, decline the project MCP server it offers from that file.
How a release is made is in RELEASING.md.
License
来源:README.md,提交 f84ae74
工具
0版本历史
4- v0.10.1最新Nov 7, 2026
- v0.4.1Nov 5, 2026
- v0.3.1Nov 4, 2026
- v0.3.0Nov 4, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分