Packages

FastMCP v4.2.6: CodeModeClient, OAuth Proxy Security Fixes (GHSA-78c8) & MCP 2026 Upgrade Guide

Prefect's FastMCP v4.2.6 shipped on November 25, 2026—introducing an experimental CodeModeClient for cross-server tool chaining alongside recent OAuth proxy security patches (GHSA-78c8-3jhx-5mg7) and the MCP 2026-07-28 Skills workflow. Here is the version telemetry, breaking-change diff, and safe upgrade checklist.

By 0xScorPionSon

8 min read

FastMCP v4.2.6: CodeModeClient, OAuth Proxy Security Fixes (GHSA-78c8) & MCP 2026 Upgrade Guide

FastMCP v4.2.6 Python MCP framework, CodeModeClient, and OAuth security architecture

Executive Summary

On November 25, 2026, Prefect released fastmcp v4.2.6 ("Turn of Events") on PyPI and GitHub—followed immediately by pre-release 4.2.7a1—continuing a rapid November release cadence across the Python Model Context Protocol (MCP) ecosystem (FastMCP Updates; PyPI fastmcp). Built on the mcp 2.x Python SDK and the 2026-07-28 stateless MCP specification, fastmcp v4.2.6 (verified November 26, 2026, Apache-2.0 license, Python 3.11+) introduces an experimental CodeModeClient for client-side tool discovery and cross-server execution, OpenTelemetry network protocol attributes on server spans, and tighter max_size serialization bounds on response truncation (FastMCP Updates; Fastero).

  • Primary AI & Agentic Relevance: CodeModeClient wraps any Client or ClientGroup so LLM agents receive search, schema, and execute meta-tools—even when connecting to upstream MCP servers that do not expose server-side CodeMode—allowing a single execute block to chain tools across multiple servers (FastMCP Updates).
  • Primary Upgrade & Security Takeaway: Teams running earlier 4.x releases should upgrade to fastmcp >= 4.2.6 (and upgrade opentelemetry-sdk alongside it if installed) to pick up the v4.2.4 OAuth proxy double-redemption race fix (GHSA-78c8-3jhx-5mg7) and v4.2.1 JWT nbf, issuer-pinning, and opentelemetry-api ReDoS protections (FastMCP Updates).

Adoption Telemetry & Version Changelog

Maintained by Prefect, fastmcp has grown from a 2024 wrapper—whose 1.0 codebase was incorporated into the official mcp Python SDK before diverging when mcp 2.0 renamed its server class to MCPServer—into the dominant high-level Python framework for production MCP servers and clients (PyPI fastmcp; Fastero).

Metric / Attribute Verified Value (As of Nov 26, 2026) Source & Caveats
Latest Stable Release v4.2.6 (Nov 25, 2026); v4.2.7a1 pre-release (Nov 25, 2026) FastMCP Updates; PyPI fastmcp
GitHub Stars 28.8k stars (PrefectHQ/fastmcp) FastMCP Homepage (28,218 recorded Oct 27, 2026)
PyPI Download Volume ~1 million downloads / day PyPI fastmcp (note: every fastmcp install also pulls mcp, so counts overlap per Fastero)
Release Velocity 11 releases in last 30 days (~1.5-day typical gap) VCT Release Tracker
Contributor Breadth 28 contributors on 4.2.6 (12 first-time); 129 on 4.2.0 FastMCP Updates
Runtime & License Python 3.11+ (full Python 3.15 support since 4.1.0), Apache-2.0 FastMCP Updates; Fastero

