ClaudeCloudflare Developer Platform2026/07/22 0:00

Agents, Workers - Agents SDK reduces MCP schema conversion, adds exposure controls for MCP in Think and Code Mode SDK adds direct host APIs

要点だけを先に読めるように短く再構成したセクションです。

元記事

Quick Digest

要約

要点だけを先に読めるように短く再構成したセクションです。

claudeja

Agents, Workers - Agents SDK reduces MCP schema conversion, adds exposure controls for MCP in Think and Code Mode SDK adds direct host APIs の要約

Key Points

  • ポイント1: July 22, 2026 Agents SDK reduces MCP schema conversion, adds exposure controls for MCP in Think and Code Mode SDK adds direct host APIs Agents Workers This release reduces repeated
  • ポイント2: It also lets non-AI-SDK hosts invoke the durable Code Mode runtime directly.
  • ポイント3: Control direct MCP tool exposure in Think Agents SDK MCP clients now reuse converted input and output schemas while a live connection keeps the same tool catalog.

Summary

この記事は 2026-07-22 に公開された「Agents, Workers - Agents SDK reduces MCP schema conversion, adds exposure controls for MCP in Think and Code Mode SDK adds direct host APIs」の内容を日本語で簡潔にまとめたものです。

Key Points

  • ポイント1: July 22, 2026 Agents SDK reduces MCP schema conversion, adds exposure controls for MCP in Think and Code Mode SDK adds direct host APIs Agents Workers This release reduces repeated
  • ポイント2: It also lets non-AI-SDK hosts invoke the durable Code Mode runtime directly.
  • ポイント3: Control direct MCP tool exposure in Think Agents SDK MCP clients now reuse converted input and output schemas while a live connection keeps the same tool catalog.

Full Translation

翻訳

原文の流れを保ったまま読める翻訳セクションです。

claudeja

Agents, Workers - Agents SDK reduces MCP schema conversion, adds exposure controls for MCP in Think and Code Mode SDK adds direct host APIs(原文タイトル)

概要

公開日: 2026-07-22 翻訳生成に失敗したため、原文をそのまま保存しています。

原文

July 22, 2026 Agents SDK reduces MCP schema conversion, adds exposure controls for MCP in Think and Code Mode SDK adds direct host APIs Agents Workers This release reduces repeated MCP schema conversion and adds an opt-out for Think's automatic MCP tool exposure. It also lets non-AI-SDK hosts invoke the durable Code Mode runtime directly. Control direct MCP tool exposure in Think Agents SDK MCP clients now reuse converted input and output schemas while a live connection keeps the same tool catalog. This avoids converting every MCP JSON Schema to Zod again for each model turn. @cloudflare/think also adds includeMcpTools . Set it to false when you expose MCP tools through Code Mode or another mechanism outside Think's automatic tool set: import { Think } from "@cloudflare/think" ; export class MyAgent extends Think { includeMcpTools = false ; waitForMcpConnections = true ; } import { Think } from "@cloudflare/think" ; export class MyAgent extends Think < Env > { includeMcpTools = false ; waitForMcpConnections = true ; } This setting skips Think's automatic getAITools() call. MCP registration, restoration, discovery, raw catalog access, direct calls, and Code Mode connectors continue to work. Use listTools() when you only need the raw MCP catalog. For connector setup, refer to Use MCP tools with Code Mode . Invoke the Code Mode runtime without the AI SDK @cloudflare/codemode@latest adds execute() , search() , and describe() to the durable runtime handle. MCP servers and other hosts can now execute code and discover connector methods without adapting the runtime to an AI SDK tool. const matches = await runtime. search ( "create issue" ); const docs = await runtime. describe (matches.results[ 0 ].path); const outcome = await runtime. execute ({ code: async () => github.create_issue({ title: "Bug" }) , }); const matches = await runtime. search ( "create issue" ); const docs = await runtime. describe (matches.results[ 0 ].path); const outcome = await runtime. execute ({ code: async () =&gt; github.create_issue({ title: "Bug" }) , }); Search and describe results include requiresApproval: true for protected connector methods. Resolve a paused execution with the existing approve() and reject() methods. For setup and exact method types, refer to Create a durable Code Mode runtime and the Code Mode API reference . Upgrade npm yarn pnpm bun npm i agents@latest @cloudflare/think@latest @cloudflare/codemode@latest yarn add agents@latest @cloudflare/think@latest @cloudflare/codemode@latest pnpm add agents@latest @cloudflare/think@latest @cloudflare/codemode@latest bun add agents@latest @cloudflare/think@latest @cloudflare/codemode@latest