
Codescout
io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 3, 2026
按相关性和时效性对提供的代码库搜索结果排序,并结合文件所有者信息。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
Rank supplied codebase search hits by relevance and recency, with file-owner context.
概览
Codescout 的本地 MCP 服务;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
安装
在 SourceWeft 中
- 打开 控制台中的 Codescout,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
codescout
A codebase search is only half the job: once a search returns dozens of files, someone still has to decide which ones to open first. codescout makes that decision with one fixed, inspectable rule. You hand it the hits you already have — for each one, the file it is in, how many matches the file holds, how many days have passed since the file last changed, and, when you know it, who owns the file — and it hands back the hits ranked, best first, each with its score and the owner context attached. It runs no search of its own and touches no index; the ranking rule is the whole tool.
Every hit is scored the same way: matches * 100 - last_modified_days. A hundred points per match means
relevance dominates, while each day of age quietly
drags a file down — an old file with a single match can
score below zero, and that negative score is reported
as-is rather than clamped. Ranking follows the score,
and ties are settled in a fixed order: more matches
first, then the more recently changed file, then the
path in code-unit order. Because the rule never
changes, the same set of hits always produces the same
ranked list, whatever order you supplied them in.
Only the top of the list comes back: limit caps how
many results are returned and defaults to 10. Each
returned entry carries a rank, its 1-based position
in the returned list, alongside the echoed path,
matches, last_modified_days, and owner. Ownership
has one pinned judgement call: an owner that is absent,
empty, or only whitespace means the file is unowned,
and its owner is reported as null; any other owner
string is echoed exactly as supplied. The counts report
how many hits went in and how many came back.
Malformed input — a missing or empty hit list, a hit
that is not an object, a missing, empty, or non-string
path, a matches count that is missing, fractional,
or below 1, a last_modified_days that is missing,
fractional, or negative, a non-string owner, or a
limit below 1 — is a validation error naming the
offending path, with no partial result. Two hits for
the same path are an error naming the duplicated path.
Unknown extra fields are ignored.
CLI
args.json contains the full arguments object:
The ranked list is printed as JSON:
The third hit scores 1 * 100 - 240 = -140, so the
limit of 2 leaves it out entirely.
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
MCP client config:
Tools
-
rank_search_results— Rank caller-supplied codebase search hits by a pinned relevance and recency score, with file-owner context attached.hits(array, required, at least 1 item) — the search hits to rank, in the caller's order; each item:path(string, required, non-empty) — file the hit is inmatches(integer, required, at least 1) — number of matches in the filelast_modified_days(integer, required, at least 0) — days since the file last changedowner(string, optional) — file owner; absent, empty, or whitespace-only means unowned
limit(integer, optional, at least 1, default 10) — maximum results to return
Returns
{results, counts}, whereresultsholds one{path, matches, last_modified_days, owner, score, rank}per returned hit in ranking order (ownerisnullwhen unowned,scoreismatches * 100 - last_modified_days, andrankis 1-based by position in the returned list), andcountsis{hits, returned}.
Docker
Development
License
MIT — Copyright (c) 2026 Rene Turcios
来源:README.md,提交 5758c82
工具
0版本历史
1- v0.1.0最新Nov 3, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分