
Codesearch
io.github.SK-DEV-AI由 GitHub 账号 SK-DEV-AI 发布v1.0.1更新于 Oct 24, 2026
Code, package, docs, paper and vulnerability search. 17 tools, keyless lanes.
概览
本地 MCP 服务器,让助手跨多个来源搜索代码、软件包、文档、论文、漏洞和问答社区。
- 可以做什么
- 在已索引的 npm、PyPI、crates 依赖中搜索代码、文档和符号,并列出或读取其文件
- 分析 GitHub 仓库(元数据、代码质量、wiki 架构),在仓库内搜索、查看文件树和读取文件
- 查询软件包注册表的版本、依赖与安全公告,获取含变更日志和升级审查的复合包情报
- 查询漏洞、许可证和最新版本,并附带 NVD 信息
- 获取文档、Stack Overflow 回答、Hacker News 讨论和学术论文
- 为结果列表补充全文内容、去重并重排,另提供连通性检查
- 适用场景
- 适合需要在一处完成代码、软件包、文档、论文和漏洞调研的场景,例如评估某个依赖、审查升级,或快速了解一个陌生仓库。
- 运行要求
- 以 Python 包形式通过 stdio 在本机运行(需 Python 3.14+),可从 PyPI 安装或用 Docker 运行。许多通道无需密钥;可选密钥如 GITHUB_TOKEN、CONTEXT7_API_KEY、TAVILY_KEYS、S2_API_KEY、SE_API_KEY、SOFA_KEY、LI_KEY、OSS_TOKEN、FIRECRAWL_KEYS、NV_KEY 和 GROQ_API_KEYS 可提高速率限制或启用额外通道。需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Codesearch,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
codesearch MCP Server
mcp-name: io.github.SK-DEV-AI/codesearch
Companion agent skills: SK-DEV-AI/skills · npx skills add SK-DEV-AI/skills
Code, package, docs, and paper search MCP server. Per-package source navigation (npm/PyPI/crates), per-repo intelligence (GitHub URL or owner/repo), Q&A communities, vulnerability data, documentation, and academic papers — with embedding dedup and a local cross-encoder reranker.
Tools (17)
- analyze — Start here for unfamiliar repos: GitHub metadata + code quality + wiki architecture in one call (10–15s).
- search_all — Broad multi-source discovery (Context7, GitHub, DeepWiki, CodeWiki, SO, HN, Libraries.io, npm, DevDocs, Semantic Scholar, Tavily…). For surgical single-source work call the tool below directly.
- code_search — Search code/docs/symbols across indexed dependencies (
target=npm:express). npm/PyPI/crates only — for GitHub repos usesearchcodeoranalyze. - code_files / code_read — List files / read a file in an indexed dependency by package spec.
- searchcode — Per-repo intelligence:
analyze(overview),search(code within the repo),findings(quality issues),file_tree,get_file. Needsrepositoryfor every action. Free, no auth. - wiki — Repo architecture Q&A via DeepWiki + CodeWiki. Single repo (
owner+repo) or up to 10 repos (repos). - search_package — Raw registry queries: versions, dist-tags, deps.dev graphs, advisories (
version='latest'OK). For composite intelligence usepkg. - pkg — Composite package intelligence: metadata, changelog, upgrade review (vulns + changelog + deps diff), file list/read.
- search_libraries — Libraries.io metadata and source rank. Compare dependency candidates, find the repo behind a package.
- vulns — Sonatype Guide + keyless OSV.dev fallback:
scan(needs platform+name+version),detail(needs vuln_id; enriched with NVD CVSS/CWE/references),latest_version/license(need purl). - docs — Docs with smart fallback (Context7 → ReadTheDocs → llms.txt → DevDocs); then
fetch(url)ordevdocs_fetch_contentfor full pages. - so_search — Stack Overflow:
stackexchange(authoritative resolved answers) orsofa(fresher agent content, needsSOFA_KEY). - hn — Hacker News discussion and sentiment (search, stories, items, users).
- papers — Academic papers. Prefer
action=search(S2 → arXiv → OpenAlex → CORE fallback chain);arxiv_searchis single-source and rate-limited. - enrich — Fetch full content for a result list from any search tool, dedup + rerank.
- ping — Connectivity check. Use before expensive calls when uncertain.
Setup
Requires Python 3.14+.
Point your MCP client at run (stdio):
API keys (run)
Install from PyPI
The codesearch-mcp console script speaks MCP over stdio:
Docker
Keys are passed at run time, never baked in: -e GROQ_API_KEYS=....
Heavy extras: docker build --build-arg EXTRAS="[all]" -t codesearch-mcp .
Notes
- Reranker (optional, local): shared with the websearch server — one cross-encoder worker over a Unix socket. Without it, results return unranked; everything still works.
- Caching: per-source file caches with TTLs; repeat queries are cheap.
- Safety: all user-URL fetches are SSRF-validated (private-IP blocking + redirect-hop revalidation).
来源:README.md,提交 022c3cc
工具
0版本历史
1- v1.0.1最新Oct 23, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分