[Agents] Document MCP and Code Mode SDK updates#32180
Merged
Merged
Conversation
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Contributor
|
Nimbus Preview URL: https://nimbus-ca9c15c6.preview.developers.cloudflare.com |
Contributor
mattzcarey
force-pushed
the
docs/agents-mcp-tool-materialization
branch
from
July 21, 2026 14:33
dedf2ff to
ca9c15c
Compare
mattzcarey
marked this pull request as ready for review
July 21, 2026 15:41
mattzcarey
requested review from
a team,
elithrar,
irvinebroque,
rita3ko,
thomasgauvin,
threepointone and
whoiskatrin
as code owners
July 21, 2026 15:41
Contributor
Review
👉 Fix in your agent 👈Fix the following review findings in PR #32180 (https://github.com/cloudflare/cloudflare-docs/pull/32180).
Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g. the fix requires disproportionate effort for minimal benefit,
or the finding is factually incorrect), explain why
- If you need clarification before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.
The comment must come before the commit — the bot reads PR comments when a new
push triggers a review, so skip comments posted after the push will be missed.
---
## Code Review
### Warnings (1)
#### CR-e34ecdaaa4b5 · Unchecked search result access
- **File:** `src/content/docs/agents/tools/codemode/durable-runtime.mdx` line 246
- **Issue:** The example does `const method = matches.results[0];` without verifying that `search()` returned any results. If no method matches, `method` is `undefined` and the next line `runtime.describe(method.path)` throws.
- **Fix:** Guard the access with a check such as `if (matches.results.length === 0) { /* handle no match */ }` before dereferencing the first result.
---
## Style Guide Review
### Suggestions (1)
#### SG-88a7fe39d425 · Use TypeScriptExample for raw TypeScript code blocks
- **File:** `src/content/docs/agents/model-context-protocol/apis/client-api.mdx` line 1155
- **Issue:** Added a raw ```ts fenced block in a docs MDX file
- **Fix:** Wrap the TypeScript snippet in <TypeScriptExample> instead of using a bare fence
Code ReviewThis code review is in beta and may not always be helpful — use your judgment. Warnings (1)
ConventionsNo convention issues found. Style Guide ReviewSuggestions (1)
CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
cjol
approved these changes
Jul 21, 2026
irvinebroque
approved these changes
Jul 21, 2026
mattzcarey
force-pushed
the
docs/agents-mcp-tool-materialization
branch
from
July 22, 2026 14:55
ca9c15c to
7f70877
Compare
mattzcarey
force-pushed
the
docs/agents-mcp-tool-materialization
branch
from
July 22, 2026 15:01
7f70877 to
4823b69
Compare
mattzcarey
commented
Jul 22, 2026
mattzcarey
force-pushed
the
docs/agents-mcp-tool-materialization
branch
from
July 22, 2026 15:02
4823b69 to
cb90226
Compare
mattzcarey
commented
Jul 22, 2026
mattzcarey
force-pushed
the
docs/agents-mcp-tool-materialization
branch
from
July 22, 2026 15:08
cb90226 to
f998df7
Compare
mattzcarey
commented
Jul 22, 2026
mattzcarey
commented
Jul 22, 2026
mattzcarey
force-pushed
the
docs/agents-mcp-tool-materialization
branch
from
July 22, 2026 16:33
f998df7 to
180732a
Compare
mattzcarey
enabled auto-merge (squash)
July 22, 2026 16:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents two Agents SDK updates in one changelog entry:
Think.includeMcpToolsfrom cloudflare/agents#1959execute(),search(), anddescribe()Code Mode runtime APIs from cloudflare/agents#1969, available in@cloudflare/codemode@latestUpdates the Think, MCP client, Code Mode runtime, and Code Mode API reference pages. Search and describe documentation also covers the new
requiresApprovalresult metadata.Fixes the documentation gap tracked by cloudflare/agents#1938.
Documentation checklist