Packages

FastMCP 4.2.5 and 4.2.4: Subscriptions, OTel UsageMiddleware, and OAuthProxy Security Fixes

FastMCP 4.2.5 ("Smoke Signals", released November 23, 2026) introduces subscriptions/listen support on 2026-07-28 MCP connections, opt-in UsageMiddleware for OpenTelemetry mcp.server.operation.duration histograms, and an experimental SEP-3415 Events extension. Coming three days after v4.2.4 ("Burn After Reading"), which patched an OAuthProxy concurrency race (GHSA-78c8-3jhx-5mg7) and revoked-token validation bypass, the 4.2.x line also requires Python 3.11+ and stabilizes server-side agent skills (SkillCatalogProvider, SEP-2640).

By 0xScorPionSon

10 min read

FastMCP 4.2.5 and 4.2.4: Subscriptions, OTel UsageMiddleware, and OAuthProxy Security Fixes

FastMCP 4.2.5 architecture showing subscriptions/listen, UsageMiddleware OTel, SEP-3415 Events, OAuthProxy Guard, and SkillCatalogProvider

Executive Summary

  • Featured Package: fastmcp (PyPI, GitHub)
  • Ecosystem: Python (>=3.11 required as of 4.2.0)
  • Latest Version: 4.2.5 ("Smoke Signals", documented November 23, 2026 on FastMCP Updates); 4.2.4 ("Burn After Reading", November 20, 2026) was the latest artifact indexed on PyPI and GitHub Releases at the time of verification (November 23, 2026)
  • AI & Agent Relevance: Primary Python application framework for building Model Context Protocol (MCP) servers, clients, and interactive agent UIs across LLM hosts
  • Primary Takeaway: FastMCP 4.2.5 adds real-time subscriptions/listen streaming for 2026-07-28 MCP clients, opt-in OpenTelemetry usage histograms via UsageMiddleware, and an experimental SEP-3415 Events extension—immediately following 4.2.4, which patched a concurrency race in OAuth proxy token redemption (GHSA-78c8-3jhx-5mg7) and a revoked-token validation bypass.

Between November 13 and November 23, 2026, Prefect shipped six consecutive releases on the FastMCP 4.2.x branch (4.2.0 through 4.2.5). For teams running MCP servers in production, the rapid cadence reflects two simultaneous pressures: adopting new 2026-07-28 protocol capabilities (such as server-hosted agent skills, change subscriptions, and event streams) while hardening OAuth proxy boundaries and OpenTelemetry instrumentation against real-world concurrency and input-validation edge cases.

Because 4.2.0 raised the minimum Python floor to 3.11 and deprecated the 4.1 skills API ahead of removal in 4.3, upgrading into the 4.2.x line requires explicit environment checks, dependency alignment (especially when opentelemetry-sdk or fastmcp-tasks is installed), and lockfile pinning.


Adoption Telemetry and 4.2.x Release Velocity

FastMCP originated as a high-level server abstraction whose 1.0 design was incorporated into the official MCP Python SDK in late 2024. When the official mcp SDK (2.x) renamed its built-in server class to MCPServer, FastMCP continued as an independent Apache-2.0 framework built on top of mcp SDK v2.

According to the FastMCP homepage and GitHub repository metadata, the project has accumulated 28.7k GitHub stars, 2.6k forks, and 410+ contributors. Package download telemetry also reflects heavy CI and agent-runtime adoption:

  • PyPI Monthly Volume: LocalCan's October 2026 MCP analysis recorded 53.7 million downloads for fastmcp in the 30 days leading up to October 13, 2026 (compared with 235.2 million for the upstream mcp package). A subsequent snapshot on Open Source AI Map via pypistats.org reported 94,141,215 monthly downloads (24,037,435 weekly; 4,222,355 daily).
  • Counting Caveat: As Fastero's November 2026 analysis notes, every fastmcp installation pulls mcp as a transitive dependency, so raw PyPI download counts between the two packages overlap and include automated CI runs. Maintainer statements on PyPI citing "a million times a day" and "70% of MCP servers" are vendor-reported figures rather than independently audited market share.
  • TypeScript Counterpart: Prefect maintains @prefecthq/fastmcp-ts (v1.11.0, published November 2026, Apache-2.0), which recorded 21,457 weekly downloads on npm and targets @modelcontextprotocol/server and @modelcontextprotocol/client v2.

