GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
MCP server connecting Claude Code to GitHub for an issue to branch to PR to close workflow.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
GITHUB_TOKEN, GITHUB_OWNER, GITHUB_REPO标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"okffs": {
"command": "npx",
"args": [
"-y",
"@neturely/okffs"
],
"env": {
"GITHUB_TOKEN": "your-value",
"GITHUB_OWNER": "your-value",
"GITHUB_REPO": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add okffs --env GITHUB_TOKEN=your-value --env GITHUB_OWNER=your-value --env GITHUB_REPO=your-value -- npx -y @neturely/okffs运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"okffs": {
"command": "npx",
"args": [
"-y",
"@neturely/okffs"
],
"env": {
"GITHUB_TOKEN": "your-value",
"GITHUB_OWNER": "your-value",
"GITHUB_REPO": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"okffs": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@neturely/okffs"
],
"env": {
"GITHUB_TOKEN": "your-value",
"GITHUB_OWNER": "your-value",
"GITHUB_REPO": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
GITHUB_OWNER envGITHUB_REPO env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 neturely 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:GITHUB_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.15.0)于3天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Turn a conversation with Claude into GitHub issues, branches, and pull requests — without leaving Claude Code.
okffs is a Model Context Protocol server that gives Claude Code a clean issue → branch → PR → close workflow on GitHub. Talk through the work in plain language; okffs creates the issues, matching branches, and pull requests, keeps them linked, and (optionally) syncs a GitHub Projects board — all in one shot.
gh CLI inside your repo? You're ready.1. Run the setup wizard from your project root:
npx @neturely/okffs setup
It walks you through auth, repo, and any optional features, writes a .env, then runs a quick GitHub sanity check. Re-run it any time (e.g. after upgrading okffs) — it only asks about options that are new since your last run. If you're happy relying on the GitHub CLI (gh auth login) and working inside the repo you want to manage, you can skip this step entirely — okffs works with no config at all.
Already in Claude Code? Once okffs is connected you can configure it conversationally instead — run the `/okffs:setup` slash command and Claude will interview you and write the
.envfor you (no terminal needed). okffs also nudges you to run it after an upgrade introduces new options.
2. Add a `.mcp.json` to your project root:
{
"mcpServers": { "okffs": { "command": "npx", "args": ["@neturely/okffs@latest"] } } }
That's it — npx fetches okffs on first use, and Claude Code picks up the tools automatically. To use a token or a different repo instead of the gh/auto-detect defaults, run okffs setup (above) or edit .env by hand — see Configuration.
Now just ask Claude:
Claude infers labels (bug, enhancement, …) from the title and description and merges them with any you've set as defaults.
| Tool | What it does |
|---|---|
create_issue | Creates an issue and a matching branch (an Epic gets no branch or draft PR — work lands on its children). Infers labels, a board priority/effort, and a native Issue Type from the task (toggle with OKFFS_INFER_PRIORITY/OKFFS_INFER_EFFORT/OKFFS_INFER_TYPE). Optional assignees, labels, milestone, priority, effort, type. Opens a draft PR immediately when OKFFS_AUTO_PR=true. |
create_issues_from_list | Creates many issues + branches from a task list in one shot. Confirms first. Per-task labels, assignees, milestone, priority, effort, type. |
plan | Give it a free-text description plus the breakdown Claude generates (titles, descriptions, labels, priority/effort/type, relationships); it creates every issue + branch, wires up relationships, and opens draft PRs when OKFFS_AUTO_PR=true. Confirms first. |
list_issues | Lists open issues with branch, linked PR, board column, priority:/effort:, native type:, and relationships as a tree — ordered by priority so the most important work is on top. |
get_issue | Full details for one issue: title, body, labels, assignees, branch, status. |
comment_issue | Posts a comment — handy for logging what a branch did. |
link_issues | Links two issues (blocked_by, blocking, parent), stored under a ## Relationships section. |
close_issue | Closes an issue and tips you to /clear before the next one. |
create_pull_request | Opens a PR for an issue branch — generates the title/body, pushes the branch, always includes Closes #N, and comments back. Can write changelog fragments when OKFFS_UPDATE_DOCS=true. Pass allow_empty: true to backfill a draft tracking PR on a branch with no commits (pushes an empty init commit to diverge it). |
commit_and_update | Stages tracked changes (untracked need include_untracked: true), commits (your message verbatim, or an auto-generated one), pushes, and posts a progress comment to the issue. Refuses secret-looking files. |
merge_pull_request | Autonomously merges a green, review-resolved issue PR into the base branch (e.g. develop) using OKFFS_BASE_MERGE_METHOD, then closes the issue. Opt-in (OKFFS_AUTO_MERGE_BASE=true) and heavily gated — never touches OKFFS_PROTECTED_BRANCH, independently verifies checks/mergeability/threads. wait_for_checks: true waits (bounded, default 90s) for pending checks instead of refusing. |
get_pr_checks | Read-only: lists a PR's statuses and check runs with their states, plus the last ~50 log lines of each failed GitHub Actions job (needs Actions: read). Pass ref (a tag, branch or sha) to watch the deploy run a push or tag triggered, wait_for_checks to wait (bounded) for it, and log_match (a regex, e.g. \[health\] applied) to confirm a line appeared in the run's log. |
fix_into_base | Opens (and, under the same OKFFS_AUTO_MERGE_BASE gates, merges) an issue-less fix PR into the base branch — for small cleanups such as review-comment fixes. Never targets OKFFS_PROTECTED_BRANCH. |
promote_branch | Opens the issue-less promotion PR (e.g. develop → main), boards it, optionally requests reviewers, and lists the releases it carries per app. A re-run reports unresolved review threads and — when you opt in — merges the gate PR (OKFFS_AUTO_MERGE_PROTECTED) and tags the merged release(s) (OKFFS_TAG_RELEASE). See Releases and the promotion gate. |
list_pr_review_comments | Fetches a PR's inline review threads and summaries. |
reply_to_review_comment | Replies to an inline review thread by id. |
resolve_review_thread | Resolves a review thread — only when OKFFS_RESOLVE_THREADS=true. |
prepare_release | Bumps the version (package.json, or a plain VERSION file when there is none — created on the first release), rolls the CHANGELOG, commits on a release branch, and opens a PR. Confirms first; does not tag or publish. Per app under multisite. |
update_project_status | Moves an issue between board columns (Backlog, Ready, In Progress, Review). Needs OKFFS_PROJECT_ENABLED. |
set_issue_fields | Sets board Priority/Effort and/or the native Issue Type on an existing issue. Priority/Effort handle project-native and org-level Issue Fields (needs OKFFS_PROJECT_ENABLED); type is org-native and works independently. create_issue only sets these at creation; use this afterwards. Status stays with update_project_status. |
update_issue | Edits an existing issue's core fields — title, assignees, labels, milestone, body — via one PATCH with the configured token. labels/assignees replace the whole set ([] clears). For Priority/Effort/Type use set_issue_fields; for Status use update_project_status. |
configure | Writes okffs config to .env — the backend for the /okffs:setup prompt. Reuses the okffs setup wizard's manifest/serializer: updates only okffs's marked block, preserving your own variables and comments. app: "finance" writes finance/.env instead; makes sure .gitignore covers .env at every depth. Usually driven by /okffs:setup, not called directly. |
delete_issue | Closes an issue and deletes its branch. Destructive — needs confirmed: true. |
delete_branch | Deletes a branch and closes its issue. Destructive — needs confirmed: true. |
Destructive tools (delete_issue, delete_branch) always warn on the first call and only act when re-called with confirmed: true, posting a comment to the issue before doing anything.
okffs has a built-in loop for review feedback — just ask (*"address the review comments on PR #42"*). Claude reads the threads, fixes the valid ones, commits and pushes, replies per thread, and posts a summary. Claude brings the judgment and the fixes; okffs handles the GitHub plumbing. There's also a slash command, `/okffs:address_pr_review` (takes a PR number), that runs the same loop.
By default review threads are left open for you to resolve; set OKFFS_RESOLVE_THREADS=true to have okffs resolve them once addressed.
For a hands-off session, ask Claude to *"fully handle this"* (or *"minimum interference"*) — or set OKFFS_AUTOPILOT=true to make it the default. In autopilot, Claude stops asking you to choose between options for reversible decisions, takes the recommended option at each fork, and drives an issue all the way to a PR into the base branch (and a base merge when OKFFS_AUTO_MERGE_BASE=true) — then posts an "Autopilot decisions" report (one line per choice, with a one-line why) to the PR and the issue, so you can redirect anything in a single message.
It removes confirmation friction; it does not grant new powers. The hard stops always interrupt, even in autopilot: destructive tools (delete_issue / delete_branch), and anything into OKFFS_PROTECTED_BRANCH (merge/tag/publish), billable, or irreversible that you have not opted into. An explicit env opt-in is the consent and is never re-asked: OKFFS_PROMOTION_AUTO_REVIEW (the Copilot review is your own GitHub billing choice), OKFFS_AUTO_MERGE_PROTECTED, OKFFS_TAG_RELEASE. Correctness stops — a failing check, a pending review, an unresolved thread, a moved branch tip — are never overridden by a flag. And for a real *missing-information* call — where only you hold the context — Claude still asks one quick question rather than guess. Off by default.
prepare_release bumps the version and rolls the changelog on a release/X.Y.Z branch into your base branch. promote_branch then opens the issue-less promotion PR (e.g. develop → main), boards it, optionally requests reviewers such as Copilot, and lists the releases the promotion carries. From there, each further step is your call, or an explicit opt-in:
| Step | Manual (default) | Opt-in |
|---|---|---|
| Review feedback | Re-run promote_branch to see unresolved threads; fix via /okffs:address_pr_review + fix_into_base. | — |
| Merge the gate PR | You merge it on GitHub. | OKFFS_AUTO_MERGE_PROTECTED=true — a re-run merges once every gate passes (checks green, review landed, threads resolved). |
| Tag the release | You push the tag (v0.13.0, or finance-1.3.0 per app). | OKFFS_TAG_RELEASE=true — the re-run after the merge tags the release(s) on the merge commit. |
| Sync back | You merge main → develop with a merge commit. | OKFFS_SYNC_BACK=true — the same run opens and merges the main → develop PR as a merge commit (never squash) and checks it has 2 parents. |
With both flags on, the loop is: promote_branch → review lands → address it → re-run promote_branch merges and tags. okffs still
只显示了开头部分;其余内容请在仓库中阅读