Conversation
b1d60f2 to
3a95d03
Compare
3a95d03 to
d84fc72
Compare
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
agents@0.5.2
Patch Changes
#963
b848008Thanks @threepointone! - MakecallbackHostoptional inaddMcpServerfor non-OAuth serversPreviously,
addMcpServer()always required acallbackHost(either explicitly or derived from the request context) and eagerly created an OAuth auth provider, even when connecting to MCP servers that do not use OAuth. This made simple non-OAuth connections unnecessarily difficult, especially from WebSocket callable methods where the request context origin is unreliable.Now,
callbackHostand the OAuth auth provider are only required when the MCP server actually needs OAuth (returns a 401/AUTHENTICATING state). For non-OAuth servers,addMcpServer("name", url)works with no additional options. If an OAuth server is encountered without acallbackHost, a clear error is thrown: "This MCP server requires OAuth authentication. Provide callbackHost in addMcpServer options to enable the OAuth flow."The restore-from-storage flow also handles missing callback URLs gracefully, skipping auth provider creation for non-OAuth servers.
@cloudflare/ai-chat@0.1.4
Patch Changes
#956
ab401a0Thanks @whoiskatrin! - Fix denied tool approvals (CF_AGENT_TOOL_APPROVALwithapproved: false) to transition tool parts tooutput-deniedinstead ofapproval-responded.This ensures
convertToModelMessagesemits atool_resultfor denied approvals, which is required by providers like Anthropic.Also adds regression tests for denied approval behavior, including rejection from
approval-requestedstate.