Agent Github

io.github.craftsamoPublished by GitHub account craftsamov0.2.0Updated Nov 4, 2026

GitHub tools for coding agents: issues, project boards, pull requests, releases and Actions.

Overview

AI-generated overview

GitHub tools for coding agents covering issues, project boards, pull requests, repositories, releases and Actions, delivered as an MCP server or harness plugin.

What you can do
  • Read issues in full, or list a repository's issues and a parent's sub-issues
  • Create, edit, comment on, close, reopen and relate issues, and create a branch linked to an issue
  • Select which toolsets are registered (issues, pull requests, projects, repos, releases, actions) and add or exclude individual tools
  • Run in read-only mode so no writing tool is registered at all
  • Ship a skill per toolset that tells the agent how to use its tools
When to use it
Useful when a coding agent should work with GitHub issues and pull requests directly, for example triaging, filing, linking or closing issues and opening linked branches, instead of the user copying details by hand. Only the issues toolset ships tools in the current release.
Requirements
Runs locally over stdio. Needs Node.js 24 or later and the GitHub CLI installed and authenticated as the user. Install from a release tag or version, not the default branch. Settings can be given as flags or as AGENT_GITHUB_TOOLSETS, AGENT_GITHUB_READ_ONLY, AGENT_GITHUB_TOOLS, AGENT_GITHUB_EXCLUDE_TOOLS and AGENT_GITHUB_CONFIRM, though Codex and Grok Build pass no environment to a plugin's server.
Before you install
Tools act on the user's GitHub account through the authenticated GitHub CLI, so writes affect real repositories. Writes include creating and editing issues, commenting, closing, reopening, changing relationships and creating branches. OpenCode grants any action no rule names, so a write runs unasked unless a github_* ask rule is added; Hermes -z and --yolo skip approval. Use read_only or exclude_tools to limit what is registered.

Installation

In SourceWeft

  1. Open Agent Github in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

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 skills (not yet verified)the release tag's tree URL (not yet verified)
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.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:

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

OpenCode

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

json
{  "plugins": [    {      "package": "@craftsamo/agent-github@<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/agent-github@<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/agent-github@<version>tar -xzf craftsamo-agent-github-<version>.tgzmkdir -p ~/.config/opencode/skillscp -r package/skills/* ~/.config/opencode/skills/rm -rf package craftsamo-agent-github-<version>.tgz

Claude Code

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

Codex

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

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

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

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.

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

Hermes Agent

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

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

Any other MCP host

Add the server to the host's MCP configuration. Flags go in args:

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

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)

ToolWhat it doesClass
github_issue_readview one issue in full, or list a repository's issues or a parent's sub-issuesread
github_issue_createcreate an issue with its kind, labels, assignees, milestone, parent and blocked-by issuesadd
github_issue_editchange the title, body (or append to it), kind, labels, assignees or milestoneoverwrite
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. 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.

HarnessReads without asking
OpenCodealways; the plugin asks only before a write
Claude Codethe rule mcp__plugin_agent-github_agent-github__*_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(agent-github__*_read)'
Antigravityan Allow rule mcp(agent-github/<tool>) for each read tool; not yet verified
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.
  • 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--toolsetsAGENT_GITHUB_TOOLSETSissues, pull_requests, projects, repos, releases, actions or all; default issues and pull_requests
read_only--read-onlyAGENT_GITHUB_READ_ONLYregisters no tool that writes; wins over every other setting
tools--toolsAGENT_GITHUB_TOOLSsingle tools to add by ID, whatever their toolset
exclude_tools--exclude-toolsAGENT_GITHUB_EXCLUDE_TOOLSsingle tools to remove by ID; wins over tools and toolsets
confirm--confirmAGENT_GITHUB_CONFIRMMCP server only: harness (default) or elicitation, as docs/conventions.md describes

Lists are comma-separated in a flag or a variable. Where each harness reads them:

  • OpenCode takes the plugin options shown above, with lists as arrays and read_only as a boolean.

  • Hermes takes plugins.entries.agent-github.settings in config.yaml:

    yaml
    plugins:  entries:    agent-github:      settings:        toolsets: [issues, pull_requests, projects]        read_only: false        exclude_tools: [github_pr_merge]
  • 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 in args (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 to dist/mcp.js and run by agent-github.
  • 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 agent-github-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.
  • plugin.json, mcp.json, .mcp.json, .claude-plugin/, .agents/plugins/, .antigravity-plugin/ and mcp_config.json — the plugin manifests of the other harnesses. 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

Source: README.md at commit 6541d5a

Tools

0
SourceWeft started this package once in an isolated sandbox, without credentials, to list its tools. That failed: the package did not install.

Version history

1
  1. v0.2.0LatestNov 4, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts