
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 分
请在仓库或注册中心条目中声明许可证。