
Agent Github
io.github.craftsamo由 GitHub 账号 craftsamo 发布v0.2.0更新于 Nov 4, 2026
GitHub tools for coding agents: issues, project boards, pull requests, releases and Actions.
概览
面向编码代理的 GitHub 工具,覆盖议题、项目看板、拉取请求、仓库、发布和 Actions,以 MCP 服务器或各 harness 插件形式提供。
- 可以做什么
- 完整查看单个议题,或列出仓库的议题及父议题的子议题
- 创建、编辑、评论、关闭、重新打开议题,并设置议题之间的关联,或创建与议题关联的分支
- 选择注册哪些工具集(issues、pull requests、projects、repos、releases、actions),并按 ID 添加或排除单个工具
- 以只读模式运行,此时不注册任何写入工具
- 每个工具集附带一个技能,告诉代理如何使用对应工具
- 适用场景
- 适合让编码代理直接处理 GitHub 议题和拉取请求,例如分类、提交、关联或关闭议题以及创建关联分支,而不必由用户手动复制信息。当前版本只有 issues 工具集包含工具。
- 运行要求
- 通过 stdio 在本地运行。需要 Node.js 24 或更高版本,以及已安装并以用户身份完成认证的 GitHub CLI。应从发布标签或版本安装,而非默认分支。设置可通过命令行参数或 AGENT_GITHUB_TOOLSETS、AGENT_GITHUB_READ_ONLY、AGENT_GITHUB_TOOLS、AGENT_GITHUB_EXCLUDE_TOOLS、AGENT_GITHUB_CONFIRM 环境变量给出,但 Codex 和 Grok Build 不会向插件的服务器传递环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 Agent Github,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
agent-github
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.2.0 renamed the MCP server from github to agent-github, so allow rules
and MCP configurations written for 0.1.0 change.
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 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
Antigravity
Install from the tree of the release tag, never from the default branch, which
has no built dist/. The pinning and the install command are not yet verified
on a real install.
Hermes Agent
Hermes installs a commit, not a tag, and the plugin installs disabled:
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. A
toolset with no tools yet registers none (0.2.0 ships the issues tools).
Issues (issues)
The skill is github-issues. An issue's kind
is the organization's Issue Type of that name when it defines one, otherwise a
type:<kind> label.
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. - 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. Where each harness reads them:
-
OpenCode takes the plugin
optionsshown above, with lists as arrays andread_onlyas a boolean. -
Hermes takes
plugins.entries.agent-github.settingsinconfig.yaml: -
Claude Code and Antigravity start the plugin's server without flags; Claude Code passes the client's environment, so set the variables in the environment the harness runs in.
-
Codex and Grok Build pass no environment to a plugin's MCP server, so the
AGENT_GITHUB_*variables have no effect there. To change settings in Codex, add the server under[mcp_servers]in Codex's config with flags inargs(as in Any other MCP host) instead of using the plugin.
Layout
src/core/— the tools, free of any harness.src/mcp/— the MCP server, built todist/mcp.jsand run byagent-github.src/opencode/— the OpenCode plugin, built todist/opencode.js.src/cli/— the command line the Hermes plugin calls, built todist/cli.jsand run byagent-github-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.plugin.json,mcp.json,.mcp.json,.claude-plugin/,.agents/plugins/,.antigravity-plugin/andmcp_config.json— the plugin manifests of the other harnesses. 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,提交 6541d5a
工具
0版本历史
1- v0.2.0最新Nov 4, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分