Repository navigation
refactor(forge): plan calls with forge's plain-data requests - #350
Merged
Merged
Conversation
Forge's MCP target now generates tools, not a server (cloudflare/forge#71): the runtime is _/tool.ts alone, and buildRequest returns the request as plain data. planCall spreads it into the plan instead of reading a Request back apart, and imports buildRequest and InvalidArguments directly rather than taking them as arguments.
mattzcarey
marked this pull request as ready for review
October 27, 2026 19:43
8 tools added, none removed; tools with permissions 2,366 -> 2,368.
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.
planCallnow spreads forge's request straight into the plan. Forge'sbuildRequestreturns plain data,{ method, url, headers, body? }, so the service no longer reads aRequestback apart to send it over RPC, andbuildRequestandInvalidArgumentsare imported rather than passed in. The plan's fields are unchanged, so the main Worker doesn't change.This picks up cloudflare/forge#71, where the MCP target generates tools rather than a server:
src/generated/forge-mcp/_/is justtool.ts:listTools,toolsByNameandbuildRequest_/server.tsand_/index.tsare gone; nothing here imported themopenapi@d35bb44, the latest release: 8 tools added, none removed, tools with permissions 2,366 → 2,368. This replaces the bot's chore(forge): regenerate the forge MCP tools #334forge.jsonpins580804fcon #71's branch. Re-pin to the merge commit on forge'smainonce #71 lands, before that branch is deleted.Tests ran.