frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Dynamic Code Execution with MCP: A More Efficient Approach

https://github.com/pranftw/aiter-app
2•pranftw•1h ago
I've been working on a more efficient approach to code execution with MCP servers that eliminates the filesystem overhead described in Anthropic's recent blog post.

The Anthropic post (https://www.anthropic.com/engineering/code-execution-mcp) showed how agents can avoid token bloat by writing code to call MCP tools instead of using direct tool calls.

Their approach generates TypeScript files for each tool to enable progressive discovery. It works well but introduces complexity: you need to generate files for every tool, manage complex type schemas, rebuild when tools update, and handle version conflicts. At scale, 1000 MCP tools means maintaining 1000 generated files.

I built codex-mcp using pure dynamic execution. Instead of generating files, we expose just two lightweight tools: list_mcp_tools() returns available tool names, and get_mcp_tool_details(name) loads definitions on demand. The agent explores tools as if navigating a filesystem, but nothing actually exists on disk.

Code snippets are stored in-memory as strings in the chat session data. When you execute a snippet, we inject a callMCPTool function directly into the execution environment using AsyncFunction constructor. No imports, no filesystem dependencies, just runtime injection. The function calls mcpManager.tools directly, so you're always hitting the live MCP connection.

This means tools are perpetually in sync. When a tool's schema changes on the server, you're already calling the updated version. No regeneration, no build step, no version mismatches. The agent gets all the same benefits of the filesystem approach (progressive discovery, context efficiency, complex control flow, privacy preservation) without any of the maintenance overhead.

One caveat: the MCP protocol doesn't enforce output schemas, so chaining tool calls requires defensive parsing since the model can't predict output structure. This affects all MCP implementations though, not specific to our approach.

The dynamic execution is made possible by Vercel AI SDK's MCP support, which provides the runtime infrastructure to call MCP tools directly from code.

Project: https://github.com/pranftw/aiter-app

Would love feedback from folks working with MCP at scale. Has anyone else explored similar patterns?

How to Evolve Software for Minimum Disruptions: The Architect's Two Hats

https://medium.com/@srinathperera/how-to-evolve-software-for-minimum-disruptions-the-architects-t...
1•hemapani•1m ago•0 comments

Delta Lake: The Definitive Guide [pdf]

https://delta.io/pdfs/dldg_databricks.pdf
1•teleforce•4m ago•0 comments

Can a Startup Beat a Giant? When the Perplexity Case Isn't So Easy

1•webkmsyed•4m ago•0 comments

Things I Don't Like in Configuration Languages

https://medv.io/blog/things-i-dont-like-in-configuration-languages
2•vinhnx•5m ago•0 comments

A Short Survey of Compiler Targets

https://abhinavsarkar.net/notes/2025-compiler-backend-survey/
1•vinhnx•6m ago•0 comments

Economic Anger Once Again Punishes the Party in Power

https://www.wsj.com/politics/elections/economic-anger-once-again-punishes-the-party-in-power-71d1...
4•moosedman•19m ago•1 comments

Show HN: SSH terminal multiplayer written in Golang

https://github.com/MShel/sshOuroboros
1•mishk0sh•22m ago•0 comments

Myna: monospace typeface designed for symbol-rich programming

https://github.com/sayyadirfanali/Myna
1•vinhnx•23m ago•0 comments

Shango

https://en.wikipedia.org/wiki/Shango
1•brandonlc•25m ago•0 comments

Rust's TUI Revolution

https://ratatui.rs/showcase/apps/
2•AbuAssar•29m ago•0 comments

Brain-IT: Image Reconstruction from fMRI via Brain-Interaction Transformer

https://AmitZalcher.github.io/Brain-IT/
3•SerCe•33m ago•0 comments

FAA to cut flights by 10% at 40 major airports due to government shutdown

https://www.cnbc.com/2025/11/05/faa-cuts-flight-capacity-shutdown.html
38•mikhael•35m ago•14 comments

'Vibe coding' named word of the year by Collins Dictionary

https://www.bbc.com/news/articles/cpd2y053nleo
4•defrost•39m ago•0 comments

Australia Mandates Encryption Backdoors

https://www.wired.com/story/australia-encryption-law-global-impact/
4•simpleintheory•40m ago•0 comments

Longtime Mozilla Support Japanese Community Shuts Down over AI Translation Usage

https://support.mozilla.org/en-US/forums/contributors/717446
78•phantomathkg•40m ago•11 comments

Green Fields of the Mind

https://yalealumnimagazine.org/articles/3549-the-story-of-green-fields-of-the-mind
2•cfcfcf•43m ago•0 comments

S.F. homes are selling at the fastest rate among large U.S. cities

https://www.sfchronicle.com/realestate/article/san-francisco-home-sales-21127729.php
1•kaycebasques•44m ago•3 comments

The Axiom of Predictive Coherence

https://isaacbound.substack.com/p/the-axiom-of-predictive-coherence
1•thegrimmest•44m ago•0 comments

Taiwan's Machine Tool Makers Struggle to Survive

https://english.cw.com.tw/article/article.action?id=4436
3•ilamont•45m ago•1 comments

Pitch Drop Experiment

https://smp.uq.edu.au/pitch-drop-experiment
1•RickJWagner•46m ago•0 comments

Show HN: FlashVSR – AI Video Upscaler for AI-Generated and Low-Res Videos

https://www.flashvsr.art
1•Viaya•46m ago•0 comments

Everyone Can Code an LLM

https://python2llms.org/
2•yegortk•50m ago•0 comments

I built a modular Java game engine without a GUI, designed to be AI-native

https://frontend-neutron-v2.vercel.app/
1•xvpdev•50m ago•0 comments

Jelly Slider

https://docs.swmansion.com/TypeGPU/examples/#example=rendering--jelly-slider
3•xnx•50m ago•1 comments

Breakthrough Gel Rebuilds Tooth Enamel and Strengthens Teeth

https://newatlas.com/medical/protein-gel-rebuilds-tooth-enamel/
3•thunderbong•51m ago•1 comments

Physics-driven self-supervised learning for 3D light-field microscopy

https://www.nature.com/articles/s41592-025-02698-z
2•warbaker•54m ago•0 comments

Mörk – a Commonmark compliant Markdown parser written in Gleam

https://hexdocs.pm/mork/index.html
1•todsacerdoti•55m ago•0 comments

Fintech Product Discovery 2 minute Survey

https://app.youform.com/forms/t46ykegz
2•Archer-Simmonds•58m ago•1 comments

OpenAI Seeks Government Backing to Boost AI Investments

https://www.barrons.com/news/openai-seeks-government-backing-to-boost-ai-investments-b9850f3a
4•dougb5•58m ago•0 comments

Hire Palestinian Tech Workers

https://techforpalestine.org/help/hire/
6•brandon_pampuch•1h ago•1 comments