pdfcraft/apps
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
..
pdfcraft Security: print jobs, new digital IDs and the --control file no longer write through planted links (#338) 2026-10-08 16:04:48 -04:00
pdfcraft-cli M13: `pdfcraft-cli mcp --compact` lists 12 tools and finds the rest by search (#353) 2026-10-08 16:55:25 -04:00
pdfcraft-web Issue #173: a failed `?file=` startup fetch is reported in the app (#302) 2026-10-08 12:49:25 -04:00