Skip to main content
Glama
skyzhao1223/wheel-hub

skyzhao1223/wheel-hub

⚙️ wheel-hub

别再重复造轮子。在写一行代码之前,先搜索、评分并采用最好的开源解决方案。

wheel-hub 是一个 MCP 服务器 + CLI,它让 AI 编程代理和人类都先检查开源生态:给定一个功能或问题,它会找出已有的解决方案,并根据流行度、增长势头、维护情况和信任度进行评分,然后告诉你应该 采用、调整、检查 还是 避免。

为什么

每个开发者(以及每个 AI 代理)都会从头开始重写认证、调度器、爬虫和管理后台——不是因为不存在更好的轮子,而是因为没有人会先去寻找。wheel-hub 让“先搜索”成为默认做法。

Related MCP server: reuse-before-generate

安装

MCP 服务器(适用于 Claude Code、opencode、Cursor 等)

npx @wheel-hub/mcp

Claude Code 示例:

claude mcp add wheel-hub --env GITHUB_TOKEN=ghp_xxx -- npx @wheel-hub/mcp

通用 JSON 配置示例(适用于大多数 MCP 客户端):

{
  "mcpServers": {
    "wheel-hub": {
      "command": "npx",
      "args": ["@wheel-hub/mcp"],
      "env": { "GITHUB_TOKEN": "ghp_xxx" }
    }
  }
}

注意: MCP 客户端只会把白名单中的环境变量转发给服务器。 请始终通过客户端的 env 配置显式传入 GITHUB_TOKEN,否则服务器 将以 60 次/小时的未认证状态运行,并很快触发速率限制。

然后只需对你的代理说:“在实现之前,先用 wheel-hub 检查一下后台任务调度已有哪些现成方案”。

CLI(供人类使用)

# one-off
npx @wheel-hub/cli find "SSO login" --lang typescript
npx @wheel-hub/cli evaluate ollama/ollama

# or install for the `wheel-hub` command
npm i -g @wheel-hub/cli
wheel-hub find "SSO login"

工具

工具

描述

search_oss

在 GitHub 上搜索某个问题的解决方案

evaluate_repo

对单个仓库进行评分(0–100),并给出结论与理由

compare_alternatives

查找替代方案并逐一评估——在编写新代码之前运行它

评分模型

综合评分(0–100)由四个维度加权而成:

  • 流行度(30%)——star 总量(对数刻度)

  • 增长势头(25%)——每日 star 增长 + 推送的新近程度

  • 维护情况(30%)——提交新鲜度 + issue 积压比率

  • 信任度(15%)——许可证宽松程度、归档状态

判定:≥75 adopt · ≥55 adapt · ≥35 inspect · <35 / archived avoid

配置

GITHUB_TOKEN(可选)——将 GitHub API 速率限制从 60 次/小时提高到 5,000 次/小时。强烈建议在实际使用中配置;如何传入请参阅上面的 MCP 配置。

软件包

包

描述

@wheel-hub/core

GitHub 聚合 + 评分引擎

@wheel-hub/mcp

面向 AI 代理的 MCP 服务器

wheel-hub

终端 CLI

路线图

  • 为 NOASSERTION 仓库提供许可证回退:自行解析许可证文件(例如内核的 COPYING 声明了 GPL-2.0,但 GitHub 将其归类为“Other”)

  • 将 Awesome 列表挖掘作为辅助信号来源

  • 通过 OSSInsight 数据生成 star 历史曲线

  • wheel-hub watch——当你的技术栈中的依赖过时时收到通知

  • 评分持久化 + 每周摘要

许可证

MIT

Available Tools

3 tools
compare_alternativesA

Search for alternatives to a feature/tool and evaluate each one. Use before writing new code to avoid reinventing the wheel. Returns a ranked verdict table.

Inputs: query (required), top, language.

evaluate_repoA

Score a single GitHub repository (0-100) on popularity, momentum, maintenance and trust, with an adopt/adapt/inspect/avoid verdict.

Inputs: repo (required).

search_ossA

Search GitHub for high-quality open-source solutions before implementing a feature. Returns ranked candidates with stars and descriptions.

Inputs: query (required), limit, language, min_stars.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation3/5

    evaluate_repo clearly targets a single known repo, but search_oss and compare_alternatives heavily overlap — both search GitHub for solutions before coding and return ranked candidates/verdicts. An agent could easily pick the wrong one since the boundary (finding a solution vs. finding alternatives to something) is subtle.

    Naming Consistency4/5

    All three follow a verb_ prefix pattern (evaluate_repo, search_oss, compare_alternatives), which is predictable. Minor inconsistency in the noun suffixes (repo vs. oss vs. alternatives) keeps it from being fully uniform.

    Tool Count4/5

    Three tools is a little thin but well-scoped for a narrow 'avoid reinventing the wheel' purpose. Each tool earns its place in the discover-then-evaluate flow.

    Completeness4/5

    The surface covers the core lifecycle: search for candidates, compare alternatives, and score a specific repo. Minor gaps like fetching detailed repo metadata or readme content exist, but core workflows are covered.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A local MCP server that gives AI agents access to developer tooling — GitHub (read-only), documentation search, and web research — via stdio transport.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server that helps coding agents research and prepare GitHub contributions by gathering repository guidance, related work, code context, and validation evidence into a local SQLite corpus, without ever writing to GitHub.
      79 npm
      37
      MIT