LETS FUCKING GO!!!
Got MCP to work on durable objects!!!! x Agents SDK
each object can be both a client and a server
What does this mean? let's dive in
Turns out the
@cloudflare Agents SDK, along with Durable objects is the best way to write MCP clients and servers.
why? Because it's both serverless AND stateful!
this is special, because the 'client' can always be connected to any server (or multiple servers) (or itself)
This obviously comes with all the added benefits of the Agents sdk, which can already do a lot of cool things
The object handles chat, sync, and other stuff. it may also be connected to other cloudflare resources like D1 for database, R2 for storage, etc.
And all this combined, in my opinion, makes
@Cloudflare OFFICIALLY the best place to build AI apps, agents, servers, etc.