pdfcraft/apps/pdfcraft-cli/tests
Oldrich333 868bd727d1
M13: `pdfcraft-cli mcp --compact` lists 12 tools and finds the rest by search (#353)
`tools/list` returns all 132 tools (109,578 bytes, ~27k tokens), which an
agent pays on every session. With `--compact` (library:
`McpServer::with_compact(true)`) it returns the 10 core tools
(`mcp::COMPACT_CORE_TOOLS`) plus `tool_search` (query / category / name
with the full schema) and `tool_call` (runs any tool through the same
`Automation::call`): 12 tools, 7,697 bytes. `tools/call` by name keeps
working for every tool; without the flag nothing changes. Same shape as
`lightcraft-cli mcp --compact`; the meta tools are not called
`*_command` because "command" already means a registry command here.

Both meta tools reject unknown outer keys and report failures as
`isError` results; `tool_call` honours `--root` exactly like a direct
call. Tests: automation integration tests (compact list, discovery,
dispatch, errors, root confinement) and a CLI test that launches the
binary with and without `--compact`.

Co-authored-by: Oldrich333 <184516902+Oldrich333@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-08 16:55:25 -04:00
..
edit.rs CLI: edit rejects unknown options instead of writing an unchanged copy (#133) (#227) 2026-10-08 03:39:27 -04:00
mcp_compact.rs M13: `pdfcraft-cli mcp --compact` lists 12 tools and finds the rest by search (#353) 2026-10-08 16:55:25 -04:00
render.rs Issue #248: pdfcraft-cli render writes the format its --out name says (.png, .jpg, .tif or .pam) (#255) 2026-10-08 07:25:43 -04:00
run_root.rs Security: create save staging files with create_new (follow-up to #164) (#319) 2026-10-08 15:19:16 -04:00
split.rs Issue #249: pdfcraft-cli split creates --out-dir when it does not exist (#256) 2026-10-08 07:26:03 -04:00
stdout.rs Restore #196, #202, #203 and the macOS release-runner change, reverted by the i18n chain (#229) 2026-10-08 03:33:35 -04:00
text.rs CLI text tests: each protected-PDF test writes its own files (#267) 2026-10-08 08:33:26 -04:00