code-mode

code-mode

A plug-and-play library enabling AI agents to invoke MCP and UTCP tools via code execution.

MCPDevOpen source
Type
MCP
Transport
http
Open source
Yes
GitHub Stars
★ 1.5k
Source
mcp-github

Overview

code-mode is a plug-and-play library that allows AI agents to call MCP and UTCP tools through code execution. It replaces multiple API calls with a single code block, improving LLM efficiency in tool invocation. Initialize, add tools, and execute code with just three lines. Suitable for enterprise-grade applications requiring efficient handling of complex workflows.

Capabilities

  • Invoke MCP and UTCP tools via code execution
  • Dynamic discovery and loading of required tools
  • Natural code execution with chained operations
  • Auto-generate TypeScript interfaces
  • Secure VM sandbox isolation
  • Timeout protection

Use cases

Simplify tool invocation workflows for AI agentsImprove execution efficiency for complex workflowsEnsure security and observability in enterprise applications

Setup

Requires: Node.js环境API Key
npm install @utcp/code-mode

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How do I initialize the Code-Mode client?

Use `import { CodeModeUtcpClient } from '@utcp/code-mode'; const client = await CodeModeUtcpClient.create();`.

What protocols are supported?

Supports MCP, HTTP, File, and CLI protocols.

Related skills