Sponsored by Deepsite.site

starReport

Created By
hu-qi7 months ago
starReport 是一个用于自动生成和管理指定 GitHub 仓库 star、commit、issue 等活跃度报告的 Node.js 工具,支持 MCP 协议服务,集成大模型智能分析,并可自动推送到飞书群。
Content

starReport

starReport 是一个用于自动生成和管理指定 GitHub 仓库 star、commit、issue 等活跃度报告的 Node.js 工具,支持 MCP 协议服务,集成大模型智能分析,并可自动推送到飞书群。

主要功能特性

  • GitHub 仓库活跃度监控:自动采集指定仓库的 star 数、commit 数、issue 数等数据,支持日报和周报统计。
  • 自动推送报告:可将日报、周报和智能分析结果自动推送到飞书群,方便团队同步。
  • MCP 服务支持:通过 MCP 协议(stdio)对外提供数据查询、报告生成、AI 分析、消息推送等能力,便于集成到自动化平台。
  • 智能分析:集成大模型(如 OpenAI/智谱),对历史数据进行趋势分析、总结和表格可视化,支持自定义问题分析。
  • SSE 实时流式分析:支持 HTTP SSE 实时返回智能分析内容,适合前端实时展示。
  • Webhook 问答:兼容飞书 webhook,支持群聊提问并返回智能分析结果。
  • 定时任务:内置定时任务,每天/每周自动采集数据并推送报告,无需人工干预。
  • 灵活配置:支持通过环境变量和 MCP 配置灵活指定监控仓库、推送方式和大模型参数。

安装方法

  1. 克隆仓库:
    git clone https://github.com/hu-qi/starReport.git
    
  2. 进入项目目录并安装依赖:
    cd starReport
    npm install
    

使用说明

  1. 配置环境变量: 复制 .env.example.env,并根据需要填写相关配置。
  2. 运行项目:
    node index.js
    

MCP Server 配置示例

如需通过 MCP 协议启动服务,可参考如下配置:

{
  "mcpServers": {
    "starReport-server": {
      "command": "npx",
      "args": [
        "-y",
        "star-report",
        "mcp-server"
      ],
      "env": {
        "GITHUB_TOKEN": "<你的 GitHub Token>",
        "FEISHU_WEBHOOK": "<你的飞书 Webhook>",
        "REPORT_REPOS": "<repo1,repo2,repo3>",
        "API_KEY": "<你的 API Key>",
        "API_BASE_URL": "<API Base URL>",
        "API_MODEL": "<模型名称>",
        "DATA_FILE":"<数据存放可读性的文件路径,如path/to/writable/directory/data.json>"
      }
    }
  }
}

如果是本地运行则替换 commandargs

"command": "node",
"args": [
  "index.js",
  "mcp-server"
],
  • command:启动命令,通常为 npx
  • :命令行参数,star-report mcp-server 启动 MCP 服务。
  • env:环境变量配置,需根据实际情况填写。
    • GITHUB_TOKEN:GitHub 访问令牌。
    • FEISHU_WEBHOOK:飞书群机器人 Webhook。
    • REPORT_REPOS:监控的 GitHub 仓库列表,逗号分隔。
    • API_KEYAPI_BASE_URLAPI_MODEL:大模型相关配置。

请勿在公开场合泄露敏感信息。

功能演示

  • MCP tools:

MCP 工具

  • 列举功能:

func-list

  • 飞书消息推送:

feishu-push

许可证

本项目基于 MIT 许可证开源。

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright McpPlaywright MCP server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Serper MCP ServerA Serper MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Amap Maps高德地图官方 MCP Server