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.

已驗證STDIO僅桌面效率與工作流開發者工具

概覽

AI 產生的概覽

給編碼代理用的 GitHub 工具:讀寫議題、拉取請求與堆疊、專案看板、儲存庫、發行版和 Actions。

可以做什麼
  • 讀取、建立、編輯、留言、關閉和關聯議題,並建立與議題連結的分支
  • 讀取、建立、審查、合併和關閉拉取請求,以及連結或解散 PR 堆疊
  • 讀取並管理專案看板及其欄位、檢視和項目
  • 讀取和修改儲存庫、標籤、里程碑與規則集(預設關閉)
  • 列出、建立、編輯、發佈和刪除發行版(預設關閉)
  • 列出工作流程與執行紀錄,啟動、重跑和取消 Actions 執行(預設關閉)
適用情境
適合希望助理在編碼環境中直接操作 GitHub 的情況:整理與建立議題、開啟和審查拉取請求、更新專案看板,或不必離開工作階段就能查看和觸發 CI 執行。
執行需求
透過 npm 套件 @craftsamo/github-tools 以 stdio 在本機執行。需要 Node.js 24 或更新版本,以及已用你的身分登入的 GitHub CLI;專案工具集需要權杖具備 project 權限範圍。工具集以 --toolsets 或 GITHUB_TOOLS_TOOLSETS 選擇,repos、releases 和 actions 預設關閉。
安裝前請注意
許多工具會寫入 GitHub:建立和編輯議題與拉取請求、合併、變更儲存庫可見性、刪除標籤、規則集和發行版,以及啟動或取消工作流程執行。Actions 的寫入每次都會詢問,但部分宿主在未加入權限規則時會不經詢問就執行寫入。不提供儲存庫刪除、重新命名、轉移和分支複製。可用 --read-only 或 GITHUB_TOOLS_READ_ONLY 不註冊任何寫入工具。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Github Tools,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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.

HarnessDeliveryPinned by
OpenCode V2native plugin (npm package, with skills)the version in the package
OpenCode V1native plugin (npm package, no skills)the version in the package
Claude Codeplugin: MCP server and skillsthe release tag, as the ref
Codexplugin: MCP server and skillsthe release tag, as the ref
Grok Buildplugin: MCP server and skillsthe release tag, as @ref
Antigravityplugin: MCP server and skillsthe release tag's tree URL
Hermes Agentnative plugin (Python, calls the command line)the release commit, as the SHA
other MCP hostMCP server from npmthe version in the package

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:

sh
gh api repos/craft-agent/github-tools/commits/v<version> --jq .sha

OpenCode

OpenCode V2 takes the package and its options in opencode.json:

json
{  "plugins": [    {      "package": "@craftsamo/github-tools@<version>",      "options": { "toolsets": ["issues", "pull_requests", "projects"] }    }  ],  "permissions": [{ "action": "github_*", "resource": "*", "effect": "ask" }]}

OpenCode V1 takes the package as a string, or as a pair with its options:

json
{  "plugin": [["@craftsamo/github-tools@<version>", { "toolsets": ["issues", "pull_requests", "projects"] }]],  "permission": { "github_*": "ask" }}

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/:

