Github Repo Intelligence Mcp

io.github.digitalgremlin由 GitHub 帳號 digitalgremlin 發布v0.1.0更新於 Oct 24, 2026

GitHub repo maintainability verdicts—maintained, slowing, at-risk, abandoned—via MCP.

已驗證Streamable HTTP可網頁執行開發者工具資料與分析

概覽

AI 產生的概覽

遠端 MCP 伺服器,讓助理取得任一 GitHub 儲存庫的可維護性判定,並附上活動、議題、PR 與貢獻者原始指標。

可以做什麼
  • 取得儲存庫整體健康判定(活躍維護、放緩、有風險、疑似棄用),含各面向細分與理由說明
  • 查看提交節奏、發布頻率與動能趨勢
  • 查看議題回應速度、待處理量與久未更新議題比例
  • 查看 PR 合併率、合併耗時與最久未合併 PR 的天數
  • 查看貢獻者廣度與關鍵人物集中(bus factor)標記
  • 所有工具接受 owner/name 或 GitHub 連結,同一儲存庫共用一次快取抓取
適用情境
適合在採用、推薦或基於某個開源相依套件、函式庫或廠商專案開發之前,讓助理判斷它是否仍在維護;也適合批次篩選與定期監控候選儲存庫。
執行需求
需要 Apify 平台上的遠端 Streamable HTTP 端點,並使用 OAuth 認證。實際上必須提供 GitHub 權杖:主要 GraphQL 資料來源會拒絕未認證請求,共用出口 IP 也會很快耗盡匿名配額,沒有權杖只會回傳限流錯誤。權杖可透過 githubToken 輸入或 Actor 上的 GITHUB_TOKEN 環境變數提供。選用設定:cacheTtlMinutes 與 analysisWindowDays。
安裝前請注意
伺服器需要 GitHub 權杖這項憑證;公開儲存庫用無 scope 的傳統權杖即可,分析私有儲存庫則需具備對應讀取權限的權杖,權杖以密鑰形式保存。查詢的儲存庫名稱會傳送給 GitHub 以及 Apify 上託管的 Actor。Actor 在保持待命並處理請求期間依運算量計費,重複或排程使用會產生 Apify 費用。判定是依固定門檻的啟發式結論,並非保證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Github Repo Intelligence Mcp,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.digitalgremlin%2Fgithub-repo-intelligence-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "github-repo-intelligence": {
      "type": "http",
      "url": "https://joeslade--github-repo-intelligence-mcp.apify.actor/mcp"
    }
  }
}

README

A maintainability verdict, not another dashboard.

GitHub Repo Health Check is an MCP server that answers the one question your dependency list can't: is this repo still maintained, or am I building on sand? Last-commit date lies. Star count lies. One signal isn't a verdict. So it returns a four-way read — Actively maintained, Slowing, At-risk, or Likely abandoned — synthesized across four dimensions (activity, issues, PRs, contributors), backed by the transparent, inspectable thresholds that produced it. Point it at any owner/name (or GitHub URL) and your agent gets a verdict it can act on, plus the raw numbers so it can see exactly why. Same repo state + config → the same verdict, every time.

It runs as a Standby Actor on the Apify platform — always warm, reachable over the Streamable HTTP transport at the /mcp path, with API access, scheduling, and monitoring included.

See it in action

Two repos, two very different verdicts — then a drill-down into the metrics behind them, all over MCP:

[GitHub Repo Health Check terminal demo]

Who is this for?

  • Agent developers whose agents need to decide whether to adopt, recommend, or monitor an open-source library or tool
  • Dependency due-diligence — vetting whether a package's upstream is alive before committing to it
  • OSS vendor evaluation — checking the health of a project before building on it
  • Repo triage at scale — ranking a list of candidates by health before a human reviews them
  • Automated monitoring — scheduling recurring checks and alerting when a dependency starts slowing

If you've ever asked "is this repo abandoned?" or run a GitHub repo health check by hand, this server does it programmatically at any scale.

Why use GitHub Repo Health Check?

