Code Mode: the better way to use MCP
blog.cloudflare.com
Code Mode: the better way to use MCP
1–10 of 13 posts
Re: Code Mode: the better way to use MCP
#2Re: Code Mode: the better way to use MCP
#3Re: Code Mode: the better way to use MCP
#4It doesn't seem to me that isolates are sufficiently unique technology to warrant this only running on a server. Surely we can spin up a V8 locally or something and achieve the same thing?
Hopefully the popular MCP clients will start implementing this approach, if it works as well as claimed.
Re: Code Mode: the better way to use MCP
#5This is interesting, but it seems like it's only exposed as a Cloudflare service now, rather than as a tool I can use locally (unless I missed something)? It doesn't seem to me that isolates are sufficiently unique technology to warrant this only running on a server. Surely we can spin up a V8 locally or something and achieve the same thing? Hopefully the popular MCP clients will start implementing this approach, if…
https://blog.cloudflare.com/code-mode/#or-try-it-locally :-)
Though AFAIK Wrangler is really only intended for development and not local deployment.
Re: Code Mode: the better way to use MCP
#6This is interesting, but it seems like it's only exposed as a Cloudflare service now, rather than as a tool I can use locally (unless I missed something)? It doesn't seem to me that isolates are sufficiently unique technology to warrant this only running on a server. Surely we can spin up a V8 locally or something and achieve the same thing? Hopefully the popular MCP clients will start implementing this approach, if…
> a tool I can use locally https://blog.cloudflare.com/code-mode/#or-try-it-locally :-) Though AFAIK Wrangler is really only intended for development and not local deployment.
Re: Code Mode: the better way to use MCP
#7Re: Code Mode: the better way to use MCP
#8Re: Code Mode: the better way to use MCP
#9Having the LLM generate code on top of a regular API instead of calling external functions one by one seems like common sense. Was MCP invented because LLMs were not capable of writing robust code at the time? Was it because of security considerations? What I am missing?
What is the regular API? How do you express all the integrations needed in this API? Who provides the integrations? Answering these questions lead you back to something like an MCP, which is an API contract that can be as generic or as specific as needed. Wasting context window to understand and re-implement each integration is why MCPs exist.
All the security issues are orthogonal, and occur regardless if invoking this API occurs via code or natural language.