I believe cloudflare tries to work around that with Code Mode, right? https://blog.cloudflare.com/code-mode/ (but the OP is still useful for when classic MCP is needed)
I think so, and I've seen other solutions too. The one in the OP is more general, as you say.