Most GitHub tools hand an agent raw API access and leave the judgment to the model — inconsistent, hand-rolled heuristics on every call. This server does the synthesis for you.

The differentiator is judgment, not raw access: every verdict ships alongside the pinned thresholds and raw metrics that produced it, so the agent (and you) can audit the reasoning. Same repo state + same config always yields the same verdict.

One GitHub fetch per repository is cached and shared across all five tools. Drilling from the headline verdict into a specific dimension costs no extra upstream calls.

How to use GitHub Repo Health Check

  1. Deploy the Actor — run it in Standby mode on Apify. It boots with no input required.
  2. Connect your MCP client to the Standby endpoint (https://<your-standby-url>/mcp) using the Streamable HTTP transport.
  3. Call get_repo_health with a repo argument ("owner/name" or any https://github.com/owner/name URL) to get the headline verdict.
  4. Add a GitHub token — this is effectively required. The Actor's primary data source (GitHub's GraphQL API) rejects unauthenticated requests, and Apify's shared egress IPs exhaust GitHub's anonymous quota almost immediately. Without a token the Actor returns rate-limit errors, not verdicts. See Input for setup.
  5. Drill into dimensions — call get_activity_metrics, get_issue_health, get_pr_health, or get_contributor_insights when you need detail beyond the headline. All five tools read from the same cached payload.

The five tools

All tools take a single repo argument — either "owner/name" or any https://github.com/owner/name[/...] URL (case-insensitive).

get_repo_health — headline verdict

Returns the overall verdict, a per-dimension breakdown, and a rationale string explaining the worst dimension.

jsonc
{  "repo": "honojs/hono",  "overallVerdict": "Actively maintained",  "dimensions": {    "activity":     { "verdict": "Healthy", "lastCommitDaysAgo": 1, "commits90d": 412 },    "issues":       { "verdict": "Healthy", "medianFirstResponseDays": 2.4, "staleOpenRatio": 0.12 },    "pullRequests": { "verdict": "Healthy", "mergeRate": 0.88, "oldestOpenPrDaysAgo": 14 },    "contributors": { "verdict": "Healthy", "totalContributors": 312, "busFactorFlag": false }  },  "rationale": "Overall: activity is Healthy; weakest dimension is issues (Healthy).",  "stars": 21000,  "forks": 640,  "fetchedAt": "2026-06-01T00:00:00.000Z",  "authenticated": true}

get_activity_metrics — commit cadence and momentum

Commit volumes over trailing windows, release frequency, and a momentum trend.

jsonc
{  "repo": "honojs/hono",  "verdict": "Healthy",  "lastCommitDaysAgo": 1,  "commits30d": 140,  "commits90d": 412,  "commits365d": 1680,  "releaseCount365d": 48,  "lastReleaseDaysAgo": 3,  "momentumTrend": "steady",  "fetchedAt": "2026-06-01T00:00:00.000Z"}

momentumTrend is accelerating / steady / declining, derived from the 30-day commit rate vs the 90-day rate. Repos that tag rather than cutting GitHub Releases will show releaseCount365d: 0 and lastReleaseDaysAgo: null — this does not by itself degrade the verdict.

get_issue_health — responsiveness and backlog hygiene

How quickly maintainers respond to issues and how much of the backlog has gone stale.

jsonc
{  "repo": "honojs/hono",  "verdict": "Healthy",  "openIssues": 32,  "closedIssues": 1840,  "openClosedRatio": 0.017,  "medianFirstResponseDays": 2.4,  "medianTimeToCloseDays": 5.1,  "staleOpenIssues": 4,  "staleOpenRatio": 0.12,  "fetchedAt": "2026-06-01T00:00:00.000Z"}

An issue is stale if untouched for more than 90 days. Medians are null when no qualifying events exist in the analysis window — absence is not the same as zero.

get_pr_health — PR throughput and queue age

How effectively the project merges or closes contributions, and how old the oldest open PR is.

jsonc
{  "repo": "honojs/hono",  "verdict": "Healthy",  "openPrs": 6,  "mergedPrs": 220,  "closedUnmergedPrs": 30,  "mergeRate": 0.88,  "medianTimeToMergeDays": 1.2,  "oldestOpenPrDaysAgo": 14,  "fetchedAt": "2026-06-01T00:00:00.000Z"}

mergeRate excludes still-open PRs from the denominator. It is null when no PRs have been decided in the analysis window.

get_contributor_insights — concentration and bus-factor risk

How many contributors the project has and whether commit activity is dangerously concentrated.

jsonc
{  "repo": "honojs/hono",  "verdict": "Healthy",  "totalContributors": 312,  "topContributorShare": 0.28,  "topTwoContributorShare": 0.41,  "busFactorFlag": false,  "fetchedAt": "2026-06-01T00:00:00.000Z"}

busFactorFlag is true when the top contributor owns more than 50% of commits, or the top two together own more than 80%. totalContributors is the repository's all-time contributor count (sourced from GitHub's stable /contributors list endpoint) — it is not a 90-day-active count.

