Deckprobe

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

Inspect PDF, Office, and iWork documents without rendering: counts, metadata, security signals

已驗證STDIO僅桌面檔案與儲存安全與監控

概覽

AI 產生的概覽

本機 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 金鑰。
安裝前請注意
DECKPROBE_MCP_ROOTS 預設不設限,伺服器可讀取使用者能存取的任何路徑,共用或自動化部署時應設定此變數。文件標題等報告值是攻擊者可控的字串,應視為資料而非指令。伺服器會啟動原生引擎程序,DECKPROBE_MCP_BIN 可指向任意二進位檔。

安裝

在 SourceWeft 中

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

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.

[CI] [npm] [License: MIT]

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.

jsonc
// probe { "path": "deck.pptx", "targets": ["slide_count"], "view": "values" }{  "schema_version": 2,  "status": "ok",  "driver": { "id": "powerpoint", "profile": "pptx" },  "values": { "powerpoint.slide_count": 31 },  "view": "values"}

Install

Nothing to install ahead of time — npx fetches the server and the engine together.

Claude Code

sh
claude mcp add deckprobe -- npx -y @deckflow/deckprobe-mcp

Claude Desktop, Cursor, VS Code, Zed, and anything else reading mcpServers

jsonc
{  "mcpServers": {    "deckprobe": {      "command": "npx",      "args": ["-y", "@deckflow/deckprobe-mcp"]    }  }}

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

ToolUse it for
probeEverything about one document
probe_batchInventory or triage many documents in one call
list_formatsWhich formats are supported, and where support stops
list_targetsThe exact target names a format offers

There is also one resource, deckprobe://schema, carrying the report JSON Schema bundled with the running engine.

probe

jsonc
{  "path": "reports/q3.pptx",  "targets": ["@summary", "@security"],  // presets, short names, or canonical names  "level": "metadata",                   // header | metadata | deep  "min_confidence": "high",              // low | medium | high | exact  "target_confidence": { "slide_count": "exact" },  "view": "report",                      // report | values  "budget": { "max_physical_bytes": 8388608, "timeout_ms": 1000 }}

targets accepts short names (slide_count), canonical names (powerpoint.slide_count), and presets:

PresetExpands to
@headerContainer identity only — format, size, extension match, encryption flag
@summaryIdentity, common metadata, and primary structure
@securityEncryption, macros, signatures, external references, active content
@structureFormat-owned counts, names, and dimensions
@assetsImages, media, previews, fonts, embedded objects
@qualityIntegrity, repair, extension match, conformance
@formatEvery format-specific target at the active level
@allEverything available at the active level

@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

jsonc
{ "paths": ["a.pdf", "b.pptx", "c.xlsx"], "targets": ["@security"] }

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 in execution.unresolved_targets, and every other result still stands.
  • confidence_score is a fixed constant per label (0.4, 0.7, 0.95, 1.0), not a calibrated probability. 0.95 does 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.

VariableDefaultMeaning
DECKPROBE_MCP_BIN–Engine binary to use instead of the bundled one
DECKPROBE_MCP_ROOTSunrestrictedAllowed directories, separated like PATH
DECKPROBE_MCP_TIMEOUT_MS30000Hard per-call deadline on an engine process
DECKPROBE_MCP_MAX_CONCURRENCY4Concurrent engine processes
DECKPROBE_MCP_MAX_BATCH64Paths accepted by one probe_batch call
jsonc
{  "deckprobe": {    "command": "npx",    "args": ["-y", "@deckflow/deckprobe-mcp"],    "env": { "DECKPROBE_MCP_ROOTS": "/Users/me/Documents:/Users/me/Downloads" }  }}

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_ROOTS pins 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

text
MCP client    │  JSON-RPC over stdio    ▼deckprobe-mcp ── validates arguments, resolves the path, maps the result    │  argv + stdout (one process per probe, or one --jsonl process per batch)    ▼DeckProbe engine ── plans the cheapest paths that answer the request

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:

  1. DECKPROBE_MCP_BIN
  2. the binary that ships with this package's @deckflow/deckprobe dependency
  3. deckprobe on PATH
  4. 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

sh
npm installnpm test          # typecheck, lint, build, and the full suitenpm run test:watch

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
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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