Faqmine

io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 3, 2026

从已关闭的 issue 中挖掘重复出现的问题;起草一份包含计数和链接的常见问题解答。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Mine supplied closed issues for repeated questions; draft an FAQ with counts and links.

已验证STDIO仅桌面

概览

Faqmine 的本地 MCP 服务;无需登录;STDIO。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Faqmine,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

faqmine

Support queues and issue trackers fill up with the same questions asked over and over, each time as a separate closed issue with slightly different wording. faqmine finds those repeats for you. You supply the closed issues — each one's title and link, plus its labels if you have them — and faqmine groups the ones that are really the same question and drafts an FAQ from the groups: for every repeated question, the question text, how many times it was asked, and the links to each asking. It invents no answers. The question, the count, and the links all come from the issues you supplied, verbatim, so the draft can go straight into triage without anyone having to fact-check generated prose.

Two titles count as the same question when their question keys match. The key is built by lowercasing the title, splitting it into tokens on every run of non-alphanumeric characters, discarding a pinned list of stopwords (a, an, the, is, are, was, were, do, does, did, how, what, why, when, where, which, who, can, could, should, would, i, we, you, it, to, of, in, on, for, with, and, or, not, no, my, me, this, that, there, here), keeping each remaining token once, sorting the survivors, and joining them with single spaces. Word order, case, and punctuation therefore do not matter: "How do I reset my password?" and "Password reset — how?" share the key password reset and cluster together. A title made only of stopwords and punctuation has an empty key and belongs to no cluster at all.

A cluster becomes an FAQ entry once it reaches min_count issues (2 unless you say otherwise). The entry's question is the title of the cluster's first issue in the order you supplied them, echoed exactly; its urls are the cluster's links in that same order; and its labels are the distinct union of the cluster's labels, sorted ascending. Entries are ordered by count, largest first, with ties broken by where the cluster's first issue appeared in your input. The counts report how many issues you supplied, how many entries were drafted, how many issues landed in those entries, and how many were left unclustered — the ones in below-threshold clusters plus the empty-key ones.

Malformed input — a missing or empty issue list, an item that is not an object, a missing, empty, or non-string title or url, a labels value that is not an array or that holds an empty or non-string entry, or a min_count below 2 or not an integer — is a validation error naming the offending path, with no partial result. Unknown extra fields are ignored.

CLI

bash
npx @reneturcios/faqmine mine --input args.jsonnpx @reneturcios/faqmine --version

args.json contains the full arguments object:

json
{  "issues": [    {      "title": "How do I reset my password?",      "url": "https://example.com/issues/1",      "labels": ["account", "auth"]    },    {      "title": "Password reset — how?",      "url": "https://example.com/issues/2",      "labels": ["auth"]    },    {      "title": "Export to CSV fails",      "url": "https://example.com/issues/3"    }  ]}

The FAQ draft is printed as JSON:

json
{  "entries": [    {      "question": "How do I reset my password?",      "count": 2,      "urls": [        "https://example.com/issues/1",        "https://example.com/issues/2"      ],      "labels": ["account", "auth"]    }  ],  "counts": {    "issues": 3,    "clusters": 1,    "clustered_issues": 2,    "unclustered": 1  }}

Exit codes: 0 on success, 1 on a runtime error (including an unreadable or invalid input file, or invalid input), 2 on a usage error.

MCP server

bash
npx -y @reneturcios/faqmine mcp

MCP client config:

json
{  "mcpServers": {    "faqmine": {      "command": "npx",      "args": ["-y", "@reneturcios/faqmine", "mcp"]    }  }}

Tools

  • mine_faq — Mine caller-supplied closed issues for repeated questions and draft FAQ entries: the question (a supplied issue title, verbatim), its count, and the issue links. No answers are invented.

    • issues (array, required, at least 1 item) — the closed issues to mine, in the caller's order; each item:
      • title (string, required, non-empty) — issue title
      • url (string, required, non-empty) — issue link
      • labels (array of strings, optional) — issue labels; absent means none
    • min_count (integer, optional, at least 2, default 2) — minimum cluster size for an FAQ entry

    Returns {entries, counts}, where entries holds one {question, count, urls, labels} per included cluster and counts is {issues, clusters, clustered_issues, unclustered}.

Docker

bash
docker run -i ghcr.io/cloudcorprecords/faqminedocker run --rm -v "$PWD:/w" ghcr.io/cloudcorprecords/faqmine mine --input /w/args.json

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # tsx --test test/*.test.ts (pure local, no network)npm run dev     # run the CLI from source

License

MIT — Copyright (c) 2026 Rene Turcios

来源:README.md,提交 e7d207e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Nov 3, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分