Live data from Hacker News

Code Mode: the better way to use MCP

blog.cloudflare.com

1–10 of 13 posts

Re: Code Mode: the better way to use MCP

#2
This seems exactly right. Its pretty common to watch your agent making the same mcp tool call again and again as it works through a list. These kinds of cases are solved by letting the agent just call any of its mcp tools in a script.

Re: Code Mode: the better way to use MCP

#4
This 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 it works as well as claimed.

Re: Code Mode: the better way to use MCP

#5
post #4

This 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

#6
post #5
post #4

This 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.

Hmm but that's just a development environment for the remote server, no? It's not a tool meant for mass use.

Re: Code Mode: the better way to use MCP

#8
Having 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?

Re: Code Mode: the better way to use MCP

#9
post #8

Having 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?

> top of a regular API

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.

Post reply on HN