Code Mode

Code Mode

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

Add to your client

Claude Code — run this in your terminal:

claude mcp add code-mode --env UTCP_CONFIG_FILE=YOUR_UTCP_CONFIG_FILE -- npx @utcp/code-mode-mcp
Claude Desktop and other clients: paste this into the configuration file
{
  "mcpServers": {
    "code-mode": {
      "command": "npx",
      "args": [
        "@utcp/code-mode-mcp"
      ],
      "env": {
        "UTCP_CONFIG_FILE": "YOUR_UTCP_CONFIG_FILE"
      }
    }
  }
}

After adding, fill in: UTCP_CONFIG_FILE

Built from the configuration example in the project's README. The buttons open the app on your computer, which asks you to confirm before anything is added.

Install

npm install @utcp/code-mode
npx -y @utcp/code-mode-cli prompt
npx -y @utcp/code-mode-cli search "<task>" # discover tools + TS interfaces

Copied from the project's README. Read what it does before you run it.

README scanSafe

Nothing risky found in the commands its README asks you to run.

  • Needs an API key or tokenenv: { GITHUB_PERSONAL_ACCESS_TOKEN: process.env.GITHUB_TOKEN }

We scan the README only, not the code. A clean result is not proof of safety. How we scan

View on GitHub

Repository

Stars
1,667
Forks
115
Last updated
Aug 25, 2026
License
MPL-2.0
Language
TypeScript
Created
Nov 11, 2025
Open issues
7
Quality score
A 69/100

universal-tool-calling-protocol/code-mode

Read from GitHub daily.

See alternatives

Made by

No owner listed.

Sign in to claim this tool.