File AI

io.github.flyfish-dev由 GitHub 帳號 flyfish-dev 發布v0.1.1更新於 Oct 24, 2026

Agent-ready local document context with stable anchors.

已驗證STDIO僅桌面檔案與儲存知識與記憶

概覽

AI 產生的概覽

唯讀 MCP 伺服器,將本機文件轉為結構化設定檔、錨點、區塊、大綱與可搜尋脈絡,供代理使用。

可以做什麼
File AI 解析本機檔案並快取文件索引,接著提供工具讀取區塊、分段或錨點,搜尋帶來源錨點的快取內容,並取得錨點或查詢附近的脈絡。它也會列出支援的格式與渲染器能力。每個內容區塊都帶有錨點,例如頁碼、投影片、工作表、列範圍或位元組位置,方便代理引用有文件依據的結論。
適用情境
當代理需要理解本機文件(例如 PDF、DOCX、XLSX/CSV、PPTX、EML、Markdown、JSON 或壓縮檔),而不必逆向其內部格式時使用。適合需要穩定引用的文件問答、摘要與檢索情境。
執行需求
以本機 stdio 程序執行,通常透過 npx @flyfish-dev/file-ai 或全域 npm 安裝。需要 Node.js 與 npm。未宣告驗證、環境變數或標頭。也可在本機主機與連接埠上以 streamable HTTP 執行。
安裝前請注意
此伺服器被描述為唯讀,不會修改來源文件。它會讀取本機檔案,因此可能將文件內容暴露給所連接的代理;請考慮指向哪些檔案與目錄。沒有結構化文字擷取器的格式只會回傳盡力而為的中繼資料與明確警告。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 File AI,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

File AI

Read-only document awareness MCP server for agents. File AI uses Flyfish File Viewer core as the source of truth for format recognition, then turns local files into a stable profile, anchors, blocks, chunks, outline, search results, and contextual snippets so an agent can understand document content without reverse-engineering PDF, OOXML, spreadsheet, email, or archive internals.

MCP Registry name: io.github.flyfish-dev/file-ai

Install

Use it directly with npx:

bash
npx -y @flyfish-dev/file-ai

Or install it globally:

bash
npm install -g @flyfish-dev/file-aifile-ai --transport stdio

MCP Client Config

Stdio:

json
{  "mcpServers": {    "file-ai": {      "command": "npx",      "args": ["-y", "@flyfish-dev/file-ai"]    }  }}

Streamable HTTP:

bash
npx -y @flyfish-dev/file-ai --transport http --host 127.0.0.1 --port 8765

Endpoint:

text
http://127.0.0.1:8765/mcp

Tools

  • doc_analyze: parse a local file and cache a document index.
  • doc_read: read blocks, chunks, or anchors from an existing index or path.
  • doc_search: search cached content with source anchors.
  • doc_context: retrieve nearby blocks around an anchor or query.
  • doc_list_formats: list File Viewer core registry formats, all supported extensions, renderer capabilities, and File AI extractor coverage.

Resources

  • doc://{indexId}/profile
  • doc://{indexId}/outline
  • doc://{indexId}/chunks

Supported Files

File AI recognizes formats through @file-viewer/core/headless, currently covering 206 registered extensions. profile.format is therefore aligned with the same renderer selection used by Flyfish File Viewer.

Content extraction is a separate layer. File AI provides structured awareness for text/code/Markdown/JSON, PDF text, DOCX, XLSX/CSV, PPTX, EML, and archive manifests. Other File Viewer renderer-only formats such as CAD, 3D, media, image, geospatial, drawing, ebook, and data assets are still recognized in profile.format; when no structured text extractor exists yet, File AI returns a profile plus best-effort metadata/text and explicit warnings in profile.warnings and profile.extraction.

Every content block carries an anchor such as a page, slide, worksheet, row range, nested path, or byte/text location. Agents should cite returned anchorId values when making document-grounded claims.

Development

bash
pnpm installpnpm buildpnpm testpnpm validate:skill

Run locally:

bash
pnpm dev -- --transport stdiopnpm dev -- --transport http --port 8765

Publishing

The package includes:

  • npm metadata for @flyfish-dev/file-ai
  • MCP Registry metadata in server.json
  • GitHub Actions workflow .github/workflows/publish-mcp.yml

Release flow:

bash
git tag v0.1.0git push origin v0.1.0

The workflow publishes the npm package first, then publishes io.github.flyfish-dev/file-ai to the official MCP Registry through GitHub OIDC. The repository must have an NPM_TOKEN secret that can publish @flyfish-dev/file-ai.

The server is read-only. It does not mutate source documents.

來源:README.md,提交 b4a1869

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分