Scan your whole stack
From OX Research Newsroom
Are you using @frontmcp/plugin-codecall?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.13.0-rc.2
@frontmcp/plugin-codecall was last scanned on 26 Nov 2026 at version 1.13.0-rc.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.13.0-rc.2 LATEST | 26 Nov 2026 | No rules fired |
| 1.13.0-rc.1 | 26 Nov 2026 | No rules fired |
| 1.12.3 | 24 Nov 2026 | No rules fired |
| 1.12.2 | 14 Nov 2026 | Not shown |
| 1.12.1 | 13 Nov 2026 | Not shown |
Findings for v1.13.0-rc.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.13.0-rc.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
A FrontMCP plugin for servers with more tools than a model can usefully read. Instead of every tool and its schema,
tools/list shows CodeCall's meta-tools. The model searches your tools with codecall:search, reads the schemas of
the ones it picked with codecall:describe, and calls them: one at a time with codecall:invoke, or several in one
request with codecall:execute, which runs a short program written in AgentScript, a restricted subset of
JavaScript, in a sandbox on the server. A script can loop over results, filter and join them, so only the answer goes
back to the model.
npm install @frontmcp/plugin-codecall @frontmcp/plugin-cache @frontmcp/sdk
Requires Node.js 24 or later. @frontmcp/plugin-cache is a
required peer dependency: install it next to this package, at the same version. CodeCall registers the cache plugin
itself, so you don't list it in plugins. Keep @frontmcp/sdk on the same version too.
For embedding: { strategy: 'ml' }, also install @huggingface/transformers, an optional peer dependency of
vectoriadb, which CodeCall uses for search.
Register the plugin with init(), in the plugins of an @App or of @FrontMcp:
import { CodeCallPlugin } from '@frontmcp/plugin-codecall';
import { App, FrontMcp, Tool, ToolContext, z } from '@frontmcp/sdk';
@Tool({
name: 'list_tickets',
description: 'List support tickets',
inputSchema: { status: z.enum(['open', 'closed']) },
})
class ListTickets extends ToolContext {
async execute({ status }: { status: 'open' | 'closed' }) {
return { tickets: [{ id: 'T-1', status, customerId: 'C-7' }] };
}
}
@Tool({ name: 'get_customer', description: 'Get a customer by id', inputSchema: { id: z.string() } })
class GetCustomer extends ToolContext {
async execute({ id }: { id: string }) {
return { id, name: 'Ada', plan: 'pro' };
}
}
@App({
id: 'help-desk',
name: 'Help Desk',
tools: [ListTickets, GetCustomer],
plugins: [CodeCallPlugin.init({ mode: 'codecall_only' })],
})
class HelpDeskApp {}
@FrontMcp({ info: { name: 'help-desk', version: '1.0.0' }, apps: [HelpDeskApp] })
export default class Server {}
tools/list now shows only the codecall:* tools. Registered on one app, CodeCall still hides every app's tools
(unless you set appIds), and its tools search and call every app's tools.
Every option is optional: CodeCallPlugin.init() and plugins: [CodeCallPlugin] use the defaults. init() checks
the options when your module is imported, and throws a ZodError naming a wrong one.
| Tool | What it does |
|---|---|
codecall:search |
Finds tools for short queries (queries: 1 to 10 phrases). |
codecall:describe |
Returns tools' input and output schemas, with usage examples. |
codecall:invoke |
Calls one tool and returns its result. |
codecall:execute |
Runs an AgentScript program that calls tools. |
codecall:searchSkills |
Finds skills that call tools. |
codecall:searchKnowledge |
Finds skills that are only instructions. |
They're listed in every mode, and neither codecall:invoke nor a script can call them.
mode |
In tools/list |
What CodeCall may use |
|---|---|---|
'codecall_only' (default) |
CodeCall's tools, and tools with codecall: { visibleInListTools: true } |
Every tool, except those with enabledInCodeCall: false |
'codecall_opt_in' |
Every tool, except those with visibleInListTools: false |
Only tools with codecall: { enabledInCodeCall: true } |
'metadata_driven' |
Every tool, except those with visibleInListTools: false |
Every tool, except those with enabledInCodeCall: false |
A client that calls a tool CodeCall takes out of tools/list gets Tool "…" not found (TOOL_NOT_FOUND). Calls
from the server, through CodeCall's own tools or this.callTool(), still reach it. In codecall_only, a tool a
client or widget calls directly needs visibleInListTools: true.
The plugin adds a codecall field to @Tool:
@Tool({
name: 'delete_customer',
description: 'Delete a customer and all their tickets',
inputSchema: { id: z.string() },
codecall: { enabledInCodeCall: false, visibleInListTools: true },
})
| Option | Default | Description |
|---|---|---|
mode |
'codecall_only' |
Which tools tools/list shows, and which CodeCall may use. See Modes. |
appIds |
every app | In codecall_only, hide only these apps' tools from tools/list. It doesn't limit what CodeCall searches or calls. |
includeTools |
(tool) => boolean. A tool it returns false for isn't searched, described, invoked or callable from scripts. |
|
directCalls |
unset | { enabled, allowedTools?, filter? }, limits what codecall:invoke may call. |
vm |
{ preset: 'secure' } |
The sandbox's limits: preset ('locked_down', 'secure', 'balanced', 'experimental'), runtime, timeoutMs, maxToolCalls, allowLoops, and others. |
embedding |
TF-IDF | How codecall:search ranks tools: strategy ('tfidf' or 'ml'), modelName, cacheDir, useHNSW, synonymExpansion. |
sidecar |
{ enabled: false } |
Allows scripts longer than 64 KB. |
topK |
8 |
Results per query when a codecall:search call doesn't give its own topK. |
maxDefinitions |
8 |
Most tools one codecall:describe call may name. |
CodeCallPlugin.init({
mode: 'codecall_opt_in',
directCalls: { enabled: true, allowedTools: ['get_customer'] },
vm: { preset: 'secure', timeoutMs: 3500 },
embedding: { strategy: 'ml' },
});
secure preset, a script times out after 3.5 seconds (vm.timeoutMs)
and may call tools up to 5,000 times (vm.maxToolCalls). Loops are limited to for…of, and for (…; …; …) with
vm.allowLoops: true. The other presets set other limits.vm.maxSteps is the old name of vm.maxToolCalls. It still works and still counts tool calls, not interpreter
steps. Setting both to different values is refused when the plugin starts. Either one must be an integer from 1 to
100,000; up to 1.12.2 a fraction or a larger number was accepted.vm.rapidEnumerationThreshold calls (default 30) to one tool within about 2
seconds stop the script with [RAPID_ENUMERATION]; calls made through parallel() count. Set per-tool values with
vm.rapidEnumerationOverrides ({ 'users:get': 100 }). The sandbox's message says "in 5s", but it keeps only the
last 2 seconds of calls.embedding.strategy: 'ml', CodeCall loads a local model (Xenova/all-MiniLM-L6-v2 by
default), downloading it into embedding.cacheDir if it isn't there. When the model can't be loaded or used
(offline with nothing cached, @huggingface/transformers missing, or embedding the tools fails), CodeCall logs one
warning and searches with TF-IDF. A tool whose metadata can't be read is skipped with a warning; the others stay
searchable.Three settings are easy to confuse, and they are separate:
vm.preset is CodeCall's policy: the syntax a script may use and its limits. It never chooses where scripts run,
and it never changes Enclave's security level, which is STANDARD for every script. No option turns off Enclave's
validation or transformation of a script.
vm.runtime chooses the Enclave runtime that runs scripts:
'node-vm' (the default) is Enclave's sandbox on Node's vm module. It runs on Node only. An explicit
vm.runtime: 'node-vm' in a frontmcp build --target cloudflare bundle is refused when the plugin starts, because
nodejs_compat only stubs node:vm.'interpreter' is Enclave's validated AgentScript interpreter. It runs on Node and in Cloudflare Workers with
nodejs_compat. Select it explicitly in a Worker build. It needs @enclave-vm/core 2.20.0 or later, which the
plugin depends on; if an older Enclave is what resolves, execution fails closed instead of running the script.Neither runtime is a process boundary. Both run scripts inside the server's own process.
The deployment boundary is the process or container that runs the server. On Node, running CodeCall in a
dedicated, constrained child process or container is what contains native stderr output and a process-wide memory
failure. A Cloudflare Worker can forward codecall:execute to such a service, but then the script doesn't run in the
Worker. Changing vm.preset or vm.runtime doesn't give you this boundary.
For a Cloudflare Worker build, select the interpreter in the plugin options:
CodeCallPlugin.init({
mode: 'codecall_only',
vm: { preset: 'secure', runtime: 'interpreter' },
});
The interpreter has budgets of its own. Each one applies only with vm.runtime: 'interpreter', and setting one with
'node-vm' (set or left as the default) is refused when the plugin starts. Each must be an integer from 1 to its
maximum. You can lower a budget, but you can't raise it past Enclave's own default or ceiling, and you can't turn it off.
| Option | Default | Maximum | What it bounds |
|---|---|---|---|
vm.maxInterpreterSteps |
1,000,000 | 5,000,000 | Interpreter instructions per script; tool calls are vm.maxToolCalls |
vm.memoryLimitBytes |
1 MiB | 64 MiB | What a script may allocate, by the interpreter's estimate, and the size of its result |
vm.maxCallDepth |
256 | 256 | How deep a script's calls may nest |
vm.maxPendingCalls |
4096 | 4096 | Calls of a script unfinished at once, running or waiting |
Time, steps, tool calls, memory and, on Cloudflare, the platform's own CPU and memory limits are all finite on purpose. They're part of how CodeCall runs scripts safely. A sandbox can't be promised unbreakable, and none of these limits can be removed.
@frontmcp/sdk: the framework this plugin extends@frontmcp/plugin-cache: a required peer dependency@frontmcp/plugin-skilled-openapi: serves a
REST API as skills, which codecall:searchSkills finds@frontmcp/plugins: a meta-package that re-exports this plugin
with three othersSource: plugins/plugin-codecall. Issues
and pull requests are welcome; see CONTRIBUTING.md.
Apache-2.0. See LICENSE.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.