Key November 2026 Release Milestones (4.2.0 → 4.2.6)

  • **v4.2.0 (Nov 13, 2026 — "Mad Skills"):** Promoted Skill to an immutable value object validated at build time, introduced SkillCatalogProvider, SkillsDirectoryProvider, and SkillManifestProvider (lazy bucket/DB loading without re-hashing every file per request), and added Client.read_skill() with size/digest verification and to_directory() export (FastMCP Updates).
  • v4.2.1 (Nov 17, 2026): Hardened OAuth/JWT validation (nbf enforcement, required_scopes preservation, pre-registered client issuer pinning) and bumped the opentelemetry-api dependency floor past a traceparent ReDoS vulnerability (FastMCP Updates).
  • v4.2.3 & v4.2.4 (Nov 20, 2026): Added opt-in parent_task_spans for unified worker/request traces (fastmcp-tasks now requires pydocket>=0.29.1) and patched GHSA-78c8-3jhx-5mg7 alongside revoked-token re-validation fixes (FastMCP Updates).
  • v4.2.5 (Nov 23, 2026): Added subscriptions/listen on 2026-07-28 connections, opt-in UsageMiddleware emitting mcp.server.operation.duration OpenTelemetry histograms, and the experimental SEP-3415 Events extension (fastmcp.experimental.events) (FastMCP Updates).
  • v4.2.6 (Nov 25, 2026): Shipped experimental CodeModeClient, OpenTelemetry network.transport / network.protocol.name / network.protocol.version server span attributes, namespaced resource links for mounted servers, and serialized max_size enforcement on response truncation (FastMCP Updates).

Security Patches, Breaking Changes & Internals

For production maintainers managing pyproject.toml or requirements.txt, the 4.2.x cycle includes critical OAuth security patches, dependency floor bumps, and upcoming 4.3 removals that require explicit testing before upgrading.

1. Security Advisories & Dependency Floors

  • GHSA-78c8-3jhx-5mg7 (Fixed in v4.2.4): Resolved a race condition in the OAuth proxy where two concurrent token requests could redeem the same authorization code or refresh token twice. In addition, a revoked proxy access token can no longer re-validate after a refresh (FastMCP Updates).
  • JWT, Consent & opentelemetry-api Hardening (v4.2.1): JWTs are now strictly rejected before their nbf (not-before) timestamp, required_scopes survive custom verifiers, and opentelemetry-api is floored above a traceparent regular-expression denial-of-service (ReDoS) issue. When using require_authorization_consent="remember", users will be prompted for consent once more per client after upgrading (FastMCP Updates).
  • Upstream Auth & TLS Floors (v4.1.3, v4.1.7): v4.1.7 bumped joserfc and Authlib minimum versions for security fixes and tightened raw redirect URI normalization, while v4.1.3 updated certifi-backed dependencies following the eMudhra CA compromise (FastMCP uses system trust by default, so OS and container trust stores must also be updated) (FastMCP Updates).

2. Breaking Changes & v4.3 Deprecation Warnings

  • Skills Provider Migration (v4.2.0 → v4.3): Direct imports of 4.1 skills providers continue to work in 4.2.x but emit deprecation warnings ahead of removal in 4.3. Migrate directory loading to from fastmcp.skills.provider import SkillsDirectoryProvider and single-skill catalogs to Skill.from_directory(...) with SkillCatalogProvider. Wire metadata payloads now use MCPSkill rather than Skill (FastMCP Updates).
  • Python 3.11+ Floor & mcp 2.x Namespace: Since 4.2.0a4, FastMCP strictly requires Python 3.11 or newer (dropping Python 3.10). Meanwhile, if any legacy code still imports from mcp.server.fastmcp import FastMCP, note that mcp 2.x renamed that built-in class to MCPServer—whereas the standalone fastmcp package preserves from fastmcp import FastMCP (FastMCP Updates; Fastero).
  • OpenAPI Strict Validation & ResponseLimitingMiddleware: Under strict validation, OpenAPI tools now reject undeclared arguments and return validation errors rather than 500 server errors for missing required path parameters (4.2.3), while ResponseLimitingMiddleware in 4.2.6 enforces max_size against the serialized payload (FastMCP Updates).

3. CodeModeClient & Modern v4.2.6 Usage

Instead of stuffing dozens of verbose JSON tool schemas into an LLM's context window, CodeModeClient wraps a Client or ClientGroup and exposes just three meta-tools (search, schema, and execute) on the client side—allowing an agent to discover tools dynamically and chain calls across multiple MCP servers in a sandboxed execute block (FastMCP Updates):

from typing import Annotated
from fastmcp import FastMCP, Client
from fastmcp.dependencies import Depends

