AI4L Library

io.github.forever-healthy由 GitHub 账号 forever-healthy 发布v0.1.6更新于 Nov 7, 2026

Local Markdown library of the papers an evidence review cites: metadata, abstract and full text

概览

AI 生成的概览

为证据综述所引用的论文、药品说明书和试验记录建立本地 Markdown 文库,让助手能分段阅读并核查这些来源。

可以做什么
  • 每次调用抓取并保存一个被引来源为磁盘文件,只返回简短的 JSON 状态
  • 查询条目的状态或级别,或判断是否缺失,且不触发抓取
  • 读取已存论文的大纲、某一章节,或匹配检索词的段落,并有长度上限
  • 核查某个被引来源是否确实陈述了综述中的某条结论,由决策模型判定
  • 查看文库整体统计、占用空间、撤稿、勘误与配置情况
  • 报告正在运行的包版本与解析出的文库目录
适用场景
适合在梳理证据综述时使用:把其引用的论文、说明书和试验记录保存在本地,让助手查阅章节、资助与利益冲突声明,或检验某个来源是否支持某条结论。
运行要求
以本地 stdio 进程运行,从 npm 包 ai4l-library 安装。需要磁盘上的文库目录,以及访问 PubMed、PMC、DailyMed 和 ClinicalTrials.gov 抓取记录的网络连接。核查工具还需要已配置且能响应的决策模型端点。
安装前请注意
library_add 会向文库目录写入文件并从外部来源抓取,被引 ID 会离开本机。library_verify 会把已存论文文本发送到所配置的决策模型端点。AI4L_LIBRARY_TIERS 等配置变量从环境变量或 .env 文件读取;library_info 只报告每个值的来源,不显示值本身。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

该仓库没有 README。

工具

6

library_add

Build or complete the library entry for one ID and return its status JSON. A drug label (dailymed:<set ID>) is fetched from DailyMed as the current prescribing information, a trial record (nct:<8 digits>, the NCT number's digits; nct:NCT… and a bare NCT… are accepted) from ClinicalTrials.gov as the current record with its posted results; both stored as a full text. A paper is a PMID, or a DOI (doi:10.…): a DOI PubMed indexes is added as its PMID's entry plus a copy under doi: (refreshed on every add of the DOI), one PubMed does not index gets its metadata, funders and update notices from Crossref and its abstract from Crossref, else OpenAlex. For a paper, pubmed gives metadata, abstract and the correction notices (errata, retractions, expressions of concern, updates → citable, comment, corrections); the full-text cascade (pmc, tdm, unpaywall, openalex, user url tiers) is then tried. Idempotent: a full_text entry is returned as is; an abstract entry retries only tiers whose earlier failure was transient and past the cooldown. An entry whose PubMed record is older than refresh_after_days gets the record re-read for new notices; abstract and full text are never touched.

输入参数id必填

library_status

Read-only status of the library entry for one paper ID: the same status JSON as library_add, or level "missing" when there is no entry. Never fetches.

输入参数id必填

library_read

Read one small piece of a stored paper's Markdown — never the whole paper. Without section/query: the outline (headings with word counts; says whether the full text or only the abstract is stored). section: a heading from the outline (case-insensitive substring, e.g. "results") → that section's text, capped at max_chars (default 6000). query: search terms → paragraphs containing all terms, each with its section, best first, at most max_hits (default 5); with no hit, the headings. Full texts converted from JATS XML have a "Declarations" section — funding, conflicts of interest, author notes — so section "Declarations" answers who paid and who declares what in one call; a paper without that section states nothing. For abstract-only entries the status carries coi and funding from PubMed. Call without section/query first, then pick. Reads may run in parallel.

输入参数id必填querysectionmax_hitsmax_chars

library_verify

Is one finding of a review stated by one source it cites — a paper, a drug label (dailymed:…) or a trial record (nct:…)? claim: the finding alone, verbatim from the review, without its citations ("IPSS fell 2.3 points more than placebo in men with ED"); id: one of the papers the review cites for it, which must be in the library (library_add first). A finding cited to three papers is three calls with the same claim. Build the claim as a complete statement: subject, intervention, outcome, number — when splitting a sentence leaves a fragment, restore the subject from the sentence; cut what the review adds around the finding (where it was published, who funded it, "in two trials", "pooled data", the review's own inference or advice after "so"); one number set per claim, so split at semicolons too. Statements about the literature as a whole ("no trial has tested"), recommendations and history are not claims. A claim that names a source, joins two findings, or is a fragment is refused. The server reads the paper and asks a decision model; nothing of the paper enters your context. verdict: "pass" (the paper states it; score is the probability), "fail" (its full text was read and does not state it), "na" (only its abstract is in the library and that does not state it, or only its title), or "error" (claim empty, too short, a fragment, naming a source or compound; paper not in the library; no model configured; model failure). basis: full_text, abstract or title. glyphs_unresolved: symbols the paper's PDF font gave no character for (a minus, ±, ≤ …) — when above 0, a fail may be the font, not the paper. superseded: true when the paper carries a stored correction ("Corrected in PubMed abstract") and the claim uses a figure that correction replaced; the verdict is kept, the figure is out of date; null for a paper without a stored correction.

输入参数id必填claim必填

library_info

Library-wide summary — everything the TUI shows: the library directory and host; the decision model with its endpoint and whether it answers; the entry count and the size on disk (size, size_bytes); per entry type (types) the entries and their levels (full_text, abstract, title) and retractions; entry counts by type and level, counts of retracted and not-citable entries and of entries with errata, expressions of concern and updates, the retrieval tiers in run order and which are off (tiers), the configuration (config: settings, problems, and per variable the source of its value — environment, .env or default — never the value), the decision model behind library_verify (model, endpoint, whether it runs on this machine, and whether it answers right now: ok with the answer time, or the error), the library directory and host. ids=true also lists every entry ID.

输入参数ids

get_version

Get the running ai4l-library MCP server's package name and version, and the resolved library directory. Useful to confirm which build is loaded.

无需输入参数。

版本历史

2
  1. v0.1.6最新Nov 7, 2026
  2. v0.1.1Oct 26, 2026

评分

已满足适用检查项的 65%

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

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。