GitHub repo

universal-tool-calling-protocol/code-mode

TypeScript Tracked since 2025-11-11 Updated 2026-07-16 View source ↗

#498 of 783 by Stars among GitHub repos

1.5k Stars

🔌 Plug-and-play library to enable agents to call MCP and UTCP tools via code execution.

About

🤖 Code-Mode Library: First library for tool calls via code execution

Transform your AI agents from clunky tool callers into efficient code executors — in just 3 lines.

LLMs excel at writing code but struggle with tool calls. Instead of exposing hundreds of tools directly, give them ONE tool that executes TypeScript code with access to your entire toolkit.

Apple, Cloudflare, and Anthropic say that Code-Mode is a more efficient way to approach tool calling compared to the traditional dump function information and then extract a JSON for function calling.

Independent Python benchmark study validates the performance claims with $9,536/year cost savings at 1,000 scenarios/day:

Batching…

Excerpted from github.com/universal-tool-calling-protocol/code-mode

Latest metrics

Stars 1.5k 2026-07-16
Forks 98 2026-07-16
Commits 85 2026-07-16
Releases 2 2026-07-16
Watchers 13 2026-07-16
Open issues 3 2026-07-16
Open PRs 0 2026-07-16