universal-tool-calling-protocol/code-mode
A plug-and-play library that lets AI agents call MCP and UTCP tools through code execution instead of traditional function calling.

The Code-Mode library transforms how AI agents interact with tools by giving them a single code execution interface that can access an entire toolchain. Rather than exposing hundreds of individual tools, agents write code that calls tools programmatically. It supports Model Context Protocol (MCP) servers and UTCP endpoints, running TypeScript/JavaScript code with tool access at runtime. Benchmarks claim significant cost savings compared to traditional JSON-based tool calling approaches.
Frequently asked
- What is universal-tool-calling-protocol/code-mode?
- A plug-and-play library that lets AI agents call MCP and UTCP tools through code execution instead of traditional function calling.
- Is code-mode open source?
- Yes — universal-tool-calling-protocol/code-mode is open source, released under the MPL-2.0 license.
- What language is code-mode written in?
- universal-tool-calling-protocol/code-mode is primarily written in TypeScript.
- How popular is code-mode?
- universal-tool-calling-protocol/code-mode has 1.5k stars on GitHub.
- Where can I find code-mode?
- universal-tool-calling-protocol/code-mode is on GitHub at https://github.com/universal-tool-calling-protocol/code-mode.