
File AI
io.github.flyfish-dev由 GitHub 账号 flyfish-dev 发布v0.1.1更新于 Oct 24, 2026
Agent-ready local document context with stable anchors.
概览
只读 MCP 服务器,将本地文档转换为结构化档案、锚点、分块、大纲和可搜索上下文,供助手使用。
- 可以做什么
- File AI 解析本地文件并缓存文档索引,然后提供工具读取块、分块或锚点,搜索带来源锚点的缓存内容,并检索锚点或查询附近的上下文。它还能列出支持的格式和渲染器能力。每个内容块都带有锚点,例如页码、幻灯片、工作表、行范围或字节位置,便于助手引用有文档依据的结论。
- 适用场景
- 当助手需要理解本地文档(如 PDF、DOCX、XLSX/CSV、PPTX、EML、Markdown、JSON 或压缩包)而不必逆向其内部格式时使用。适合需要稳定引用的文档问答、摘要和检索场景。
- 运行要求
- 作为本地 stdio 进程运行,通常通过 npx @flyfish-dev/file-ai 或全局 npm 安装。需要 Node.js 和 npm。未声明认证、环境变量或请求头。也可在本地主机和端口上通过 streamable HTTP 运行。
安装
在 SourceWeft 中
- 打开 控制台中的 File AI,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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:
Or install it globally:
MCP Client Config
Stdio:
Streamable HTTP:
Endpoint:
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}/profiledoc://{indexId}/outlinedoc://{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
Run locally:
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:
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版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分