sh
npm pack @craftsamo/github-tools@<version>tar -xzf craftsamo-github-tools-<version>.tgzmkdir -p ~/.config/opencode/skillscp -r package/skills/* ~/.config/opencode/skills/rm -rf package craftsamo-github-tools-<version>.tgz

Claude Code

sh
claude plugin marketplace add craft-agent/github-tools#v<version>claude plugin install github-tools@craft-agent

Codex

sh
codex plugin marketplace add craft-agent/github-tools --ref v<version>codex plugin add github-tools@craft-agent

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

sh
grok plugin install craft-agent/github-tools@v<version> --trust

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.

sh
agy plugin install https://github.com/craft-agent/github-tools/tree/v<version>

Hermes Agent

Hermes installs a commit, not a tag, and the plugin installs disabled:

sh
hermes plugins install craft-agent/github-tools --ref <sha>hermes plugins enable github-tools

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:

json
{  "mcpServers": {    "github-tools": {      "command": "npx",      "args": ["-y", "@craftsamo/github-tools@<version>", "--toolsets", "issues,pull_requests,projects"]    }  }}

Tools and skills

Each toolset comes with a skill that tells an agent how to use its tools.

Issues (issues)

ToolWhat it doesClass
github_issue_readview one issue in full, or list a repository's issues or a parent's sub-issues, with their issue fieldsread
github_issue_createcreate an issue with its kind, labels, assignees, milestone, parent and blocked-by issues, issue fields and a boardadd
github_issue_editchange the title, body (or append to it), kind, labels, assignees, milestone or issue fieldsoverwrite
github_issue_commentcomment on an issueadd
github_issue_closeclose with a reason (completed, not_planned, duplicate)overwrite
github_issue_reopenreopen a closed issueoverwrite
github_issue_relateset the parent, sub-issues, blocked-by and blocking issues, sending only what differsidempotent
github_issue_developcreate a branch on GitHub linked to the issue, or return the one already linkedidempotent

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)

ToolWhat it doesClass
github_pr_readview one pull request in full, list a repository's pull requests, read its checks (waiting up to 45 seconds, with failed job logs) or its diffread
github_pr_createopen a pull request from a pushed branch, with labels, assignees, reviewers, milestone, closing issues, a board and attachmentsadd
github_pr_editchange the title, body (or append to it), base, labels, assignees, reviewers, milestone or closing issuesoverwrite
github_pr_commentcomment, with attachmentsadd
github_pr_reviewapprove, request changes or comment, with line commentsadd
github_pr_readymark ready for review, or turn back into a draftidempotent
github_pr_closecloseoverwrite
github_pr_reopenreopen a closed pull requestoverwrite
github_pr_mergemerge, with the open layers below it in a stack when askedadministrative
github_stack_readview a native stack by its number or a pull request in it, or list a repository's stacksread
github_stack_linkjoin pull requests into a stack, or add them on top of oneidempotent
github_stack_unlinkdissolve a stack, leaving its pull requests openoverwrite

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)

ToolWhat it doesClass
github_project_readview a board with its fields and views, list boards, or item_list a board's itemsread
github_project_createcreate a board, or reuse the one of that title, with the standard fields and viewsidempotent
github_project_field_ensureadd a field, or the missing options of a single selectidempotent
github_project_view_ensureadd a saved view with its fields, columns, grouping and sortidempotent
github_project_linklink a board to a repository of the same owneridempotent
github_project_unlinkunlink a board from a repositoryidempotent
github_project_item_addput an issue or pull request on a board, or return its item, with field valuesidempotent
github_project_item_createcreate a draft item with field valuesadd
github_project_item_editset or clear field values, and change a draft's title and bodyoverwrite
github_project_item_archivearchive an itemoverwrite
github_project_item_unarchivebring an archived item backoverwrite
github_project_item_convertturn a draft into an issue, with its kind, labels and milestoneadd

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)

ToolWhat it doesClass
github_repo_readview a repository's settings, features, merge settings and the viewer's permission, or list an owner's repositoriesread
github_repo_createcreate a repository, empty or from a templateadministrative
github_repo_editchange the description, homepage, default branch, topics, features or merge settingsoverwrite
github_repo_visibilitymake a repository public, private or internaladministrative
github_repo_archivearchive a repositoryadministrative
github_repo_unarchiveunarchive a repositoryoverwrite
github_label_readlist a repository's labelsread
github_label_createcreate a labeladd
github_label_editrename, recolor or redescribe a labeloverwrite
github_label_deletedelete a label, removing it from every issue and pull requestadministrative
github_milestone_readlist a repository's milestones, with progressread
github_milestone_createcreate a milestoneadd
github_milestone_editchange a milestone's title, due date or description, or close or reopen itoverwrite
github_ruleset_readlist the rulesets and classic branch protection, or view one rulesetread
github_ruleset_createcreate a ruleset with its refs, rules and bypass actorsadministrative
github_ruleset_editreplace parts of a ruleset, stopping as stale when it changed since it was readadministrative
github_ruleset_deletedelete a rulesetadministrative

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)

ToolWhat it doesClass
github_release_readlist a repository's releases, drafts included, or view one by tag with its notes and commitread
github_release_createcreate a draft release, optionally with generated notesadd
github_release_editchange the title, notes, prerelease flag, latest status or a draft's targetoverwrite
github_release_publishpublish a draft, stopping as stale when its commit differs from head_shaadministrative
github_release_deletedelete a release and its assets, keeping its tagadministrative

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)

ToolWhat it doesClass
github_workflow_readlist a repository's workflows, disabled ones included, or view one with its file at a branch or tagread
github_run_readlist workflow runs by branch, workflow, status, event or commit, or view one with its jobs and failed logs, waiting while it runsread
github_workflow_runstart a workflow by hand with its inputs, stopping as stale when the ref differs from head_shaadministrative
github_run_rerunre-run a finished run's failed jobs, every job, or one jobadministrative
github_run_cancelcancel a queued or running runadministrative

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.

HarnessReads without asking
OpenCodealways; the plugin asks only before a write
Claude Codethe rule mcp__plugin_github-tools_github-tools__*_read in permissions.allow of ~/.claude/settings.json or a project
Codexalways; Codex runs tools that declare readOnlyHint unasked, as the read tools do
Grok Buildgrok --allow 'MCPTool(github-tools__*_read)' --allow 'MCPTool(github_*_read)' (both rules; see below)
Antigravitythe rule mcp(github-tools_github-tools/github_issue_read) in permissions.allow of ~/.gemini/antigravity-cli/settings.json, one for each read tool
Hermesalways; the plugin asks only before a write

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 under grok -p, refuse a write they cannot ask about, unless it is allowed beforehand.
  • Grok Build calls the plugin's tools through its use_tool tool, 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, and grok -p refuses it and stops instead of letting the agent retry with github-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 -p refuses a tool it cannot ask about; --dangerously-skip-permissions runs every tool unasked.
  • Hermes hermes chat -q refuses a write it cannot ask about; hermes -z and --yolo skip 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.

SettingFlagVariableMeaning
toolsets--toolsetsGITHUB_TOOLS_TOOLSETSissues, pull_requests, projects, repos, releases, actions or all; default issues, pull_requests and projects
read_only--read-onlyGITHUB_TOOLS_READ_ONLYregisters no tool that writes; wins over every other setting
tools--toolsGITHUB_TOOLS_TOOLSsingle tools to add by ID, whatever their toolset
exclude_tools--exclude-toolsGITHUB_TOOLS_EXCLUDE_TOOLSsingle tools to remove by ID; wins over tools and toolsets
confirm--confirmGITHUB_TOOLS_CONFIRMMCP server only: harness (default) or elicitation, as docs/conventions.md describes

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 options shown above, with lists as arrays and read_only as 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 where opencode run starts 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.settings in config.yaml:

    yaml
    plugins:  entries:    github-tools:      settings:        toolsets: [issues, pull_requests, projects]        read_only: false        exclude_tools: [github_pr_merge]

    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 PATH and HOME) 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's config.toml instead of using the plugin: flags go in args, env_vars names the variables to forward from Codex's environment, and env sets fixed values.

    toml
    [mcp_servers.github-tools]command = "npx"args = ["-y", "@craftsamo/github-tools@<version>", "--toolsets", "issues,pull_requests,projects"]env_vars = ["GITHUB_TOOLS_READ_ONLY"]

Layout

  • src/core/ — the tools, free of any harness.
  • src/mcp/ — the MCP server, built to dist/mcp.js and run by github-tools.
  • src/opencode/ — the OpenCode plugin, built to dist/opencode.js.
  • src/cli/ — the command line the Hermes plugin calls, built to dist/cli.js and run by github-tools-cli.
  • src/hermes/, plugin.yaml and __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/ and mcp_config.json — the plugin manifests of the other harnesses. Codex reads .codex-plugin/plugin.json; a root plugin.json would make it load the plugin as an Agent Plugin, whose tool budget hides tools past a fixed size. The root .mcp.json is 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

MIT

來源:README.md,提交 f84ae74

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v0.10.1最新Nov 7, 2026
  2. v0.4.1Nov 5, 2026
  3. v0.3.1Nov 4, 2026
  4. v0.3.0Nov 4, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分