@cloudflare/codemode@0.5.4 agents@0.28.1

medium risk

cloudflare/agentsOct 13, 2026 → Oct 13, 20260 days between releases

What's New

Adds ZDR gateway options, BYOK, and MCP updates to createAI and McpAgent.

New Features

  • Adds `zdr` gateway option and `vendorKey: 'request'` to `createAI`
  • Supports AI Gateway dynamic routes using `ai('dynamic/<route>')` syntax
  • Updates MCP packages to 2.3.1/1.32.1
  • McpAgent returns 404 immediately for deleted sessions
  • McpAgent validates Legacy request factories

Improvements

  • Refactors `OpenCodeHarness` event reporting to use standard event types
  • Improves `McpAgent` request handling
  • MCP transport redirect improvements (same origin only)

Upgrade Notes

Review documentation for new `zdr` gateway options and dynamic route syntax. Ensure MCP client/server versions are compatible with 2.3.1/1.32.1.

The Two Releases

@cloudflare/codemode@0.5.4

@cloudflare/codemode@0.5.4

Oct 13, 2026· 9 days ago

Enhances `ToolSetConnector` to properly forward output schemas, ensuring `codemode.describe()` displays accurate return types instead of `unknown`. It also enforces the requirement for `.default()` fields and adds support for `.pipe()` types.

Full release notes
agents@0.28.1

agents@0.28.1

Oct 13, 2026· 9 days ago

This patch release introduces support for ZDR gateway options and BYOK in `createAI`, updates Model Context Protocol (MCP) client and server libraries, improves `McpAgent` request handling, and refactors `OpenCodeHarness` event reporting to use standardized event types.

Full release notes