mcp = FastMCP("OrdersGateway")

def get_db_dsn() -> str:
    return "postgresql://readonly@db.internal/orders"

# Annotated dependency injection keeps internal config out of the LLM tool schema
@mcp.tool
def lookup_order(
    order_id: str,
    dsn: Annotated[str, Depends(get_db_dsn)],
) -> dict[str, str]:
    """Return status metadata for an order ID."""
    return {"order_id": order_id, "status": "shipped", "source": dsn.split("@")[-1]}

For clients consuming multiple servers with CodeModeClient (experimental in v4.2.6), wrap your ClientGroup so the agent receives search, schema, and execute meta-tools without requiring server-side CodeMode support (FastMCP Updates).

4. Stateless 2026-07-28 Protocol & SkillManifestProvider Architecture

One reason fastmcp 4.x has seen rapid adoption is its dual-era protocol negotiation: a single FastMCP 4 deployment answers both the stateless 2026-07-28 MCP specification (which removes the startup handshake and session IDs for serverless and edge deployments) and older session-based handshake clients per connection (FastMCP Updates; The AI Career Lab). For stateful tools running over the sessionless protocol, FastMCP 4 provides UserSession and SessionId request-state keys alongside fastmcp-tasks (pydocket>=0.29.1) for background execution.

On the agent-context side, v4.2.0a5 and v4.2.0 introduced SkillManifestProvider and SkillCatalogProvider so servers can answer skills/list using lightweight frontmatter manifests (plus each file's SHA digest and byte size) without loading or re-hashing every skill file on every request. Files are only fetched from object storage or a database when a client explicitly invokes Client.read_skill()—which verifies every file's size and digest before to_directory() writes the skill into an agent's local folder (FastMCP Updates).

Ecosystem Comparison & Upgrade Checklist

Choosing between fastmcp (v4.2.6), fastmcp-slim, and the Official mcp Python SDK (v2.3.0) depends on whether you need batteries-included auth/proxying or a minimal dependency tree (Fastero; FastMCP Updates).

Feature / Dimension fastmcp (v4.2.6) fastmcp-slim (v3.3.0+) Official mcp SDK (v2.3.0)
Maintainer & License Prefect (Apache-2.0) Prefect (Apache-2.0) Model Context Protocol (MIT)
Minimum Python Python 3.11+ (3.15 supported) Python 3.11+ Python 3.10+ (Fastero)
Server Stack Full (Starlette, Uvicorn, OpenAPI, Proxies, Mounts) Client & transport only (no Starlette/Uvicorn) Core MCPServer + protocol primitives
Auth & OAuth Proxy Built-in OAuth 2.1 proxy, CIMD, issuer pinning, GHSA-78c8 fix Client-side auth & transports Basic protocol auth primitives
Middleware & Composition UsageMiddleware, ResponseLimitingMiddleware, AuthMiddleware, transforms N/A (client/CI/agent footprint) Manual wiring
Skills & CodeModeClient SkillCatalogProvider, SkillsDirectoryProvider, CodeModeClient Client-side transport & skill consumption Not bundled

Safe Upgrade & Pinning Steps

  1. Pin fastmcp>=4.2.6,<4.3.0: Avoid surprise 4.3 removals of legacy 4.1 skills providers while locking in GHSA-78c8-3jhx-5mg7 and 4.2.6 serialization fixes.
  2. Co-Upgrade opentelemetry-sdk: If your environment includes opentelemetry-sdk, upgrade both packages together (pip install -U fastmcp opentelemetry-sdk or uv add "fastmcp>=4.2.6,<4.3.0" opentelemetry-sdk) to satisfy the 4.2.1 opentelemetry-api floor (FastMCP Updates).
  3. Update pydocket for Background Tasks: If you use @mcp.tool(task=True) via fastmcp-tasks, verify pydocket>=0.29.1 is resolved in your lockfile (4.2.3) (FastMCP Updates).
  4. Test Mounted Resource Links & SkillsDirectoryProvider: Verify that any mounted server tools returning resource links handle the new automatic mount namespacing introduced in 4.2.6, and replace any 4.1 skills provider imports before 4.3 ships (FastMCP Updates).

Frequently Asked Questions

What is new in fastmcp v4.2.6?

Released on November 25, 2026, fastmcp v4.2.6 introduces an experimental CodeModeClient for client-side tool discovery and cross-server execute chaining, adds network.transport / network.protocol.name / network.protocol.version OpenTelemetry attributes to server spans, namespaces resource links from mounted server tools, and ensures truncated ResponseLimitingMiddleware outputs stay within max_size as serialized (FastMCP Updates).

Should I use fastmcp or the official mcp Python SDK?

Use the official mcp SDK (v2.3.0, MCPServer) if you want a minimal dependency footprint on Python 3.10+ matching the core protocol quickstart. Choose fastmcp (v4.2.6) if you need OAuth proxies, middleware (UsageMiddleware, ResponseLimitingMiddleware), OpenAPI auto-generation, server composition/proxying, ClientGroup, or CodeModeClient (Fastero; FastMCP Updates).

Which FastMCP version fixes GHSA-78c8-3jhx-5mg7?

fastmcp v4.2.4 (released November 20, 2026) and newer (including v4.2.6) fix GHSA-78c8-3jhx-5mg7, a race condition where concurrent token requests could redeem an OAuth proxy authorization code or refresh token twice (FastMCP Updates).

What is fastmcp-slim and when should I install it?

fastmcp-slim (introduced in v3.3.0) ships FastMCP's client and transport layer without Starlette, Uvicorn, or the server stack while keeping the same fastmcp import namespace—ideal for CI runners, agent clients, and library dependencies (FastMCP Updates; PyPI fastmcp-slim).

Does fastmcp v4.2.6 still support Python 3.10?

No. Starting with v4.2.0a4, FastMCP requires Python 3.11 or newer (with full Python 3.15 support added in 4.1.0) (FastMCP Updates).

Sources

  1. FastMCP Official Updates & Release Notes (v4.2.6, v4.2.5, v4.2.4, v4.2.1, v4.2.0) (Updated November 25, 2026): https://gofastmcp.com/docs/updates
  2. PyPI — fastmcp (4.2.6) Package Registry (Released November 25, 2026): https://pypi.org/project/fastmcp/
  3. GitHub — PrefectHQ/fastmcp Releases (Updated November 25, 2026): https://github.com/PrefectHQ/fastmcp/releases
  4. Fastero — Python MCP Server: Build One With FastMCP or the Official SDK (Published November 18, 2026; checked Nov 20, 2026): https://fastero.com/blog/python-mcp-server
  5. VCT — FastMCP Changelog & Release Velocity (4.2.6) (Updated November 26, 2026): https://vibecodingturkey.com/releases/fastmcp

More on Packages

Packages

LiteLLM v1.111.0 and LTS 1.108.17: Rust /v1/messages Path, MCP DCR Opt-In, and Standalone UI Security Updates

LiteLLM shipped v1.111.0 alongside maintenance patches v1.110.4, v1.109.5, and v1.108.17 LTS on November 23–24, 2026. The updates introduce a native Rust /v1/messages execution path, opt-in MCP dynamic client registration, Gemini pass-through file ownership checks, and nginx 1.31.10 / zlib 1.4 upgrades for the standalone UI image, alongside breaking billing and RAG changes.

10 min read

Packages

openadapt-flow 4.0.0 & openadapt 1.24.0: Default HPKE Encryption at Rest, Fail-Closed Verdict Kernel, and Upgrade Guide

OpenAdaptAI released openadapt-flow 4.0.0, openadapt 1.24.0, openadapt-agent 2.2.4, openadapt-types 0.24.2, and OpenAdapt Desktop 0.33.1 on November 24, 2026. The major 4.0.0 bump enables sealed-set v3 HPKE encryption at rest by default for recordings, bundles, and run directories, introduces a unified fail-closed verdict kernel and zero-log 2FA handling, and tightens dependency floors. Here is what changed, what breaks on older launchers, and how to upgrade safely.

8 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