GitHub
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
GitHub MCP server that blocks private-to-public leaks by agents, with approvals and audit.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
GITHUB_TOKENค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"repoward": {
"command": "uvx",
"args": [
"repoward",
"serve"
],
"env": {
"GITHUB_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add repoward --env GITHUB_TOKEN='ใส่ค่าของคุณ' -- uvx repoward serveเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"repoward": {
"command": "uvx",
"args": [
"repoward",
"serve"
],
"env": {
"GITHUB_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"repoward": {
"type": "stdio",
"command": "uvx",
"args": [
"repoward",
"serve"
],
"env": {
"GITHUB_TOKEN": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub Sanoy24 ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: GITHUB_TOKEN
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.0) เข้า registry วันนี้
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A GitHub MCP server that stops AI agents acting on what an attacker's issue told them to do.
Status: alpha. It has not had an independent security review. Read
the threat model, especially the part about where it runs.
An agent with GitHub access can read a malicious public issue, read a private repository, and post the contents in a public pull request. Each call looks allowed on its own, so per-tool permissions do not stop the sequence. This is the attack Invariant Labs published against agents using GitHub's MCP server, and repoward's test suite replays it against real repositories.
Before every write, repoward checks what this agent has already read, using facts from GitHub:
| If the agent has read | Then |
|---|---|
| Anything from a private repository | Writes to public repositories are denied |
An issue, pull request or comment from an author outside OWNER, MEMBER and COLLABORATOR, or a job log | Each write needs human approval |
This does not depend on the model noticing an attack or on scanning text, so rewording or encoding the data does not get around it. The state survives restarts, and no tool can clear it. A person can:
uvx repoward flow status
uvx repoward flow reset
What it does not do:
single_repo: true.author_association is a coarse signal, and a compromised trusted account counts as trusted.trusted_associations is configurable.github_list_issues, github_get_issue, github_search_code, github_get_file, ci_get_status and ci_get_job_logs.github_create_branch, github_commit_files, github_create_pull_request and github_comment. Writes only reach branches with the configured prefix (agent/ by default), pull requests are draft only by default, commit sizes are limited, nothing is forced or retried, and text holding a recognizable credential is refused.github_merge_pull_request and github_delete_branch need human approval. An approval covers one exact call at one exact commit, works once and expires. Merging is off until a policy turns it on.Agents whose only route to GitHub is this server, such as CI bots and hosted agents. An agent with shell access can run git or read local credentials directly, so this server is not a security boundary for it.
Requires uv. Create a starter policy, which also prints a client config to paste:
uvx repoward init --repo your-org/your-repo
The starter policy gives the server read-only tools. Add --role contributor for write tools. Files live in ~/.repoward, or wherever REPOWARD_HOME points. An existing policy is never overwritten.
Run this first, because the server will not start without a policy. Then add it to your MCP client, and use a token set up as described in GitHub token. Avoid committing a config that holds a real token.
Claude Code
claude mcp add --env GITHUB_TOKEN=<your-token> --transport stdio repoward -- uvx repoward serve
Claude Desktop
In claude_desktop_config.json, under Settings > Developer > Edit Config:
{
"mcpServers": { "repoward": { "command": "uvx", "args": ["repoward", "serve"], "env": { "GITHUB_TOKEN": " " } } } }
Cursor
In ~/.cursor/mcp.json, reading the token from your environment:
{
"mcpServers": { "repoward": { "command": "uvx", "args": ["repoward", "serve"], "env": { "GITHUB_TOKEN": "${env:GITHUB_TOKEN}" } } } }
VS Code
In .vscode/mcp.json or your user profile's mcp.json, which prompts for the token once:
{
"inputs": [ { "type": "promptString", "id": "github-token", "description": "GitHub token", "password": true } ], "servers": { "repoward": { "type": "stdio", "command": "uvx", "args": ["repoward", "serve"], "env": { "GITHUB_TOKEN": "${input:github-token}" } } } }
Codex
In ~/.codex/config.toml, forwarding the token from your environment:
[mcp_servers.repoward]
command = "uvx" args = ["repoward", "serve"] env_vars = ["GITHUB_TOKEN"]
Gemini CLI
In ~/.gemini/settings.json, reading the token from your environment:
{
"mcpServers": { "repoward": { "command": "uvx", "args": ["repoward", "serve"], "env": { "GITHUB_TOKEN": "$GITHUB_TOKEN" } } } }
OpenCode
In opencode.json in your project, or ~/.config/opencode/opencode.json, reading the token from your environment:
{
"mcp": { "repoward": { "type": "local", "command": ["uvx", "repoward", "serve"], "environment": { "GITHUB_TOKEN": "{env:GITHUB_TOKEN}" } } } }
Any other client that can launch a stdio MCP server runs the same command: uvx repoward serve.
If your client reports that the server failed to connect, run uvx repoward serve in a terminal to see why. The usual cause is that repoward init has not been run yet, so there is no policy.
Useful commands:
uvx repoward validate-policy
uvx repoward audit verify
A call that needs approval does not run. It returns an approval_id, and a person decides from a terminal:
uvx repoward approvals list
uvx repoward approvals show uvx repoward approvals approve
The agent then repeats the same call. Pushing new commits changes the commit the call names, so the old approval no longer applies, and GitHub refuses a merge whose head has moved.
A merge can also be approved by a normal GitHub review, so the approver needs their own GitHub identity and not just access to this machine. Turn it on in your policy:
approvals:
github_review: { enabled: true, min_permission: write }
A review counts only if it approves the exact commit being merged, comes from a user other than the pull request's author and this server's own identity, and that user has the required access. Any reviewer's outstanding request for changes blocks it. Each check is made again at merge time.
This needs the server to act as a GitHub App or a separate bot account. With your own token, your own reviews are refused. If an agent can reach the reviewer's GitHub credentials, such as a logged-in gh on the same machine, this protection is lost.
If the agent runs as the same OS user as this server and has a shell, it could run these commands or edit the database itself. Run the server and its files under a separate user or in a container for approvals to mean anything.
Use a fine-grained personal access token limited to the repositories you allow, with short expiry. Choose Only select repositories so that repository permissions appear. The read tools need these, all read-only:
| Permission | Used for |
|---|---|
| Metadata | Required by GitHub |
| Contents | github_get_file |
| Issues | github_list_issues, github_get_issue |
| Pull requests | Pull requests in those same tools |
| Actions | ci_get_status, ci_get_job_logs |
| Commit statuses | ci_get_status |
To use the write tools, also give it read and write access to Contents, Issues and Pull requests. Leave the Workflows permission off: GitHub then refuses workflow file changes even if your policy allows the path.
Contents: write lets a token push to any branch and merge, and GitHub cannot limit it to agent/ branches. That limit lives in this server, so also protect your default branch with a ruleset that requires pull requests and has no bypass for the token's owner. If the token leaks or the server is misconfigured, that ruleset still holds.
Limits to know about:
ci_get_status does not show third-party checks reported only through the Checks API, which GitHub documents as unavailable to fine-grained tokens.github_search_code covers the default branch and files under 384 KB. New repositories can return nothing until GitHub indexes them, and its handling of real results has so far only been tested against simulated responses.github_get_file refuses symlinks, submodules, binary files and files over 1 MB. It walks the Git tree, so each read makes one request per folder in the path.ci_get_job_logs fails closed if GitHub moves log storage to a host it does not recognize.github_merge_pull_request does not support merge queues or stacked pull requests.github_delete_branch checks the commit and then deletes, because GitHub has no conditional delete, so a small window remains between the two.A GitHub App gives each tool call its own short-lived token, limited to one repository and that tool's permissions. The App also has its own identity, which review approvals need.
Register an App with webhooks off and only the permissions you need, then install it on the repositories in your policy, and generate a private key:
| Permission | Level | Used for |
|---|---|---|
| Contents | Read, or write for write tools | Files, search, branches, commits, merges |
| Issues | Read, or write for comments | Issues and comments |
| Pull requests | Read, o
ตัดมาแค่ช่วงต้น อ่านต่อใน repo