FastMCP 4.2.x Release Timeline (November 2026)

Version Release Date Codename Core Additions & Fixes
4.2.5 Nov 23, 2026 Smoke Signals subscriptions/listen on 2026-07-28 connections; FastMCP.notify_tools_changed(); opt-in UsageMiddleware (mcp.server.operation.duration); experimental Events (SEP-3415)
4.2.4 Nov 20, 2026 Burn After Reading Fixes concurrent OAuth proxy code/refresh redemption race (GHSA-78c8-3jhx-5mg7); prevents revoked proxy access tokens from re-validating; isolates failing tool transforms
4.2.3 Nov 20, 2026 Trace Elements Opt-in parent_task_spans for nested background task traces; three output schema $ref/array fixes; OpenAPI missing path arg returns validation error; pydocket>=0.29.1
4.2.2 Nov 18, 2026 Tea for Two (Too) Restores skills/list discovery when server transforms like ResourcesAsTools are active
4.2.1 Nov 17, 2026 4, 2, 1... Liftoff Rejects JWTs before nbf; preserves required_scopes with custom verifiers; OAuth client issuer binding; opentelemetry-api floor raised past traceparent ReDoS
4.2.0 Nov 13, 2026 Mad Skills Requires Python >=3.11; Skill, SkillCatalogProvider, SkillsDirectoryProvider, SkillManifestProvider (SEP-2640); Annotated Depends & CallArgument

Confidence note: Release notes for 4.2.0 through 4.2.4 are cross-verified across both FastMCP Updates and GitHub Releases. Details for 4.2.5 are sourced from FastMCP Updates on November 23, 2026, as the GitHub Releases feed and PyPI package index had not yet mirrored the 4.2.5 tag at verification time.


FastMCP 4.2.5 Architecture: Subscriptions, Telemetry, and SEP-3415 Events

FastMCP 4.2.5 ("Smoke Signals", 25 contributors including 6 first-time contributors) focuses on server-to-client state propagation and operational observability on 2026-07-28 protocol connections.

1. subscriptions/listen and Dynamic Change Notifications

In MCP deployments where tools, prompts, or resources are mounted, gated by session visibility, or refreshed dynamically, polling tools/list introduces unnecessary round-trips. In 4.2.5, FastMCP implements subscriptions/listen on 2026-07-28 protocol connections. Clients can open a persistent stream to receive change events, and server code can push updates directly via FastMCP.notify_tools_changed() and its sibling notification methods for prompts and resources.

2. Opt-In UsageMiddleware for OpenTelemetry

