{"by":"jmcodes","descendants":29,"id":45405584,"kids":[45407026,45407821,45491840,45407016,45420770,45406496,45408939,45406963,45407272,45409023],"score":87,"text":"Read this article by Cloudflare this morning <a href=\"https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;code-mode&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;blog.cloudflare.com&#x2F;code-mode&#x2F;</a> the main argument being that LLMs are much better at writing typescript code than tool calls because they&#x27;ve seen typescript code many more times.<p>HN Discussion: <a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=45399204\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=45399204</a>\n<a href=\"https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=45386248\">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=45386248</a><p>Deno provides a great sandbox environment for Typescript code execution because of its permissions system which made it easy to spin up code that only has access to fetch and network calls.<p>Stick an MCP proxy on top of that and you&#x27;ve got &quot;CodeMode&quot; (code intermixed with MCP tool calls) for more advanced workflow orchestration.<p><a href=\"https:&#x2F;&#x2F;github.com&#x2F;jx-codes&#x2F;codemode-mcp\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;jx-codes&#x2F;codemode-mcp</a><p>There&#x27;s a lot of things that can be improved here. Like a virtual file system for the agent to actually build up its solution instead of being forced to one shot the solution but the bones are there.","time":1759076631,"title":"Show HN: I built an MCP server using Cloudflare's code mode pattern","type":"story","url":"https://github.com/jx-codes/codemode-mcp"}