Verdict thresholds

Verdicts come from pinned, transparent thresholds — same repo state plus same config always yields the same verdict.

DimensionHealthyModerateAt-RiskNotes
Activitylast commit ≤ 30d30–180d180–365dLikely abandoned if > 365d
Issuesmedian first response ≤ 7d and staleOpenRatio ≤ 0.40≤ 30d and ≤ 0.60otherwisenull median → judged on staleOpenRatio alone
Pull requestsmergeRate ≥ 0.60 and oldestOpenPr ≤ 30dmergeRate ≥ 0.30 or oldestOpenPr ≤ 90dotherwisenull mergeRate → judged on oldestOpenPr alone
ContributorstotalContributors ≥ 3 and not bus-factor1–2 contributors, or ≥ 3 with bus-factor0 contributorssolo active maintainer → at most Moderate

Overall verdict is activity-dominant, evaluated top-down (first match wins):

  1. Likely abandoned — activity is Likely abandoned (no commits in > 365 days).
  2. At-risk — activity is At-Risk, or any two of {issues, PRs, contributors} are At-Risk.
  3. Actively maintained — activity is Healthy and no dimension is At-Risk.
  4. Slowing — everything else (e.g. activity Moderate, or Healthy activity with one At-Risk dimension).

Input

The server boots with no input required (a Standby constraint — all fields are optional in the schema so the container never crash-loops on startup). In practice, you must provide a GitHub token for the Actor to return verdicts rather than rate-limit errors.

FieldTypeDefaultDescription
githubTokenstring (secret)—Effectively required. GitHub's GraphQL API (this Actor's primary data source) rejects unauthenticated requests, and on Apify's shared IPs the anonymous REST quota (~60 req/hour per IP) is typically already exhausted by other traffic. A token gives 5,000 req/hour and enables private-repo analysis.
cacheTtlMinutesinteger20How long a repo's fetched payload is reused before refetching. Lower = fresher data; higher = fewer GitHub API calls.
analysisWindowDaysinteger90Trailing window (30–365 days) over which issue and PR activity is measured.

GitHub token setup. A classic token with no scopes is sufficient for public repositories. A fine-grained token scoped to specific repos works for private-repo analysis. For Standby deployments the recommended approach is to set a GITHUB_TOKEN environment variable on the Actor (stored as a secret) rather than pasting the token into the input field — it persists across restarts. Both paths work; both are stored as secrets and never exposed in logs.

Output

