From Tool Orchestration to Code Execution: A Study of MCP Design Choices
Yuval Felendler, Parth A. Gandhi, Idan Habler, Yuval Elovici, Asaf Shabtai

TL;DR
This paper compares traditional and code execution MCP models, analyzing their scalability and security trade-offs, and proposes a layered defense to mitigate vulnerabilities in scalable agent systems.
Contribution
It formalizes the architectural differences between MCP models, empirically evaluates their performance, and introduces security measures for code execution in agent workflows.
Findings
CE-MCP reduces token usage and latency
Traditional MCP has higher coordination overhead
Security vulnerabilities include code injection and unsafe capability synthesis
Abstract
Model Context Protocols (MCPs) provide a unified platform for agent systems to discover, select, and orchestrate tools across heterogeneous execution environments. As MCP-based systems scale to incorporate larger tool catalogs and multiple concurrently connected MCP servers, traditional tool-by-tool invocation increases coordination overhead, fragments state management, and limits support for wide-context operations. To address these scalability challenges, recent MCP designs have incorporated code execution as a first-class capability, an approach called Code Execution MCP (CE-MCP). This enables agents to consolidate complex workflows, such as SQL querying, file analysis, and multi-step data transformations, into a single program that executes within an isolated runtime environment. In this work, we formalize the architectural distinction between context-coupled (traditional) and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSecurity and Verification in Computing · Mobile Agent-Based Network Management · Software System Performance and Reliability
