Skip to content

docs(agents): add protocol messages documentation#28386

Closed
threepointone wants to merge 1 commit into
agents-050from
sp/protocol-messages-docs
Closed

docs(agents): add protocol messages documentation#28386
threepointone wants to merge 1 commit into
agents-050from
sp/protocol-messages-docs

Conversation

@threepointone

Copy link
Copy Markdown
Contributor

Summary

Documents the new shouldSendProtocolMessages / isConnectionProtocolEnabled feature from cloudflare/agents#920, which adds per-connection control over protocol text frames.

Changes

  • New page: api-reference/protocol-messages.mdx — full documentation including overview, usage, API reference, examples (query param, WebSocket subprotocol, combining with readonly), how-it-works explanation
  • agents-api.mdx — added "Protocol messages" row to the server-side API reference table
  • websockets.mdx — added note in the "Handling binary data" section linking to protocol messages for binary-only clients
  • readonly-connections.mdx — added cross-reference in "Related resources" and note in "How it works" about shared WebSocket attachment mechanism
  • store-and-sync-state.mdx — clarified that setState() broadcasts exclude protocol-suppressed connections
  • mcp-client-api.mdx — added note that MCP server list broadcasts respect the protocol messages filter

Made with Cursor

Add new page documenting `shouldSendProtocolMessages` and
`isConnectionProtocolEnabled` for per-connection control of protocol
text frames. Update cross-references in agents-api, websockets,
readonly-connections, store-and-sync-state, and mcp-client-api pages.

Corresponds to cloudflare/agents#920.

Co-authored-by: Cursor <cursoragent@cursor.com>
@threepointone
threepointone requested a review from a team February 17, 2026 07:39
@threepointone
threepointone requested a review from a team as a code owner February 17, 2026 07:39
@github-actions github-actions Bot added product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/m labels Feb 17, 2026
@threepointone

Copy link
Copy Markdown
Contributor Author

Commit cherry-picked directly onto agents-050 — included in #28378 instead.

@threepointone
threepointone deleted the sp/protocol-messages-docs branch February 17, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants