Skip to content

v1.12.0 — FastMCP 4.0

Choose a tag to compare

@Criptic Criptic released this 02 Sep 07:48
· 118 commits to main since this release
8e09fbf

Highlights

⬆️ FastMCP 4.0 is now the minimum (#50)

The pin moves from fastmcp>=3.0.0,<4.0.0 to fastmcp>=4.0.0,<5.0.0, bringing mcp 2.x and FastMCP 4's HTTP client, httpx2, alongside the httpx this project uses directly.

Nothing about how this server is written had to change. Tools, prompts, middleware, the tier system, read-only mode and the OAuth proxy all work on 4.0 unaltered — the entire test suite passes without a single change to server logic, and the live integration suite passes against a real SAS Viya deployment.

It is not a drop-in for an existing checkout, though. uv sync — or a container rebuild — is required, and running this code against FastMCP 3.x is no longer supported. The next section is why that combination has to be ruled out rather than merely discouraged.

🏷️ Tool annotations renamed to the MCP SDK v2 snake_case fields

MCP SDK v2, which ships with FastMCP 4, renamed the annotation fields: readOnlyHint → read_only_hint, and likewise destructive_hint, idempotent_hint, open_world_hint, plus input_schema in the tests. This release follows that rename.

Clients are unaffected. The wire format is still the spec's camelCase, because SDK v2 keeps those names as serialization aliases. Verified against a real tools/list response: all 75 tools carry the camelCase keys, and 43 report readOnlyHint: true, exactly as before.

🛡️ Guarding the failure mode that has no symptoms

The rename above is exactly the kind of change that can go wrong without anything appearing to break, and two independent versions of that were closed here.

Mixing this code with FastMCP 3.x. On the older mcp 1.x, ToolAnnotations accepts unknown fields, and its real fields are camelCase. Pass read_only_hint=True there and pydantic files it as an extra: the model reads the value back correctly, tests pass, and the real camelCase field stays None. Proven on a live tools/list against 3.4.6 with this source — zero tools advertise read-only instead of 43, so every read-only tool quietly looks writable to a client deciding whether it needs to ask permission. A hard floor of 4.0 is what makes that unreachable.

A future rename doing the same thing to the landing page. The badges were read with getattr(annotations, "readOnlyHint", None), which cannot distinguish "this tool declares nothing" from "this field no longer exists". The next rename would have blanked every badge on the page with nothing failing anywhere. Four tests now close both halves: two assert the field names exist on ToolAnnotations, and two assert the serialized payload uses the spec's camelCase keys and that every read-only and destructive tool still advertises itself as such. Each was confirmed to actually fail when the old name is restored.

🔐 SSL_VERIFY=false still covers FastMCP's own HTTPS calls

FastMCP 4 dropped httpx in favour of httpx2. A TLS patch reaching only httpx would have silently stopped covering the JWKS fetch and the OAuth token exchange — surfacing inside the auth layer as a 401 or a connect error, a long way from its cause.

ssl_patch already patched both, so no change was needed. This release confirms it against 4.0 rather than a pre-release: on a live run with SSL_VERIFY=false, all four client classes carry the patch marker.

🔢 Tool count

Unchanged: 75 tools across tiers 0–8 — 43 read-only, 15 destructive. This release changes the dependency floor and internal field names; no tool was added, removed or renamed, and no tool's behaviour changed.

🐳 Container image

docker pull ghcr.io/sassoftware/sas-mcp-server:1.12.0

Helm chart 0.2.2 (appVersion 1.12.0); both sample manifests and the pull/mirror instructions point at 1.12.0.

⚠️ Upgrading

uv sync   # required — this is not a drop-in for an existing checkout

Container and Kubernetes deployments pick it up with the new image tag. Nothing in .env, the chart values, or any client configuration needs to change.

📄 Details