mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-05 22:59:52 +00:00
MCP clients that validate the `export` tool's input schema against its `format` enum refused `txt`, even though the engine's `file.export` has accepted it since #2421 (`crates/engine/src/cmd/file.rs:398` → `outline_txt_bytes`, CRLF line ends). The MCP tool forwards its arguments straight to `file.export`, so the stale enum was the only thing in the way. Added `txt` to the enum and the tool description in `crates/mcp/src/tools.rs`, and to the `file.export` params doc in `crates/engine/src/cmd/file.rs`, which had the same gap. The new test `crate::tests::export_tool_lists_txt_and_writes_crlf` pins the enum entry and the CRLF output through the MCP tool. Fixes #2625