← all repositories

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.

1.5k stars Python AgentsCoding Assistants
code-mode
Velocity · 7d
+7.1
★ / day
Trend
steady
star history

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.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.