Code-Mode Library lets AI agents access MCP and UTCP tools by executing generated TypeScript code through a single code-execution interface. It is designed for agents that need to combine or batch many tool operations into workflows. The catalogue skill provides this code-based tool-calling workflow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add universal-tool-calling-protocol/code-mode --skill code-mode-cligit clone --depth 1 https://github.com/universal-tool-calling-protocol/code-modeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/universal-tool-calling-protocol/code-mode/code-mode-cli)<a href="https://agentmods.dev/skills/universal-tool-calling-protocol/code-mode/code-mode-cli"><img src="https://agentmods.dev/badge/skills/universal-tool-calling-protocol/code-mode/code-mode-cli/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/universal-tool-calling-protocol/code-mode/code-mode-cli"><img src="https://agentmods.dev/badge/skills/universal-tool-calling-protocol/code-mode/code-mode-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 4 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 37 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- medium MCP Rug Pull · line 11 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 20 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
- medium MCP Rug Pull · line 26 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00146 | $0.01117 |
| Opus 5.5 | $0.00058 | $0.00447 |
| Sonnet 5.5 | $0.00029 | $0.00223 |
| Haiku 4.5 | $0.00015 | $0.00112 |
Grade A, and why
utcp-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
utcp cli
utcp (npm: @utcp/code-mode-cli) lets you call UTCP
tools by writing TypeScript that executes in an isolated sandbox. It needs only a
shell and a working folder — no MCP, no environment variables.
Run everything via npx @utcp/code-mode-cli <command> (or utcp <command>
if installed). All output is JSON on stdout.
1. Read the guide
npx @utcp/code-mode-cli prompt
2. Configure (write a file — no env vars)
Write .utcp_config.json in the working directory listing the manuals (APIs /
MCP servers / CLIs) you need:
{
"load_variables_from": [
{ "variable_loader_type": "dotenv", "env_file_path": ".env" }
],
"manual_call_templates": [
{
"name": "openlibrary",
"call_template_type": "http",
"http_method": "GET",
"url": "https://openlibrary.org/static/openapi.json",
"content_type": "application/json"
}
]
}
Transports: http (incl. OpenAPI URLs), mcp (remote/local MCP servers), cli,
text, file.
3. Discover
utcp search "search for books" # returns tools + TypeScript interfaces
utcp list # all tool names
utcp info <tool> # full interface for a tool
utcp keys <tool> # required variables (tokens) for a tool
4. Run a tool-chain
Call tools as manual.tool({ args }). Top-level await and return work.
Use a heredoc for multi-line code:
utcp run <<'EOF'
const r = await openlibrary.read_search_json_search_json_get({ q: "tolkien", limit: 3 });
return (r.docs || []).map(b => b.title);
EOF
Output: {"success":true,"result":<value>,"logs":[...]}.
5. Interactive OAuth (user signs into a page)
Declare an oauth2_user auth block on the manual. For a remote MCP server the
block is just { "auth_type": "oauth2_user", "access_token": "${MY_TOKEN}" } —
endpoints are auto-discovered. Then:
utcp login <manual>
login prints NDJSON describing what to do next. Handle it like this:
What ships with it
11 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 118 lines · 146 tokens per session scan A 6e09cfb4cbdc
utcp-cli is a skill published in the GitHub repository universal-tool-calling-protocol/code-mode (1,599 stars, last pushed 1mo ago), licensed MPL-2.0. It adds 146 tokens to every session and 1,117 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
design-mcp-server
Design the tool surface, resources, and service layer for a new MCP server. Use when starting a new server, planning a major feature expansion, or when the user describes a domain/API they want to expose via MCP. Produces a design doc at docs/design.md that drives implementation.
api-telemetry
Catalog of OpenTelemetry instrumentation built into framework @cyanheads/mcp-ts-core — spans, metrics, completion logs, env config, runtime caveats, custom instrumentation patterns, and cardinality rules. Use when enabling OTel export, adding custom spans or metrics in services, debugging missing telemetry, looking up…
api-mirror
Stand up a persistent, self-refreshing local mirror of a bulk upstream dataset with the MirrorService (@cyanheads/mcp-ts-core/mirror). Use when a server wraps a large or slow API and should query a synced local index (embedded SQLite + FTS5) instead of paginating the live API per request.
api-services
API reference for built-in service providers (LLM, Speech, Graph). Use when looking up service interfaces, provider capabilities, or integration patterns.
stripe
Query and manage Stripe resources (customers, payments, subscriptions). Reads from apps/website/.env. Write operations blocked on live keys.
cmdb-patterns
Create ServiceNow CIs and cmdbrelci relationships, walk upstream/downstream impact, detect orphan/stale CIs, and align discovered CIs with the proper sysclassname hierarchy.