Observability in earlier 4.x releases centered on span emission—including v4.2.0 setting gen_ai.operation.name on tools/call spans (#6429) and v4.2.3 adding parent_task_spans (#6563) so background Docket worker spans nest inside the submitting tools/call request trace rather than starting a separate linked trace.

FastMCP 4.2.5 introduces UsageMiddleware, an opt-in middleware that records per-user, per-tool usage as the OpenTelemetry mcp.server.operation.duration histogram across tools/call and prompts/get operations. Two operational constraints apply:

  • Middleware Ordering: UsageMiddleware must be registered before any error-handling middleware in the server pipeline so failed or transformed calls are captured accurately before exceptions are masked or rewritten.
  • SDK Alignment: Following v4.2.1's security bump of opentelemetry-api (raising the floor to v1.45.2 to mitigate a traceparent ReDoS), teams installing via pip with an existing opentelemetry-sdk must upgrade both packages together (pip install -U fastmcp opentelemetry-sdk).

3. Experimental Events Extension (SEP-3415)

Landing in fastmcp.experimental.events, 4.2.5 adds an opt-in implementation of the experimental SEP-3415 Events extension supporting both poll and push delivery models, paired with a new CLI surface: fastmcp experimental events list and fastmcp experimental events watch. Because the module sits under fastmcp.experimental, its API is explicitly exempt from FastMCP's standard deprecation period and may change in any subsequent release.


Security Patches, Breaking Changes, and Internals

For production operators, the most urgent changes in the 4.2.x cycle live in 4.2.4 and 4.2.1—particularly for deployments using OAuthProxy in front of upstream identity providers.

OAuthProxy Concurrency and Revocation Fixes (v4.2.4, GHSA-78c8-3jhx-5mg7)

FastMCP 4.2.4 ("Burn After Reading", November 20, 2026) resolves a race condition tracked as GHSA-78c8-3jhx-5mg7 (#6614): under concurrent load, two simultaneous token requests could redeem the same OAuth proxy authorization code or refresh token twice. In addition, PR #6620 fixes a state-persistence bug where a revoked OAuth proxy access token could pass validation again after a token refresh cycle.

Beyond authentication, 4.2.4 isolates failing tool transforms (#6619): previously, a transform that could not apply to a single component could break the entire tools/list response; it now hides only the affected tool. It also warns when a mount mixes versioned and unversioned components under the same name (#6613) and deduplicates version entries shared across two providers (#6612).

Released November 17, 2026, 4.2.1 closed several subtle authorization gaps:

  • JWT nbf Enforcement (#6512): Tokens with a not before (nbf) claim in the future are now strictly rejected.
  • Custom Verifier Scope Preservation (#6535): Passing a custom token_verifier no longer strips provider required_scopes.
  • Pre-Registered Client Issuer Binding (#6536): Pre-registered OAuth clients can now be pinned to their expected issuer.
  • Consent & Upstream Claims (#6530, #6532): OAuth consent is now remembered per redirect URI and scope set, and upstream_claims refresh cleanly during transparent proxy refreshes. Note that in require_authorization_consent="remember" mode, end users will be prompted for consent once more per client after upgrading past 4.2.1.

Python 3.11+ Floor and Skills Over MCP (v4.2.0 & v4.2.2)

FastMCP 4.2.0 ("Mad Skills", 129 contributors) dropped Python 3.10 support, establishing Python 3.11 or newer as a hard requirement (#6377). It also stabilized server-side agent skills (SEP-2640 / io.modelcontextprotocol/skills), letting servers distribute versioned instruction packages alongside the tools they document:

from fastmcp import FastMCP, Skill
from fastmcp.skills.provider import SkillCatalogProvider

deploy_skill = Skill.from_directory("skills/deploy")
mcp = FastMCP("Team Skills")
mcp.add_provider(SkillCatalogProvider([deploy_skill]))

As documented in ModelContextProtocol.Info's technical analysis, serving a skill via SkillCatalogProvider, SkillsDirectoryProvider, or SkillManifestProvider (which avoids loading file contents until a client requests them) exposes files over both skills/list (with SHA-256 digests and byte sizes) and standard resources/read fallbacks. However, 4.2.2 (#6548) was needed to fix a bug where tool-only server transforms such as ResourcesAsTools caused skills/list to return empty even while skill:// resources remained readable.

Developers migrating from 4.1 should note that fastmcp.server.providers.skills and fastmcp.utilities.skills are deprecated in 4.2.x and scheduled for removal in 4.3. Skill now represents the authoring object, while the wire metadata model is MCPSkill.


Ecosystem Comparison and Upgrade Checklist

When deciding whether to standardize on fastmcp, the upstream mcp Python SDK, or Prefect's TypeScript counterpart, teams should weigh protocol minimalism against built-in gateway and observability primitives:

Attribute fastmcp (Python) mcp (Official Python SDK) @prefecthq/fastmcp-ts (TypeScript)
Latest Version (Nov 23, 2026) 4.2.5 (docs) / 4.2.4 (PyPI) 2.3.0 (Oct 2, 2026) 1.11.0 (Nov 2026)
Runtime Floor Python >=3.11 Python >=3.10 Node.js / TypeScript
License Apache-2.0 MIT Apache-2.0
Underlying Protocol 2026-07-28 + legacy era negotiation 2026-07-28 + legacy 2026-07-28 + legacy era negotiation
Built-in Auth & Proxy OAuthProxy, JWT/OIDC, CIMD, DCR Core protocol primitives jwtVerifier, createProxy, mount()
Observability & Telemetry UsageMiddleware (OTel), parent_task_spans Bring your own LoggingMiddleware, RateLimitingMiddleware
Primary Fit Production gateways, OAuth proxies, Skills, Apps Minimal servers, strict minimal-dependency targets TypeScript/Node servers, Standard Schema (Zod/Valibot)

Upgrade & Pinning Checklist for 4.2.x

  1. Verify Python Runtime: Confirm python >= 3.11 across all local dev, CI, and container images before bumping past 4.1.8.
  2. Pin Exact Versions in Production: FastMCP's installation guide recommends exact pinning (e.g., fastmcp==4.2.4 or 4.2.5 once mirrored to PyPI) in lockfiles rather than floating >=4.2.0, especially given the rapid patch cadence.
  3. Co-Upgrade OpenTelemetry & Tasks Extras: If using opentelemetry-sdk, run pip install -U fastmcp opentelemetry-sdk to satisfy the 4.2.1 opentelemetry-api security floor. If using fastmcp-tasks, verify pydocket>=0.29.1 (4.2.3).
  4. Place UsageMiddleware First: When enabling 4.2.5 usage histograms, register UsageMiddleware ahead of any ErrorHandlingMiddleware so tool and prompt durations are recorded consistently.
  5. Migrate 4.1 Skills Imports: Move imports from fastmcp.server.providers.skills to from fastmcp.skills.provider import SkillCatalogProvider, SkillsDirectoryProvider, and switch wire-model type checks to MCPSkill before 4.3 removes the legacy aliases.
  6. Audit OAuthProxy Consent & Revocation: Expect a one-time re-consent prompt per client under require_authorization_consent="remember" after upgrading past 4.2.1, and prioritize 4.2.4+ on any multi-worker HTTP deployment to pick up the GHSA-78c8-3jhx-5mg7 concurrency fix.

Frequently Asked Questions

1. Why does gofastmcp.com list FastMCP 4.2.5 while PyPI shows 4.2.4?

Release documentation on FastMCP Updates was published on November 23, 2026 for v4.2.5, whereas the PyPI project page and GitHub Releases still reflected v4.2.4 (November 20, 2026) during verification. Always check pip index versions fastmcp or PyPI before pinning 4.2.5 in automated builds.

2. What is the difference between fastmcp and the official mcp Python SDK?

FastMCP 1.0 was merged into the official mcp SDK in 2024, but mcp 2.x (2.3.0) renamed that class to MCPServer and focuses on core protocol primitives. Standalone fastmcp (4.x) builds on top of mcp v2 and adds OAuthProxy, composable server providers and transforms, UsageMiddleware, SkillCatalogProvider, and the fastmcp CLI.

3. Who is affected by GHSA-78c8-3jhx-5mg7 in FastMCP 4.2.4?

Deployments using OAuthProxy under concurrent HTTP traffic—where two simultaneous token requests could redeem the same authorization code or refresh token twice—or relying on access token revocation across refresh cycles are affected and should upgrade to 4.2.4 or newer.

4. Does UsageMiddleware work automatically without configuration?

No. UsageMiddleware in 4.2.5 is opt-in and records OpenTelemetry mcp.server.operation.duration histograms for tools/call and prompts/get. You must add it to your server middleware stack before any error-handling middleware.

5. Will SkillsDirectoryProvider from FastMCP 4.1 break in 4.2.5?

Legacy imports in fastmcp.server.providers.skills and fastmcp.utilities.skills continue to work in 4.2.x with deprecation warnings, and will be removed in 4.3. Migrating to fastmcp.skills.provider and MCPSkill now prevents breakage in the next minor release.


Sources

  1. FastMCP Updates (Primary Documentation & Release Notes) — FastMCP 4.2.5 ("Smoke Signals"), 4.2.4, 4.2.3, 4.2.2, 4.2.1, 4.2.0: https://gofastmcp.com/docs/updates (Verified November 23, 2026)
  2. PrefectHQ/fastmcp GitHub Releases (Primary Repository) — v4.2.4 (GHSA-78c8-3jhx-5mg7, #6614, #6620, #6619) through v4.2.0: https://github.com/PrefectHQ/fastmcp/releases (Verified November 23, 2026)
  3. PyPI — fastmcp Package Index (Primary Registry) — Version 4.2.4 metadata, Python >=3.11, release files: https://pypi.org/project/fastmcp/ (Verified November 23, 2026)
  4. PyPI — mcp Official Python SDK (Primary Registry) — Version 2.3.0 metadata, Python >=3.10, MIT license: https://pypi.org/project/mcp/ (Verified November 23, 2026)
  5. npm — @prefecthq/fastmcp-ts (Primary Registry) — Version 1.11.0, weekly downloads (21,457), Apache-2.0: https://www.npmjs.com/package/@prefecthq/fastmcp-ts (Verified November 23, 2026)
  6. ModelContextProtocol.Info (Secondary Technical Analysis) — FastMCP 4.2 and Skills over MCP: What Changes for Your Agent (Published November 17, 2026): https://modelcontextprotocol.info/blog/fastmcp-4-2-skills-over-mcp/
  7. Fastero (Secondary Comparison) — Python MCP Server: Build One With FastMCP or the Official SDK (Published November 18, 2026): https://fastero.com/blog/python-mcp-server
  8. LocalCan & Open Source AI Map (Secondary Adoption Telemetry) — State of MCP Server Development: October 2026 (https://www.localcan.com/blog/state-of-mcp-server-development) and FastMCP PyPI Stats Snapshot (https://www.aipotluck.org/product/fastmcp)

More on Packages

Packages

MCP Reference Servers v2.5.0 & SDK v2: Security Patches, Date-Version Trap, and Migration

Across v2.4.0 (Nov 11, 2026) and v2.5.0 (Nov 18, 2026), the official Model Context Protocol reference servers patched 14 vulnerabilities across mcp-server-git, @modelcontextprotocol/server-filesystem, mcp-server-fetch, and @modelcontextprotocol/server-everything. Alongside MCP Python SDK v2.3.0 and TypeScript SDK v2.4.0, teams face an npm semver trap where 2026.8.31 outranks 2.4.0, plus major stateless 2026-07-28 protocol migration rules.

8 min read

Packages

Prisma 8 ORM RC (v8.0.0-rc.34 / rc.24-dev.40) & Prisma 6 EOL: Savepoints, v7 Upgrade Footguns & Benchmarks

Prisma ORM 6 officially reached end of life on November 19, 2026, just as Prisma 8 release candidates shipped nested savepoint transactions (ADR 326) and SQL runtime fixes through November 22, 2026. With npm latest now installing prisma@8.0.0-rc.34 alongside @prisma/client@7.10.1, teams and coding agents face a breaking CLI mismatch unless they pin versions cleanly.

10 min read

Packages

Muru 0.1.0a34 & muructl: Graham Dumpleton's Rust-Backed Python WSGI/ASGI Server With MCP Deployment Tools

Graham Dumpleton, creator of mod_wsgi, released Muru 0.1.0a34 (muru and muructl on PyPI), an Apache-2.0 Rust HTTP edge, control plane, and Python worker runtime for WSGI and ASGI apps. Highlighted by Simon Willison on November 21, 2026, Muru replaces restart-based reloads with immutable side-by-side releases, weighted canaries, and muructl mcp serve tools for coding agents.

10 min read

Tell us what is not working

A thirty-minute call, no deck and no obligation. You will leave with a straight answer about whether this is worth building - including if that answer is no.

Start a project

Direct line

hello@codebumble.net
Dhaka, Bangladesh  :   local timeCalls in English or Bangla