Patch Changes
-
#1114
5d88b81Thanks @mattzcarey! - Add@cloudflare/codemode/mcpbarrel export with two functions:codeMcpServer({ server, executor })— wraps an MCP server with a singlecodetool where each upstream tool becomes a typedcodemode.*methodopenApiMcpServer({ spec, executor, request })— createssearch+executeMCP tools from an OpenAPI spec with host-side request proxying and automatic$refresolution
-
#1113
1264372Thanks @mattzcarey! - Add optionalmodulesoption toDynamicWorkerExecutorOptionsto allow injecting custom ES modules into the sandbox -
#1117
9837adcThanks @mattzcarey! - DynamicWorkerExecutor now normalizes code and sanitizes tool names internally. Users no longer need to callnormalizeCode()orsanitizeToolName()before passing code/fns toexecute().