Skip to content

v1.2.2

Choose a tag to compare

@sebyx07 sebyx07 released this 27 Jun 12:15

Fix: clients no longer fail job/file with invalid type ... expected string or map

The action enum was emitted as a JSON-Schema $ref into $defs. Clients (Claude Desktop, codex, n8n) drop $defs, so the $ref resolved to nothing — the model couldn't see action is a string enum and sent a non-string placeholder (null, then true), failing deserialization before dispatch.

  • #[schemars(inline)] on JobAction/FileAction → the enum is now inlined on the property ({"type":"string","enum":[…]}), no $ref/$defs. Documented fix (MCP python-sdk #1373).
  • lenient_action coerces any non-string action — and an omitted key — to the read-only list default instead of dead-ending the call. file stays strict (destructive actions, no safe default).

Supersedes v1.2.1 (null-only tolerance). MCP clients must reconnect/restart to drop the cached old tool schema.

Install: sudo dpkg -i mcp-ssh_1.2.2-1_amd64.deb