
GitLumen MCP
io.github.gitlumen-team由 GitHub 帳號 gitlumen-team 發布v1.0.0更新於 Oct 24, 2026
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
概覽
GitLumen MCP 篩檢公開 GitHub 儲存庫與拉取請求,向 AI 助理回傳風險圖、發現項目與可合併性訊號。
- 可以做什麼
- 篩檢公開 GitHub 儲存庫或拉取請求網址,產生風險分數、分類風險圖、發現項目與可合併性訊號,支援精簡、Markdown 或 JSON 輸出。檢視儲存庫或 PR 結構,而不產生完整風險報告。依報告 ID 取得先前儲存的報告,或列出已存報告。說明此伺服器的審查流程,以及後續鏈上付款階段如何接入。
- 適用情境
- 適合讓助理對公開 GitHub 儲存庫或拉取請求快速給出風險與可合併性判斷,例如在審查或合併第三方程式碼之前。也適合在審查對話中調閱先前的篩檢報告。
- 執行需求
- 遠端端點,透過 streamable HTTP 存取,需在 Authorization 標頭提供 bearer 權杖。README 另描述本機 Node.js 20+ 版本,需要連線 GitHub 的網路,可選用 GITHUB_TOKEN 提高速率上限或存取私有儲存庫。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 GitLumen MCP,將其新增到工作區。
- 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.gitlumen-team%2Fgitlumen-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"gitlumen": {
"type": "http",
"url": "https://mcp-github-screen.gitlumen.com/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
GitLumen MCP Server - Version 1.0.0
GitLumen MCP Server is a Node.js project that exposes a GitLumen-style review intelligence layer through the Model Context Protocol (MCP), so AI agents can call it as tools.
This project focuses on:
This project intentionally does not execute onchain transactions yet and does not use Base MCP send_calls. A Base MCP custom plugin can be attached in Path 2 after this intelligence server is ready.
Features
- MCP stdio server that can be used by Claude Desktop, Cursor, Claude Code, or other MCP clients.
- Screens public GitHub repository URLs.
- Screens GitHub Pull Request URLs
/pull/<number>. - No GitHub token required for small/medium public repositories.
- Optional
GITHUB_TOKENfor higher rate limits and private repositories (depending on token scope). - Local analyzer: source code is not sent to external LLMs.
- Produces:
- risk score
- category risk map
- findings
- review chapters
- decision questions
- merge-readiness signal
- recommended next actions
- Stores reports locally in
.gitlumen-mcp/reports/*.json. - Includes a CLI for local testing without an MCP client.
Project Structure
Requirements
- Node.js 20+
- npm
- Internet access to fetch metadata/files from GitHub
Check Node version:
If your version is Node 18 or below, upgrade to Node 20+.
1. Install Dependencies
Open the project directory:
Install dependencies:
2. Optional Env Setup
Copy env example:
Fill optional values:
For public repositories, GITHUB_TOKEN can be empty. A token is still recommended to avoid low GitHub rate limits.
3. Run Doctor
Expected output:
4. Test Screening via CLI
Offline test without GitHub network
This command generates a report from a local fixture so you can verify analyzer and report-store behavior without GitHub connectivity.
Screen a public repository
Screen a public PR
Available scopes
Examples:
After completion, CLI prints a markdown report and saves JSON to:
5. Read Previous Reports
Take a reportId, then:
Or full JSON:
6. Run as MCP Server
The MCP server uses stdio, so it is normally started by an MCP client instead of being run manually.
To debug MCP protocol, use MCP Inspector:
Then open the Inspector URL printed in terminal.
Optional: Run as Remote MCP HTTP Server (for VPS/PM2)
This project also includes a Streamable HTTP transport endpoint at /mcp.
Run locally:
Environment variables:
MCP_AUTH_TOKENis optional but strongly recommended for production.- When set, clients must send
Authorization: Bearer <token>.
Health check:
Production deployment guide:
- PM2 example config: examples/ecosystem.pm2.example.cjs
Client configuration templates (Copilot / VS Code / Codex):
- docs/CLIENT_CONFIG_TEMPLATES.md
- VS Code remote endpoint template: examples/vscode_mcp.gitlumen.remote.example.json (copy into
.vscode/mcp.json, which is gitignored)
7. Install in Claude Desktop
Open Claude Desktop config.
Common location:
macOS
Windows
Add:
Replace /ABSOLUTE/PATH/TO/... with your real path.
Restart Claude Desktop.
Example prompt:
8. Install in Cursor
Create or edit Cursor MCP config (format may vary by Cursor version):
Restart Cursor, then ask the agent to use GitLumen tools.
Available MCP Tools
screen_repository
Screen a repository or PR.
Input:
For PR:
Output modes:
get_review_report
Fetch a previous report by reportId.
list_review_reports
List local reports.
get_repository_structure
Get repository/PR structure without generating a full risk report.
explain_gitlumen_mcp_flow
Explain Path 1 flow and how Path 2 Base MCP can be attached later.
How the Analyzer Works
The local analyzer reads:
- repository metadata
- default branch
- recursive tree
- selected source/config files
- PR metadata and changed files (for PR URLs)
Then it generates signals:
- language/framework detection
- dependency surface
- lockfile presence
- lifecycle script risk
- test presence
- CI presence
- Dockerfile/container risk
- possible hardcoded secret patterns
- dynamic code execution
- command execution pattern
- SQL interpolation pattern
- GitHub Actions supply-chain pattern
- merge-readiness estimate
Risk categories:
Severity:
Example Compact Report Output
Path 1 vs Path 2
Path 1 (this project)
Path 2 (future)
This project is intentionally standalone for Path 1 first. Later, Path 2 can read reportId and connect it with onchain payment/reward/reputation flows.
Troubleshooting
Unable to reach GitHub API or fetch failed
Check internet connection, DNS, proxy/VPN, or retry. For offline verification:
GitHub API 403 rate limit exceeded
Add GITHUB_TOKEN in .env or MCP client config.
Only github.com repositories are supported
This prototype does not support GitLab/Bitbucket yet. Add a new adapter in src/services/github.js or create a separate service.
MCP client cannot see tools
Check:
argspath is absolute.npm installhas been run.- Node 20+ is installed.
- MCP client was restarted.
- Verify with
npm run inspect.
Report is not saved
Run:
Ensure .gitlumen-mcp/reports is writable.
Important Files for Future Changes
Add a new detector
Edit:
Change repository fetching behavior
Edit:
Replace local analyzer with hosted GitLumen API
Edit:
Potential production direction:
Security Notes
- Do not commit
.env. - Do not hardcode GitHub tokens in publicly shared config.
- For private repositories, use least-privilege fine-grained GitHub tokens.
- Local reports may contain paths, findings, and snippet metadata. Store them securely for private repositories.
License
MIT
來源:README.md,提交 81e5132
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 75%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具必需15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。