
Github Repo Mcp
io.github.thedhruv-07由 GitHub 帳號 thedhruv-07 發布v0.1.0更新於 Oct 24, 2026
MCP server for GitHub repo health, commit summaries, issue triage, and RAG Q&A.
概覽
讓助理評估公開 GitHub 儲存庫的健康度、近期提交、新手議題,並依據其文件回答問題。
- 可以做什麼
- 提供四個用來分析公開 GitHub 儲存庫的工具。get_repo_health 依提交新鮮度、議題處理比例與貢獻者數量給出確定性的 0-100 健康分數,並立即標記已封存的儲存庫。summarize_recent_commits 依類型(功能/修正/文件/重構/雜項)彙整最近 N 天的提交。find_good_first_issues 找出新手標籤議題、評估其清晰度,並標記可能被錯誤標示的議題。ask_repo 透過以嵌入為基礎的語意搜尋,對 README、docs 檔案與熱門議題討論進行自由文字問答。
- 適用情境
- 適合在評估不熟悉的儲存庫時使用:判斷專案是否仍在積極維護、近期有哪些變更、某個議題是否真的適合新手,或在不逐篇閱讀的情況下就文件內容提問。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行,需要 Node.js。GITHUB_TOKEN 為選用,但可將 GitHub 速率限制從每小時 60 次提高到 5000 次。ask_repo 另需 QDRANT_URL、QDRANT_API_KEY 與 VOYAGE_API_KEY。需要連線至 GitHub、Voyage AI 與 Qdrant Cloud 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Github Repo Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
github-repo-mcp
An MCP (Model Context Protocol) server that lets any AI agent — Claude Desktop, Claude Code, Cursor — reason about a public GitHub repository directly, instead of the human manually reading READMEs, commit logs, and issue trackers.
Why this exists
Evaluating an unfamiliar repo ("is this actively maintained? is this issue actually beginner-friendly? what changed recently?") is repetitive manual work every developer does. This server turns that into four callable tools any MCP-compatible agent can use.
Tools
Setup
Running locally with Claude Desktop
Add this to your Claude Desktop MCP config (claude_desktop_config.json):
Restart Claude Desktop, then try: "Use github-repo-mcp to check the health of facebook/react and find me a good first issue."
Architecture notes
- GitHub API, not scraping — clean, documented, generously rate-limited with a token.
- Deterministic scoring, generative explanation —
get_repo_health's score is a fixed formula (recency + issue triage + contributor diversity), not an LLM guess. This keeps the number reproducible; an LLM (in the calling agent) can narrate why on top of it. - Mislabel detection in
find_good_first_issues— real "good first issue" labels are often wrong. The tool checks body length, red-flag keywords (architecture, migration, security), and comment count to catch issues that are mislabeled, not just present them at face value.
Demo
See docs/demo.md for a real (not mocked) protocol exchange against
facebook/react, including the embeddings-based ask_repo retrieving the correct
answer for a query that shares no words with the source text.
How ask_repo retrieval works
ask_repo started as keyword-window retrieval over the README (see git history) and
was upgraded to embeddings-based RAG, implemented in src/rag.ts:
- On first query for a repo, chunk README +
docs/*.md(top-level, cap 15 files) + top 8 most-discussed issue threads (title + body, ~500-word chunks, 50-word overlap) - Embed each chunk with Voyage AI (
voyage-3.5-lite) - Store vectors in Qdrant Cloud, one collection per repo (
repo_<owner>_<name>) - On every query: embed the question, cosine-similarity search top-5 chunks
- Subsequent queries for the same repo skip re-indexing (checked via the collection's
points_count) — only the query itself gets embedded
Why embeddings over keyword matching: keyword overlap requires literal shared words — "how do I install React?" and a README section titled "Getting Started" share zero words and would never match. Embeddings place semantically similar text near each other in vector space regardless of exact wording, so retrieval survives paraphrasing and synonyms — the actual failure mode keyword search hits in practice.
Known simplifications (marked ponytail: in src/rag.ts), each with a stated
upgrade path:
- Issue threads index title+body only, not the full comment discussion (avoids one
extra API call per issue) — fetch
/issues/{n}/commentsif answers need to reflect resolution discussion, not just the original report. - Chunk sizing uses word count as a token-count approximation, not a real tokenizer.
- No staleness check — a repo indexed once stays indexed even if its docs change.
Add a TTL or a
pushed_atcheck against the stored index if content goes stale.
License
MIT
來源:README.md,提交 c57f171
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分