
Deckprobe
io.github.deckflow由 GitHub 账号 deckflow 发布v0.1.1更新于 Oct 24, 2026
Inspect PDF, Office, and iWork documents without rendering: counts, metadata, security signals
概览
本地 MCP 服务器,让助手无需渲染即可检查 PDF、Office 和 iWork 文档,以 JSON 返回计数、元数据、安全信号和结构信息。
- 可以做什么
- 探测单个文档的页数或幻灯片数、元数据、加密与宏信号、结构、资源或完整性,可选用预设、层级和置信度阈值
- 一次调用批量探测多个文档,按输入顺序返回每个文件各自的报告或错误
- 列出支持的格式,以及某格式提供的精确目标名称、别名、值类型和开销等级
- 通过 deckprobe://schema 资源读取随附的报告 JSON Schema
- 适用场景
- 适合助手需要了解无法直接打开的文档时:批量筛查一批演示文稿和表格、检查文件是否加密或含宏、统计页数与幻灯片数,尤其适用于不可信文件。
- 运行要求
- 通过 npx 或全局 npm 安装以 stdio 在本地运行,需要 Node.js 20 或更高版本。引擎以按平台的可选依赖提供,另有 WebAssembly 回退。所有设置均为可选环境变量:DECKPROBE_MCP_BIN、DECKPROBE_MCP_ROOTS、DECKPROBE_MCP_TIMEOUT_MS、DECKPROBE_MCP_MAX_CONCURRENCY 和 DECKPROBE_MCP_MAX_BATCH。无需账号或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Deckprobe,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
DeckProbe MCP Server
Let an agent ask what's inside a PDF, Office, or iWork file — without opening it.
Install · Tools · Configuration · Security · How it works · DeckProbe
An MCP server that exposes
DeckProbe — ffprobe for documents — as
four typed tools. Ask for page counts, slide counts, metadata, encryption and
macro signals, structure, or integrity, and get back bounded, deterministic JSON
with confidence, evidence, and measured I/O cost.
Nothing is rendered, no macro runs, no external reference is followed, and no network connection is opened. It is safe to point at untrusted files.
Install
Nothing to install ahead of time — npx fetches the server and the engine
together.
Claude Code
Claude Desktop, Cursor, VS Code, Zed, and anything else reading mcpServers
For a pinned install, npm install -g @deckflow/deckprobe-mcp and use
deckprobe-mcp as the command.
Requires Node.js 20 or newer. The engine binary arrives as a per-platform
optional dependency for macOS, Linux (glibc and musl), and Windows on x86-64 and
ARM64; anywhere else the server falls back to the same engine compiled to
WebAssembly, so npx works wherever Node does.
Tools
There is also one resource, deckprobe://schema, carrying the report JSON
Schema bundled with the running engine.
probe
targets accepts short names (slide_count), canonical names
(powerpoint.slide_count), and presets:
@summary deliberately omits statistics that need a full-file read. A PDF's
page_count is the notable case — ask for it explicitly.
probe_batch
One engine process handles the whole batch. Results come back in input order,
each with its own report or its own error, so one bad file never spoils the run.
Defaults to the compact values view. Literal paths only — expand globs
yourself.
list_formats and list_targets
list_targets takes a format (pdf, docx, xlsx, pptx, doc, xls,
ppt, key, numbers, pages) and returns each target's aliases,
description, value type, minimum level, cost class, and selector membership.
Pass detail: "full" for the engine's complete report, including per-target
JSON Schema fragments and expanded selector lists.
Both are cached for the lifetime of the server process.
Reading a report
The tool result is the engine's own schema-v2 envelope, unmodified. Two things are worth knowing before consuming it:
status: "partial"is not a failure. It means at least one requested target could not be resolved at the requested confidence. It is named inexecution.unresolved_targets, and every other result still stands.confidence_scoreis a fixed constant per label (0.4,0.7,0.95,1.0), not a calibrated probability.0.95does not mean the value is right 95% of the time.
Only results with status resolved or estimated carry a value. unknown is
common and usually means the document simply does not record that fact.
A failing call returns isError with the engine's error envelope plus one line
saying what to do about it. Failures the server itself raises before the engine
runs — a missing path, a directory, a path outside the allow-list, an exceeded
deadline — use the same envelope shape with an MCP_-prefixed code and
origin: "mcp-server".
Configuration
Every setting is an environment variable, set in your client's MCP config. All are optional.
Security
DeckProbe is built for untrusted input: bounded parsing, no renderer, no macro interpreter, no external-reference resolution, and no network access. This server adds two things on top.
- Process isolation and a hard deadline. Each probe runs in its own
short-lived process, killed if it outruns
DECKPROBE_MCP_TIMEOUT_MS. - An optional read allow-list.
DECKPROBE_MCP_ROOTSpins the reachable tree; paths are symlink-resolved before the check, so a link cannot step around it. The default is unrestricted, matching the CLI the user could run themselves — set it for shared or automated deployments.
Reports describe a document (metadata, counts, signals) rather than reproducing its contents. Note that report values such as a document title are still attacker-controlled strings: the server passes them through as JSON data and never interpolates them into instructions, and a consumer should treat them the same way.
Report a vulnerability privately as described in SECURITY.md.
How it works
The server spawns the native DeckProbe CLI rather than calling the WebAssembly build. The CLI reads only the byte ranges a probe plan needs, where the WebAssembly path holds the whole file in memory, and a separate OS process both isolates untrusted parsing and can be killed outright. The engine is chosen in this order:
DECKPROBE_MCP_BIN- the binary that ships with this package's
@deckflow/deckprobedependency deckprobeonPATH- the bundled WebAssembly engine
The resolved engine is logged to stderr at startup. stdout belongs to the MCP transport and carries nothing else.
MCP server or agent skill?
DeckProbe also ships an Agent Skill that teaches a shell-capable agent to use the CLI directly. Both teach the same vocabulary. Use the skill when the agent has a shell and you want the CLI's full surface; use this server when it does not, or when you want typed arguments validated before the engine ever runs.
Development
Contributions are welcome — see CONTRIBUTING.md. The design rationale, including the alternatives that were rejected, is in docs/rfc.md.
License
MIT. See LICENSE.
来源:README.md,提交 20c833b
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分