Each tool returns a single structured JSON object (shown above in each tool's section). Responses are deterministic — same repo state plus same config always produces the same verdict. Each response includes a fetchedAt timestamp reflecting when the underlying GitHub payload was pulled. A cached read returns the same timestamp as the original fetch for that TTL window.

Data fields reference

FieldWhat it tells you
overallVerdictThe headline: Actively maintained / Slowing / At-risk / Likely abandoned
lastCommitDaysAgoDays since the most recent commit; null if no commits found
commits30d / commits90d / commits365dCommit counts over trailing 30, 90, and 365-day windows
momentumTrendWhether commit rate is accelerating, steady, or declining (30d vs 90d rate)
medianFirstResponseDaysMedian time (days) until a maintainer first responds to a new issue
staleOpenRatioFraction of open issues that have had no activity in 90+ days
mergeRateMerged PRs ÷ (merged + closed-unmerged) — excludes still-open PRs
oldestOpenPrDaysAgoAge of the oldest PR that is still open
totalContributorsAll-time contributor count (not a 90-day-active figure — see FAQ)
busFactorFlagtrue when commit activity is dangerously concentrated on 1–2 people

Pricing

This Actor runs in Standby mode and is billed for the compute used while warm and serving requests. Health reads are lightweight — each repo's GitHub data is fetched once, cached (default 20 minutes), and shared across all five tools. Drilling into multiple dimensions for the same repo costs a single upstream fetch.

A GitHub token is required in practice (see Input) and adds no extra Apify cost.

Tips

  • Start with get_repo_health for the headline verdict, then call a dimension tool only when you need detail — they all share the same cached payload.
  • Raise cacheTtlMinutes when triaging a long list of repos in a batch to minimize GitHub API calls. Lower it when you need fresh reads.
  • Set GITHUB_TOKEN as an environment variable on the Actor rather than in the input field — it persists across Standby restarts without re-supplying input.
  • Adjust analysisWindowDays (30–365) to match how recent you need issue and PR signals to be. A shorter window surfaces recent trajectory; a longer window averages over a steadier baseline.

How it works

  1. An MCP client sends a tool call (e.g. get_repo_health) with a repo argument.
  2. The server checks an in-memory LRU cache. On a miss, it fires a single GraphQL query to GitHub's API (plus a REST call for contributor data) and caches the raw payload.
  3. Pure metric-computation functions derive counts, medians, and ratios from the payload — no further network calls.
  4. Verdict functions compare each metric against the pinned thresholds in config.ts and return a dimension verdict.
  5. The overall verdict is composed from the four dimension verdicts using the activity-dominant rule above.
  6. The full result — verdict, per-dimension breakdown, raw metrics, and fetchedAt — is returned to the MCP client.

All five tools share step 2's cached payload. The verdict logic is deterministic and clock-injected (testable without network).

Works well with

Part of a small slate of agent-focused Apify Actors:

  • SERP Topic Gap Monitor — finds topic gaps in search-result coverage and produces scored gap reports.
  • Changelog Triage Agent — monitors product changelogs across services, classifies each new entry as BREAKING / WARNING / INFO, and delivers a de-duplicated triage report so teams catch deprecations before they bite.
  • Docs MCP Server — an MCP server giving AI assistants queryable access to framework documentation (Next.js, React, Tailwind, TypeScript, Prisma).

FAQ and support

Does it work on private repositories? Yes — provide a githubToken with read access to the repo.

Is the verdict subjective or configurable? No. Every verdict comes from the pinned thresholds documented above. Same repo state always yields the same verdict. The raw metrics are returned alongside it so you can audit every call.

Why is totalContributors not a 90-day-active count? GitHub's per-period contributor stats endpoint (/stats/contributors) is unreliable on a cold cache — it returns 202 and rarely warms within a request cycle. Contributors are sourced from the stable all-time /contributors list instead. The field reflects repository-lifetime contributor breadth, not recent activity.

What does the rationale field contain? It names the activity verdict and the weakest non-activity dimension, e.g. "Overall: activity is Healthy; weakest dimension is issues (Moderate)." It's designed for agent logs and human audit trails, not user-facing copy.

The Actor returned a rate-limit error — what do I do? Add a GitHub token. See Input. A classic token with no scopes is free and takes under a minute to create at github.com/settings/tokens.

Found a bug or want a feature? Open an issue on the Actor's Issues tab. Custom variations are available on request.

License

Copyright © 2026 Joe Slade.

Licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). You're free to use, study, modify, and self-host this software; if you run a modified version as a network service, the AGPL requires you to offer your modified source to its users under the same license. For a commercial license not subject to the AGPL's network-copyleft, contact the author.

來源:README.md,提交 a82a60b

工具

0
該伺服器需要 API 金鑰等憑證,因此 SourceWeft 無法在沒有憑證的情況下讀取其工具,也未收錄。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

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

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