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 分

    請在儲存庫或註冊中心條目中宣告授權條款。