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 分