Skip to content

v0.20.0 — fastmcp 4 and JSON for content search

Choose a tag to compare

@mariusei mariusei released this 03 Sep 12:38
· 279 commits to main since this release

scantool now runs on fastmcp 4 (MCP Python SDK 2). The tool surface is unchanged; what changes is the protocol stack underneath. Verified against every protocol version a client might send — 2024-11-05, 2025-03-26, 2025-06-18, 2025-11-25, 2026-07-28 and an unknown one: each negotiates, lists the 8 tools and completes a scan_file call. A client built on MCP Python SDK 1.x, Claude Code's own handshake, a Codex tool call and the HTTP transport all work against the new server. Startup to the initialize response is about half a second. Caveat: fastmcp 4 is new (4.0.2). If a client that connected to 0.19.7 stops connecting, pin scantool==0.19.7 and open an issue naming the client and the protocol version it sends.

search_structures with content_pattern now honours output_format="json"; that branch used to return the tree regardless. The JSON shows the same selection as the tree — the same caps on structures and on hits per structure, decided once — and reports what it left out as counts (structures_omitted, hits_omitted) rather than prose.

Dependencies: pglast 8, pillow 12, uvicorn 0.52 and the tree-sitter grammars moved up; SCSS no longer depends on the abandoned grammar package. Releases are now gated on ruff format as pushes already were, and the release sequence is one script, so tag, pyproject and lockfile cannot drift apart.