committed 03:25PM - 18 Sep 26 UTC
FastMCP 4 moved off httpx entirely: OpenAPIProvider.client is typed httpx2.Async…Client and driven
directly, so the in-process ASGI client behind the MCP tools is built with httpx2 and the extra says
fastmcp>=4,<5, declaring httpx2>=2.12,<3 itself rather than leaning on it as a transitive dependency.
An httpx client is still taken there by duck typing, warning and due to be rejected later, so this
was a change to make regardless; the type checker simply found it first.
A client asking the server what it had connected to was told "Wetterdienst 4.0.3" -- FastMCP's own
version wearing our name, because FastMCP(version=...) was never set. It now answers with
wetterdienst's version, the one GET /api/version gives, with a test holding the two together. And an
instance that comes up without /mcp says which module it wanted, where the missing-dependency branch
returned in silence.
The rest of the upgrade guide does not touch this codebase: no ctx.sample or ctx.elicit, no
resources, no McpError construction, no camelCase field reads, and the relocated
fastmcp.server.providers.openapi import was already in use. Client.initialize_result is None on a
discovery connection, which negotiates a DiscoverResult, so the test reads client.instructions --
the same negotiated value, by the era-neutral accessor. The server still answers the legacy
initialize, so both eras stay covered.
The lockfile came with it, because it had to: httpx2 2.10.0 has six advisories against it -- part
header injection, unbounded peak memory decompressing a streamed response, and conflicting
Content-Length and Transfer-Encoding headers -- which had left uv audit red on main since
2026-09-16. Re-resolved on current main rather than taken from the dependabot branch, whose manifest
predates the 0.137.0 release: 74 packages, majors cloup 4, fastmcp 4, plotly 7 and tzfpy 2, and three
specifiers widened to admit them.
Those majors moved three things under us. util/enumeration.py leaned on None.upper() raising into its
own except AttributeError where there is no name to look up by, which the new type checker reads as
an error rather than a fallback. DwdRadarValues.period claimed Period and carried an ignore to keep
the claim, while the argument is optional and the parser returns None for it -- annotated Period |
None, which also stops both guards on it reading as dead code. And plotly 7 leads an HTML export with
a doctype where 6.x began at <html>, so the CLI assertions go through one helper that accepts either,
the floor allowing both.
Supersedes #1912.