DSH 学术检索工具:四个模型可用工具 paper_search / paper_get / paper_citations / book_search,覆盖 OpenAlex、arXiv、Crossref、Semantic Scholar、PubMed 五个库,并用 Unpaywall 解析开放获取 PDF。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:Cjrrrrrrrr/dsh-plugins#path:/packages/dsh-scholar
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Academic search tools for DeepSeek Harness (dsh).
Adds four model-facing tools for literature work. Every source is a public, free API — no key required to start.
| Tool | What it does |
|---|---|
paper_search |
Cross-source paper search returning title, authors, year, venue, citation count, DOI, open-access PDF link and abstract |
paper_get |
Single paper by DOI / arXiv id / PMID via exact endpoints (not fuzzy search); falls back to Unpaywall for a legal free full text when the paper is not obviously open |
paper_citations |
Citation graph: cited_by (who cites it — follow-up work) or cites (what it cites — foundational work) |
book_search |
Books and book chapters |
Sources
| Source | Scope | Notes |
|---|---|---|
| OpenAlex | 250M+ works, all disciplines | Richest metadata, carries open-access links and abstracts |
| arXiv | Physics, maths, CS, AI preprints | Fastest to update |
| Crossref | Authoritative DOI registry | Publisher-side metadata; used for exact DOI lookups |
| Semantic Scholar | Semantic search + citation graph | Rate-limits hard without a key (HTTP 429 in testing) |
| PubMed | Biomedicine | Official NLM E-utilities, includes abstracts |
Chinese-language literature: CNKI / Wanfang / VIP have no public API. Chinese journals that OpenAlex or Crossref index (under their English metadata) are reachable.
Install
dsh plugin add github:Cjrrrrrrrr/dsh-plugins#path:/packages/dsh-scholar
Requires DSH 0.1.0-rc.1 or newer.
Configure
Add a config block to the plugin's row in your profile patch:
- id: scholar
name: '@local/dsh-scholar'
config:
mailto: you@example.com # your email, see below
semanticScholarApiKey: '' # optional; fixes 429s
maxAbstractChars: 500 # cap on the abstract injected into context
mailto — read this before using paper_get on a paywalled paper
OpenAlex and Crossref join their "polite pool" when you identify yourself, and
Unpaywall requires a real address: a placeholder one is rejected with
HTTP 422: Please use your own email address.
The built-in default is a GitHub noreply address, which Unpaywall also rejects.
So:
- The other three tools work with no configuration at all.
- For open-access resolution, set
mailtoto your own email. When it is missing or rejected,paper_getreturns an explicit error telling you to set it — it does not silently skip the lookup.
Known limitations
| Limitation | What happens | Workaround |
|---|---|---|
| Unpaywall needs a real email | Placeholder addresses get HTTP 422 | Set mailto to your own address |
| Semantic Scholar rate limits | HTTP 429 without a key (also seen returning in 1.0s) | Request a key and set semanticScholarApiKey |
| arXiv is occasionally slow | Requests can take 30s+ under load | Timeout is 60s with one automatic retry |
| Open Library is not used | It was unreachable in testing | Book search goes through OpenAlex (`filter=type:book |
Non-English queries work better translated to English first.
Implementation notes
- IPv4 is forced. On Windows with IPv6, Node's
fetchtoexport.arxiv.org:443fails withConnect Timeout Errorwhile curl (IPv4) succeeds, so the network layer usesnode:httpswithfamily: 4, its own timeout, redirect following and cancellation. - DOIs use exact endpoints —
api.crossref.org/works/{doi}andapi.openalex.org/works/https://doi.org/{doi}. A?query=search matched the wrong paper for a well-known DOI in testing. - Response streams carry an
errorhandler; without one, a mid-transfer reset surfaces as an uncaught exception in the host. - Cross-source de-duplication normalises by DOI and by title, so one paper appearing in both OpenAlex and Crossref is not reported twice.
- One failing source never fails the call — the error is reported back to the model so it can retry elsewhere.
Layout
lib/sources.js data layer: pure functions, one per source, testable without the host
lib/index.js host half: registers the four tools
cordis.patch.yml the bundle row
License
MIT
链接
同类插件
Tencent/WeKnora#dsh-weknora★ 38526
把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己带引用的 RAG 或 ReAct agent 回答(含可续聊的 session id)。
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37266
dsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
yikart/AiToEarn#dsh-plugin-aitoearn★ 28921
帮你生成文案/图文/短视频,一键分发抖音、快手、小红书、公众号、bilibili、Facebook、TikTok 等海内外平台,覆盖自媒体运营从内容创作,内容发布到内容变现全链路。
superdesigndev/treg★ 9983
给 Agent 的工具目录:按「要做的事」检索约 2,600 个外部接口(SEO 与 SERP、外链、社交、人物与公司信息补全、广告库、抓取),查看参数与单次调用价格后直接调用,凭据由服务端注入。附带技能,MCP 行在未设置 TREG_TOKEN 前保持禁用。
T-Auto/dsh-ops★ 6095
为 Windows 的 DSH 提供 bash、PowerShell 7 及 Rust 高性能工具,减少 token 消耗。
Hithink-Tech-Org/Financial-API#hithink-finance★ 4745
在 DeepSeek Harness 中查询同花顺金融数据、在对话中查看图表,并保存可刷新的看板。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。