
universal-tool-calling-protocol/code-mode
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
🔌 코드 실행을 통해 에이전트가 MCP 및 UTCP 도구를 호출할 수 있도록 플러그 앤 플레이 라이브러리.
개요
🤖 코드 모드 라이브러리: 코드 실행을 통한 도구 호출을 위한 최초의 라이브러리 AI 에이전트를 단순한 툴 호출자에서 효율적인 코드 실행자로 단 3줄로 변신시키세요. LLM은 코드 작성에는 뛰어나지만 툴 호출에는 어려움을 겪습니다. 수백 개의 도구를 직접 노출하는 대신, TypeScript 코드를 실행하는 하나의 툴을 제공해 전체 툴킷에 접근할 수 있게 하세요. Apple, Cloudflare, Anthropic은 Code-Mode가 전통적인 덤프 함수 정보 이후 JSON 추출보다 도구 호출에 더 효율적인 방법이라고 말합니다. 독립적인 파이썬 벤치마크 연구는 하루 1,000개의 시나리오로 성능 주장을 검증합니다: - 단일 코드 블록이 여러 API 호출을 대체함 - LLM은 코드 생성에 비해 도구 오케스트레이션에 뛰어나다 - 작업 간 컨텍스트 재처리 없음 ](https://www.youtube.com/watch?v=zsMjkPzmqhA) 그게 전부입니다. 이제 AI 에이전트는 수십 번의 요청 대신 한 번의 요청으로 복잡한 워크플로우를 실행할 수 있습니다.
개요(AI 번역)
–>
🤖 코드 모드 라이브러리: 코드 실행을 통한 도구 호출을 위한 최초의 라이브러리
AI 에이전트를 단순한 툴 호출자에서 효율적인 코드 실행자로 단 3줄로 변화시키세요.
왜 이것이 모든 것을 바꾸는지
LLM은 코드 작성에는 뛰어나지만 툴 호출에는 어려움을 겪습니다. 수백 개의 도구를 직접 노출하는 대신, TypeScript 코드를 실행하는 하나의 툴을 제공해 전체 툴킷에 접근할 수 있게 하세요.
Apple, Cloudflare, Anthropic은 Code-Mode가 전통적인 덤프 함수 정보 이후 JSON 추출보다 도구 호출에 더 효율적인 방법이라고 말합니다.
벤치마크
독립적인 파이썬 벤치마크 연구는 하루 1,000개 시나리오에서 연간 9,536달러의 비용 절감**로 성능 주장을 검증합니다:
| 시나리오 복잡도 | 전통 | 코드 모드 | 개선 |
|---|---|---|---|
| 단순 (2-3개의 도구) | 3번 반복 | 1번 실행 | 67% 빨라짐 |
| 중간 크기 (4-7개의 도구) | 8번 반복 | 1번 실행 | 75% 빠름 |
| 복잡함 (8+ 도구) | 16회 반복 | 1회 실행 | 88% 빨라짐 |
코드 모드가 지배적인 이유:
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Transform your AI agents from clunky tool callers into efficient code executors — in just 3 lines.
Why This Changes Everything
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.
Benchmarks
Independent Python benchmark study validates the performance claims with $9,536/year cost savings at 1,000 scenarios/day:
| Scenario Complexity | Traditional | Code Mode | Improvement |
|---|---|---|---|
| Simple (2-3 tools) | 3 iterations | 1 execution | 67% faster |
| Medium (4-7 tools) | 8 iterations | 1 execution | 75% faster |
| Complex (8+ tools) | 16 iterations | 1 execution | 88% faster |
Why Code Mode Dominates:
Batching Advantage - Single code block replaces multiple API calls
Cognitive Efficiency - LLMs excel at code generation vs. tool orchestration
Computational Efficiency - No context re-processing between operations
Getting Started
Get Started in 3 Lines
import { CodeModeUtcpClient } from '@utcp/code-mode';
const client = await CodeModeUtcpClient.create(); // 1. Initialize
await client.registerManual({ name: 'github', /* MCP config */ }); // 2. Add tools
설치
npx @utcp/code-mode-mcp설정
{
"mcpServers": {
"code-mode": {
"command": "npx",
"args": ["@utcp/code-mode-mcp"],
"env": {
"UTCP_CONFIG_FILE": "/path/to/your/.utcp_config.json"
}
}
}
}