Developer Platform von Cloudflare
Agents SDK: MCP Elicitation, http-streamable, Task Queues und E-Mail
Das @cloudflare/agents SDK unterstützt MCP Elicitation für Nutzereingaben während der Tool-Ausführung sowie HTTP streamable transport für MCP, der gegenüber SSE empfohlen wird, und bringt weitere Neuerungen wie Task Queues und E-Mail-Integration.
The latest releases of @cloudflare/agents ↗︎ brings major improvements to MCP transport protocols support and agents connectivity. Key updates include:
MCP elicitation support
MCP servers can now request user input during tool execution, enabling interactive workflows like confirmations, forms, and multi-step processes. This feature uses durable storage to preserve elicitation state even during agent hibernation, ensuring seamless user interactions across agent lifecycle events.
// Request user confirmation via elicitation
const confirmation = await this.elicitInput({
message: `Are you sure you want to increment the counter by ${amount}?`,
requestedSchema: {
type: "object",
properties: {
confirmed: {
type: "boolean",
title: "Confirm increment",
description: "Check to confirm the increment",
},
},
required: ["confirmed"],
},
});
Check out our demo ↗︎ to see elicitation in action.
HTTP streamable transport for MCP
MCP now supports HTTP streamable transport which is recommended over SSE. This transport type offers:
- Better performance: More efficient data streaming and reduced overhead …