Cloudflare AI Updates & Release Notes

Follow

136 updates curated from 1 source by the Releasebot Team. Last updated: Aug 11, 2026

Get this feed:
  • Aug 7, 2026
    • Date parsed from source:
      Aug 7, 2026
    • First seen by Releasebot:
      Aug 11, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Sandbox SDK 1.0 preview on @next

    Cloudflare AI adds Sandbox SDK 1.0 preview on the npm @next tag, offering a thinner SDK with a single execution API, RPC-only transport, improved PTY and terminal support, and code interpreter as an extension. It also guides existing users on migration from the stable 0.12.x line.

    Sandbox SDK 1.0 is available to preview under the npm @next tag.

    For existing applications, the current stable package remains published on the 0.12.x line.

    Sandbox SDK first shipped to provide a rich library for running untrusted and agent-driven work on Cloudflare Containers. Since then, both Sandbox and Containers have matured. This preview is a thinner SDK built on a richer Cloudflare Containers foundation.

    What this preview is

    • A single execution interface — sandbox.exec() takes an argument list, returns when the process starts, and gives you a handle for output, logs, waits, and signals. Both short commands and long-running services use the same API.
    • Removed session execution — the SDK no longer maintains shell state between executions. Each launch is independent. Pass cwd and env when you need them, or put multi-step shell syntax in one explicit shell command.
    • RPC as the only transport — the SDK talks to the container exclusively over RPC. Remove SANDBOX_TRANSPORT, transport on getSandbox(), and setTransport().
    • Improved PTY and terminal interface — interactive PTYs use createTerminal/connect, not the older session-shaped helpers.
    • Code interpreter as an extension — configure the code interpreter on your Sandbox subclass so you only ship what you need.

    Start new projects on @next. Migrate existing apps when you can so you are ready when 1.0 becomes stable. Deploy the Worker package and container image from the same @next line.

    Coding agents: install Cloudflare Skills ↗ (Agent setup). Use sandbox-next for @next (recommended for new projects), sandbox-stable for the current stable package, and sandbox-migrate-to-next when you are ready to port. Stable-package deprecated-API cleanup is in the 2026 deprecation guide.

    The main Sandbox documentation still describes today's stable package. Preview docs:

    • 1.0 preview
    • Get started
    • Migrate
    • Processes · Terminals · Errors
    • API reference

    The self-deployed Sandbox bridge is not currently part of this preview. We are working on bringing it in line with the latest code. Until then, use the stable bridge with the matching stable package and container image.

    Timeline for 1.0

    Further Cloudflare Containers features will let us keep reducing the size of the Sandbox SDK. We aim to ship Sandbox SDK 1.0 once those are in. In the meantime we continue to support and maintain the 1.0 preview (@next) alongside the current stable release.

    Original source
  • Aug 7, 2026
    • Date parsed from source:
      Aug 7, 2026
    • First seen by Releasebot:
      Aug 7, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Workers AI and AI Gateway unify model access and billing

    Cloudflare AI now supports a unified path for Workers AI and third-party models, with one AI binding and REST API plus AI Gateway observability, logging, caching, security, and billing controls. It also adds unified prepaid billing and higher rate limits for select frontier models.

    Unified entrypoints and observability

    Workers AI and AI Gateway now provide a unified path for accessing models and managing inference traffic. Use the same AI binding and REST API to call models hosted on Workers AI or by supported third-party providers, with AI Gateway providing observability, logging, caching, security, and billing controls.

    The AI binding supports both Workers AI and third-party models through env.AI.run(). The REST API provides shared /ai/ endpoints with Cloudflare authentication across providers.

    Route a Workers AI request through AI Gateway by specifying a gateway ID. Use default to automatically create a gateway on the first authenticated request, or specify an existing gateway to separate applications and workloads:

    Requests routed through AI Gateway can be logged and included in analytics for request volume, errors, latency, token usage, and costs. You can also configure controls such as caching, rate limiting, and request retries on the gateway.

    Unified billing and higher rate limits

    You can now use prepaid AI Gateway credits to pay for Workers AI inference. This provides one credit balance for Workers AI and supported third-party model providers. To use credits for Workers AI, set the gateway's Workers AI billing setting to Unified billing. Workers AI requests routed through that gateway deduct from your credit balance in real time.

    Prepaid credits also provide access to the following Workers AI frontier models without requiring the Workers Paid plan. Each frontier Workers AI model has a rate limit of 50 requests per minute per account, per model when billed with AI Gateway credits, compared to 20 requests per minute through standard Workers AI billing:

    • @cf/moonshotai/kimi-k2.6
    • @cf/moonshotai/kimi-k2.7-code
    • @cf/zai-org/glm-5.2

    These limits are designed for typical agentic and coding workloads, where requests to frontier models can take longer to complete.

    For details, refer to Workers AI limits, Workers AI pricing, Unified Billing, and the AI Gateway model catalog.

    Original source
  • All of your release notes in one feed

    Join Releasebot and get updates from Cloudflare and hundreds of other software products.

    Create account
  • Aug 6, 2026
    • Date parsed from source:
      Aug 6, 2026
    • First seen by Releasebot:
      Aug 6, 2026
    • Modified by Releasebot:
      Aug 11, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    AI Search makes it easier to build a search engine for your data

    Cloudflare AI adds custom domains, Access-based authentication, multi-instance endpoints, and discover crawling for AI Search, helping teams put a working search endpoint in front of real users with more control and broader site coverage.

    AI Search gets you from a data source to a working search endpoint quickly. This release adds what you need to put that endpoint in front of real users: your own domain, authentication, and one endpoint across several instances. It also adds crawling for sites without a complete sitemap, so your index covers everything you want it to find.

    Each of the following is a new option. The previous behavior is still the default, so nothing changes until you change it.

    Serve search from your own domain

    A public endpoint is a URL that a site or app can query directly, with no authentication in front of it. By default that URL is a generated hostname on search.ai.cloudflare.com. You can now serve the same endpoint from a custom domain, a hostname in a zone that you own:
    https://search.example.com/search

    Restrict who can query your content

    Once your endpoint is on your own domain, you can put Cloudflare Access in front of it. For example, you usually want to give /mcp to specific agents rather than to anyone who finds the URL. Agents authenticate with an Access service token, and people who open the endpoint in a browser sign in through your identity provider.

    Search several instances from one URL

    A namespace can expose its own public endpoint with /search, /chat/completions, and /mcp paths that fan out across the instances you choose:

    Index your sites without a sitemap

    Website data sources support a new discover parse type. It starts at the source URL and collects pages from both your sitemaps and the links it finds while crawling:

    To learn more, refer to the AI Search documentation.

    Original source
  • Aug 6, 2026
    • Date parsed from source:
      Aug 6, 2026
    • First seen by Releasebot:
      Aug 6, 2026
    • Modified by Releasebot:
      Aug 11, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Introducing Kitesurf, an agent-first browser on Browser Run

    Cloudflare AI releases Kitesurf, a stateless browser for AI agents built on Workers. In beta and free to use, it uses less CPU and memory than Chromium for agentic tasks, keeps existing clients working, and can be enabled with a browser=kitesurf parameter.

    Kitesurf is Cloudflare's new stateless, highly scalable browser that runs entirely on top of Workers and is designed for AI agents. It is available for free while in beta.

    Compared to Chromium, Kitesurf uses 3–7× less CPU and memory for common agentic tasks like screenshots and HTML extraction, so you can run more sessions and scale better for bursty, AI-driven workloads.

    Your existing clients already work. To opt in, add the browser=kitesurf parameter to any Browser Run CDP or Quick Action endpoint:

    You can also explore Kitesurf without writing any code in the public playground.

    For more information, refer to the Kitesurf documentation and the blog announcement.

    Original source
  • Aug 5, 2026
    • Date parsed from source:
      Aug 5, 2026
    • First seen by Releasebot:
      Aug 6, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Track AI spend and catch anomalous usage with User Insights

    Cloudflare AI adds AI Gateway User Insights, a no-cost dashboard that shows AI spend, requests, tokens and adoption while flagging users with unusual usage patterns for faster security investigations.

    AI Gateway now includes User Insights, a dashboard that gives you two things at once: clear visibility into how much your organization spends on AI, and a security signal that surfaces users whose usage suddenly looks abnormal. It works on the traffic already flowing through your gateway, so there is no additional setup.

    On the spend side, User Insights shows organization-wide totals for cost, requests, tokens, and adoption, and lets you drill into an individual user to see their spend, top models and providers, cache hit rate, and more. To attribute usage to individual users, add a user identifier with custom metadata or put your gateway behind Cloudflare Access.

    On the security side, User Insights baselines each user's normal usage from their 95th percentile (p95) session cost over the last 30 days, then flags sessions that exceed both that baseline and an organization-level threshold. A sudden jump above a user's own pattern is often the first sign of a compromised credential or a misbehaving agent, so you can investigate before it shows up on your bill.

    User Insights is available to all AI Gateway customers at no additional cost.

    Original source
  • Similar to Cloudflare AI with recent updates:

  • Aug 5, 2026
    • Date parsed from source:
      Aug 5, 2026
    • First seen by Releasebot:
      Aug 5, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Identity-aware controls are now available in AI Gateway

    Cloudflare AI adds Cloudflare Access integration to AI Gateway, letting teams protect gateway endpoints and use authenticated user identity in logs, analytics, routing, and spend controls.

    AI Gateway now integrates with Cloudflare Access, giving you two new capabilities:

    • Protect your gateway endpoint. Put your AI Gateway behind Access so you can set policies that control who is allowed to call a specific gateway's endpoint.
    • Identity-aware controls. When traffic reaches AI Gateway through an Access-protected custom domain, AI Gateway can use the authenticated user's Access identity in logs, analytics, routing, and spend controls.

    With identity-aware controls, you can set spend limits by authenticated user, control which gateways different users can access, filter logs by user, and build policies without passing user IDs from the client application. AI Gateway adds the verified Access user ID to request metadata as cf.user_id.

    For setup instructions, refer to Cloudflare Access.

    Original source
  • Aug 4, 2026
    • Date parsed from source:
      Aug 4, 2026
    • First seen by Releasebot:
      Aug 5, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Vectorize indexes now support up to 20 million vectors

    Cloudflare AI expands Vectorize to 20 million vectors per index for larger semantic search and RAG workloads.

    You can now store up to 20 million vectors in a single Vectorize index, doubling the previous limit of 10 million vectors. This enables larger-scale semantic search, recommendation systems, and retrieval-augmented generation (RAG) applications without splitting data across multiple indexes.

    Vectorize continues to support indexes with up to 1,536 dimensions per vector at 32-bit precision. Refer to the Vectorize limits documentation for complete details.

    Original source
  • Aug 4, 2026
    • Date parsed from source:
      Aug 4, 2026
    • First seen by Releasebot:
      Aug 4, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Agent traces for Think, Flue, and AI SDK instrumented by Agents SDK

    Cloudflare AI adds agent tracing for Apps built with the Agents SDK, bringing turn-by-turn traces, model calls, tool runs, approvals, token usage, and Workers runtime operations, plus dashboard session replay and trace waterfalls for debugging and observability.

    Agent tracing is now available for applications built with the Agents SDK. Traces show each agent turn alongside model calls, tool runs, approvals, token usage, and Workers runtime operations.

    Turn on Workers tracing in your Wrangler configuration:

    {
      "$schema": "./node_modules/wrangler/config-schema.json",
      "observability": {
        "traces": {
          "enabled": true
        }
      }
    }
    

    Think and Flue applications emit agent traces automatically. For direct AI SDK calls, wrap the AI SDK namespace once.

    wrapAISDK() supports AI SDK v6 and v7. This AI SDK v7 example also supplies the agent identity:

    import * as ai from "ai";
    import { wrapAISDK } from "agents/observability/ai";
    
    const tracedAI = wrapAISDK(ai);
    
    await tracedAI.generateText({
      model,
      prompt: "Find an available appointment",
      runtimeContext: {
        agentId: "booking-agent-production",
        conversationId: "conversation-123",
      },
      telemetry: {
        functionId: "booking-agent",
        includeRuntimeContext: {
          agentId: true,
          conversationId: true,
        },
      },
    });
    

    Message and tool payload recording is off by default. Turn it on only when the payloads are safe to store:

    const tracedAI = wrapAISDK(ai, {
      storeMessages: true,
      storeTools: true,
    });
    

    Open the Agents tab ↗ in the Cloudflare dashboard to inspect sessions, replay conversations, and view trace waterfalls. For advanced setup, privacy controls, and trace structure, refer to Agent tracing.

    Original source
  • Aug 3, 2026
    • Date parsed from source:
      Aug 3, 2026
    • First seen by Releasebot:
      Aug 4, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Preview: @cloudflare/computer agent runtime

    Cloudflare AI releases an early preview of @cloudflare/computer, an open-source agent runtime that gives every agent its own computer and routes work across isolates and Linux containers, with a SQLite-backed virtual filesystem, gated operations, and AI SDK-compatible tools.

    We're releasing an early preview of @cloudflare/computer ↗, an open-source agent runtime that gives every agent its own computer. The runtime dynamically orchestrates between fast, efficient isolates and full Linux containers, so the agent always runs on the right compute primitive for the task at hand.

    @cloudflare/computer provides a virtual filesystem backed by SQLite, which you can populate from cloud storage, source control, or any files you choose. Agents can read, write, and edit files, run shell commands, and interact with Git repositories. All operations are gated, audited, and observed.

    Install the package via npm:

    npm install @cloudflare/computer
    

    Instantiate a Workspace inside any Durable Object to give your agent a filesystem and execution runtime:

    import { Workspace } from "@cloudflare/computer";
    
    export class Agent {
      workspace = new Workspace({
        storage: this.ctx.storage,
      });
    }
    

    Several execution backends are included or you can write your own:

    • Isolate runtime — fast, horizontally scalable execution via just-bash and Dynamic Workers, ideal for file manipulation and data processing.
    • Container runtime — full Linux environment via Cloudflare Containers, mounted through FUSE, for tasks that need native binaries, package managers, or a complete userland.

    The AI SDK-compatible toolkit provides common agent tools (read, write, edit, ls, exec) and guides the model to choose the appropriate backend for each task.

    For more examples, including a step-by-step tutorial, visit the @cloudflare/computer repository ↗.

    Read the announcement blog post for more details: Your agent needs a computer, not a container ↗.

    Original source
  • Jul 31, 2026
    • Date parsed from source:
      Jul 31, 2026
    • First seen by Releasebot:
      Aug 4, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Browser Run adds a Playground to the Cloudflare dashboard

    Cloudflare AI adds a Browser Run Playground in the Cloudflare dashboard, letting users test Quick Actions on a live browser without a Worker or SDK. It supports screenshots, PDFs, extraction, AI structured data, viewport tuning, and code export.

    Browser Run now includes a Playground in the Cloudflare dashboard.

    Use it to try Quick Actions against a live browser without creating a Worker, installing an SDK, or deploying code first.

    The Playground helps you test a target URL or raw HTML input, tune viewport and page-load settings, preview the output, and copy working code for the same request.

    With the Playground, you can:

    • Capture visuals as screenshots or PDFs.
    • Generate multiple output formats in one request with the snapshot endpoint.
    • Extract HTML, Markdown, links, or scraped data.
    • Extract structured data with AI using a prompt and optional JSON Schema.

    You can also configure desktop, laptop, tablet, mobile, or custom viewport sizes, set browser scale, choose page-load conditions, set timeouts, and wait for selectors before running a request.

    Select Show Code to generate the same request as cURL, TypeScript SDK, Python, or Workers Binding code.

    For example, a screenshot request can be copied as a Workers Binding call:

    interface Env {
      BROWSER: BrowserRun;
    }
    export default {
      async fetch(request, env, ctx): Promise<Response> {
        return await env.BROWSER.quickAction("screenshot", {
          url: "https://developers.cloudflare.com",
          viewport: {
            width: 1920,
            height: 1080,
          },
        });
      },
    };
    

    Requests made in the Playground incur Browser Run charges. AI extraction also incurs Workers AI charges.

    To try the Playground, go to Browser Run in the Cloudflare dashboard and select Playground.

    Go to Browser Run ↗.

    For more information, refer to the Quick Actions documentation.

    Original source
  • Jul 30, 2026
    • Date parsed from source:
      Jul 30, 2026
    • First seen by Releasebot:
      Jul 30, 2026
    • Modified by Releasebot:
      Aug 4, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Use AI Search with the Agents SDK, AI SDK, and LangChain

    Cloudflare AI adds direct AI Search support for popular agent frameworks, bringing grounded retrieval to apps through new guides for the Vercel AI SDK, LangChain, and the Cloudflare Agents SDK, plus a new AI SDK package and LangChain retriever.

    You can now use AI Search directly from popular agent frameworks, adding grounded retrieval to an existing app instead of calling the REST API by hand. The new Agents section has guides for the Vercel AI SDK, LangChain, and the Cloudflare Agents SDK. The AI SDK integration is a new package, and the LangChain integration is a new retriever in the existing langchain-cloudflare package.

    Vercel AI SDK

    The ai-search-provider ↗ package connects AI Search to the AI SDK, and targets AI SDK v6 (ai@^6). Pass instance.chat() to generateText or streamText to generate a response grounded in your indexed content, with the retrieved chunks returned as sources. You can also expose instance.search() as a tool for agent loops.

    import { createAISearchNamespace } from "ai-search-provider";
    import { generateText } from "ai";
    
    const aiSearch = createAISearchNamespace({ binding: env.AI_SEARCH });
    const { text, sources } = await generateText({
      model: aiSearch.get("knowledge-base").chat(),
      messages: [{ role: "user", content: "How does caching work?" }],
    });
    

    LangChain

    The langchain-cloudflare package (PyPI ↗, GitHub ↗) provides CloudflareAISearchRetriever, a standard LangChain retriever backed by AI Search. Use it on its own, wrap it with create_retriever_tool to give an agent a search tool, or drop it into a RAG chain. It works with REST credentials or a Worker binding inside a Python Worker.

    from langchain_cloudflare import CloudflareAISearchRetriever
    
    retriever = CloudflareAISearchRetriever(
      account_id=ACCOUNT_ID,
      api_token=API_TOKEN,
      instance_name="knowledge-base",
      retrieval_type="hybrid",
    )
    docs = retriever.invoke("How do I configure Workers AI?")
    

    Cloudflare Agents SDK

    The Cloudflare Agents SDK could already reach AI Search through the Workers binding. The new guide walks through building a stateful chat agent that provisions its own instance, indexes content, and searches it from a tool.

    import { tool } from "ai";
    import { z } from "zod";
    
    const instance = env.AI_SEARCH.get("knowledge-base");
    // Expose AI Search to the agent's model as a tool it can call.
    const searchKnowledgeBase = tool({
      description: "Search the knowledge base for relevant content.",
      inputSchema: z.object({ query: z.string() }),
      execute: ({ query }) => instance.search({ query }),
    });
    

    For the full walkthroughs, including creating an instance and indexing content, refer to the Agents guides.

    Original source
  • Jul 28, 2026
    • Date parsed from source:
      Jul 28, 2026
    • First seen by Releasebot:
      Jul 30, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Select models now require the Workers Paid plan

    Cloudflare AI limits Workers Free plan access to a few resource-intensive models and moves them to Workers Paid plan, helping improve reliability and reduce out of capacity errors. Many other models remain available on the free plan.

    We are limiting Workers Free plan access to a few resource-intensive models so we can prioritize capacity for the broader Workers AI user base. This helps everyone get a more reliable inference experience, with fewer 429 and 3040 (Out of Capacity) errors.

    The following models now require the Workers Paid plan:

    • @cf/moonshotai/kimi-k2.6
    • @cf/moonshotai/kimi-k2.7-code
    • @cf/zai-org/glm-5.2

    On the Workers Free plan, requests to these models now return a 403 HTTP error (internal error 5035) prompting you to upgrade. The Workers Paid plan starts at $5 per month and still includes the 10,000 free Neurons per day allocation, with usage beyond that billed at each model's pricing.

    Many models remain available on the Workers Free plan, including:

    • @cf/zai-org/glm-4.7-flash
    • @cf/google/gemma-4-26b-a4b-it
    • @cf/nvidia/nemotron-3-120b-a12b

    For the full list, refer to the Workers AI model catalog.

    Original source
  • Jul 28, 2026
    • Date parsed from source:
      Jul 28, 2026
    • First seen by Releasebot:
      Jul 29, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Cloudflare MCP servers support the new MCP 2026-07-28 Specification

    Cloudflare AI adds support for the MCP 2026-07-28 Specification, with fresh stateless requests on each run and broader compatibility for Streamable HTTP clients. The /mcp endpoint is now the recommended connection path, while /sse remains an alias for the same handler.

    Cloudflare's product-specific MCP servers now support the new MCP 2026-07-28 Specification. Each request runs on a fresh stateless server without an MCP protocol session or protocol-specific Durable Object.

    The /mcp endpoint also accepts stateless requests from 2025 Streamable HTTP clients. Most clients can reconnect without configuration changes.

    Use /mcp for new connections. Historical /sse URLs continue to work as aliases for the same Streamable HTTP handler, but they no longer serve the deprecated HTTP+SSE transport. If a client forces SSE transport, change it to Streamable HTTP or automatic transport detection.

    Original source
  • Jul 28, 2026
    • Date parsed from source:
      Jul 28, 2026
    • First seen by Releasebot:
      Jul 29, 2026
    • Modified by Releasebot:
      Jul 30, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Browser Run adds structured handoff for Human in the Loop

    Cloudflare AI adds structured handoff for Human in the Loop workflows in Browser Run, letting agents signal when they need help, pause through Live View for a human to step in, and then resume automatically once the task is done.

    Browser Run now supports structured handoff for Human in the Loop workflows. Using Cloudflare-specific CDP commands, your agent can signal that it needs help, a human steps in through Live View to handle the task, and the agent resumes once the work is done.

    For agents running multi-step browser workflows, a single login wall or unexpected prompt can fail the entire run. Previously, scripts had to manage human intervention manually by sharing a Live View URL and polling for completion. Structured handoff replaces this with a formal pause-and-resume flow.

    The following example requests human intervention for a login page and waits for the human to finish before continuing:

    const cdp = await page.createCDPSession();
    
    // Get Live View URL for the human operator
    const { devtoolsFrontendUrl } = await cdp.send("Cloudflare.getLiveView", { mode: "tab" });
    console.log(`Human input needed: ${devtoolsFrontendUrl}`);
    
    // Request human intervention and wait for completion
    const handoffComplete = new Promise((resolve) => cdp.once("Cloudflare.handoffComplete", resolve));
    await cdp.send("Cloudflare.handoff", { instructions: "Please log in with your credentials", timeout: 600000 });
    const result = await handoffComplete;
    console.log(result.success ? "Handoff complete" : `Failed: ${result.reason}`);
    

    Refer to the Human in the Loop documentation for the full API reference, examples, and best practices.

    Original source
  • Jul 27, 2026
    • Date parsed from source:
      Jul 27, 2026
    • First seen by Releasebot:
      Jul 28, 2026
    • Modified by Releasebot:
      Jul 30, 2026
    Cloudflare logo

    Cloudflare AI by Cloudflare

    Agents SDK adds MCP Specification 2026-07-28 support

    Cloudflare AI adds Agents SDK v0.20.0 with MCP 2026-07-28 support for stateless servers and clients, letting Workers serve tools, prompts, resources, and elicitation without MCP sessions while keeping legacy compatibility and deprecating McpAgent.

    Agents SDK v0.20.0 adds client and server support for the MCP 2026-07-28 release candidate ↗. Workers can serve tools, prompts, resources, and elicitation without an MCP transport session or Durable Object. Agents can connect to both MCP 2026-07-28 servers and existing legacy servers.

    Client support

    The MCP client manager now uses @modelcontextprotocol/client. For each connection, it probes for MCP 2026-07-28 support with server/discover. If the server does not support the stateless protocol, the client continues with the legacy initialize handshake on the same connection. Existing addMcpServer calls do not need a protocol-version setting or separate clients for each protocol generation.

    For stateless requests, elicitation uses input_required through multi-round-trip requests (MRTR). The legacy path uses the same form and URL handlers for pushed requests. The SDK collects input, retries the original operation, and resolves the original callTool, getPrompt, or readResource promise with its final result.

    OAuth callbacks now validate issuer metadata through the v2 SDK. Discovery state and issuer-bound credentials persist across browser redirects and Durable Object hibernation.

    Run stateless servers

    createMcpHandler now accepts a factory that returns a server from @modelcontextprotocol/server. The factory creates an isolated server for each request.

    Backward compatibility

    The same createMcpHandler(createServer)(request, env, ctx) route serves MCP 2026-07-28 clients and legacy clients that use stateless requests. You do not need separate routes or tool definitions for ordinary tools, prompts, and resources.

    McpAgent is deprecated and feature-frozen. Migrate existing McpAgent servers to the stateless handler at your earliest convenience. If a server depends on protocol sessions, RPC, pushed server-to-client requests, standalone streams, or replay, use the migration guide to design stateless equivalents and run both routes while clients transition.

    Migrate existing SDK v1 servers

    Upgrade the Agents SDK:

    npm i agents@latest
    

    Move ordinary SDK v1 server definitions into an SDK v2 factory and serve them with createMcpHandler. The handler's default legacy compatibility means most stateless deployments need only one route.

    If an existing McpAgent server still needs sessionful features, add the stateless path beside it. Use isLegacyRequest() to send only legacy traffic to the existing route:

    import { isLegacyRequest } from "@modelcontextprotocol/server";
    import { createMcpHandler } from "agents/mcp/server";
    import { MyMcpAgent } from "./legacy-server";
    import { createServer } from "./server";
    
    const stateless = createMcpHandler(createServer, {
      route: "/mcp",
      legacy: "reject",
    });
    
    const legacy = MyMcpAgent.serve("/mcp");
    
    export default {
      async fetch(request, env, ctx) {
        if (await isLegacyRequest(request)) {
          return legacy.fetch(request, env, ctx);
        }
        return stateless(request, env, ctx);
      },
    };
    

    Migrate the remaining sessionful features, allow existing sessions to drain, then remove the legacy route. Refer to Migrate to MCP SDK v2 for package changes, compatibility limits, and rollout steps.

    Deprecations in v0.20.0

    This release deprecates the following Agents SDK APIs:

    • McpAgent: Use an SDK v2 factory with createMcpHandler for stateless servers. Use the migration guide to replace stateful features before removing a legacy route. Feature-frozen. No removal version is announced.
    • createMcpHandler(v1Server, options): Move the server to an SDK v2 factory and call createMcpHandler(factory, options). Use createLegacyMcpHandler only as a temporary bridge for sessionful features. Scheduled for removal in the next major version.
    • MCPClientManager.callTool(params, resultSchema, options) and the equivalent withX402Client overload: Use callTool(params, options) or callTool(confirm, params, options). Compatibility overload. No removal version is announced.

    The MCP 2026-07-28 draft separately deprecates Roots, Sampling, Logging, the old HTTP+SSE transport, and Dynamic Client Registration.

    Original source
Releasebot

Curated by the Releasebot team

Releasebot is an aggregator of official product update announcements from hundreds of software vendors and thousands of sources.

Our editorial process involves the manual review and audit of release notes procured with the help of automated systems.