Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@ractive-ch/tab-mcp-client

Latest version: v0.24.0-rc.1

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: ractive.ch
1 Stars
0 Forks
39 Versions
6.7K Downloads
TypeScript Repo language

Scan summary

@ractive-ch/tab-mcp-client was last scanned on 23 Nov 2026 at version 0.24.0-rc.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 39 versions; the latest 5 were published within 2 days (22 and 23 Nov 2026).
  • Findings: No rules fired in version 0.24.0-rc.1.
  • Downloads: 6,724 downloads.

Versions

39 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.24.0-rc.1 LATEST 23 Nov 2026 No rules fired
0.23.0 23 Nov 2026 No rules fired
0.22.0 22 Nov 2026 No rules fired
0.22.0-rc.1 22 Nov 2026 Not shown
0.21.0 22 Nov 2026 Not shown

No rules fired in 0.24.0-rc.1

Findings

Findings for v0.24.0-rc.1. 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 0.24.0-rc.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@ractive-ch/tab-mcp-client

Offer a web page's functions as MCP tools to AI apps (Claude, ChatGPT, Claude Code, Codex) through a tab-mcp relay. The page connects to the relay and shows its app's address, which is the same for every page of the app. The user adds that address to their AI app and types a pairing code from the page, which tells the relay which page is meant; the AI app then calls the page's tools while the tab stays open. Nothing is installed on the user's computer. Unless a page sets webmcp: false, the library also registers the tools with the browser's own WebMCP, for agents in the browser. A site's own assistant can call the same tools over a port, without a relay: Your own assistant on the page. A browser extension that is a tab-mcp page itself can fill in its pairing code on the relay's page for its user: For browser extensions.

How the library, the relay and the tab-mcp browser extension fit together, with a picture: How the parts fit together.

Status: 0.23.0. Until 1.0, a new minor version can still change the API. Which AI apps work is listed in compatibility.

With a coding agent

You only need the install:

npm install @ractive-ch/tab-mcp-client

Then tell your coding agent (Claude Code, Codex or another):

Read node_modules/@ractive-ch/tab-mcp-client/skill/SKILL.md and add tab-mcp to this app.

Then ask for what you want: which features of the page AI apps may use, and which of them ask first. The guide is an Agent Skill written for the version in your node_modules, and it links this README for the details. No such file means the installed version is older than this guide: update the package.

The path is relative to the folder of the app that installed the package (in a monorepo, that app's folder, where its own node_modules is), the same with npm, Bun, pnpm and Yarn's node_modules linker. Yarn Plug'n'Play keeps packages in zip files: run yarn unplug @ractive-ch/tab-mcp-client and give the agent the skill/SKILL.md under .yarn/unplugged/.

You need a relay

The page talks to a tab-mcp relay, which only accepts pages from the origins its operator allows. Run your own: the relay is on npm as @ractive-ch/tab-mcp and on Docker Hub as ractive/tab-mcp. For local development:

docker run --rm -p 8080:8080 \
  -e NODE_ENV=development \
  -e TAB_MCP_PUBLIC_URL=http://localhost:8080 \
  -e TAB_MCP_ALLOWED_ORIGINS=http://localhost:3000 \
  -e TAB_MCP_STORE=memory \
  ractive/tab-mcp:0.13.3

For production, see self-hosting.

A page that offers its tools only to its own assistant (serve) or to agents in the browser (webmcp) needs no relay: leave relay out.

Install

npm install @ractive-ch/tab-mcp-client

Or without a bundler, from a CDN as an ES module:

<script type="module">
  import { TabMcp } from "https://cdn.jsdelivr.net/npm/@ractive-ch/tab-mcp-client@0.23.0/cdn/tab-mcp-client.min.js";
</script>

Use

import { TabMcp } from "@ractive-ch/tab-mcp-client";

const mcp = new TabMcp({
  relay: "https://relay.example",
  server: { name: "calculator", version: "1.0.0" },
  appName: "calculator",
});

await mcp.registerTool({
  name: "add",
  description: "Add two numbers",
  inputSchema: {
    type: "object",
    properties: { a: { type: "number" }, b: { type: "number" } },
    required: ["a", "b"],
  },
  annotations: { readOnlyHint: true },
  execute: ({ a, b }) => Number(a) + Number(b),
});

// From a click: connects and shows the address to add to the AI app.
button.addEventListener("click", () => mcp.showConnectDialog());

Importing the library loads only a small core; connect() loads the rest, and the WebMCP mirror loads where the browser has WebMCP (unless webmcp: false).

server is what the AI app sees: name, version, optional title and instructions, and icons. Without icons, the page's own <link rel="icon"> and <link rel="apple-touch-icon"> are sent, so an AI app that shows icons can show the page's for its connector. icons: [{ src, mimeType?, sizes?, theme? }] (MCP's Icon) sets them instead, icons: [] sends none. At most 8: https: (or http:) URLs, or PNG, JPEG, GIF, WebP or ICO data: URIs up to 16 KiB (no inline SVG). They go only in server/discover. An icon on localhost reaches only an AI app on the same computer.

app is the app id: the <app> of the page's MCP address https://<relay>/s/<app>/mcp, which every page of the app shares. It is 1 to 32 characters of a-z, 0-9 and -, not starting or ending with -; anything else is a TypeError. Without app, the id is made from server.name: lower case, letters without their marks, each run of other characters as one -, at most 32 characters ("My Notes" gives my-notes, "Bücher" gives bucher). A name that leaves nothing (no letter a-z and no digit) is a TypeError when relay is set: set app then. A relay may reserve an app id for certain origins (sites[].apps in its configuration); a page of another origin that names it is refused (connect() rejects, reason policy). appName is a name for people (at most 64 characters), shown in "the page is not open" answers.

Tools

registerTool(tool, { signal, callers, exposedTo }) takes a tool in the shape of the WebMCP draft's registerTool (callers: which callers see a tool; exposedTo: see WebMCP):

  • name (1-128 characters of A-Z a-z 0-9 _ - .), title, description (not empty);
  • inputSchema: a JSON Schema with "type": "object". Arguments are checked against it before execute runs. registerTool rejects a schema the validator cannot use (a pattern that is not a regular expression, a $ref that does not resolve; values of default, examples, const and enum are data and are not read as schema). The validator itself is loaded by connect(): from then on it checks each schema at registration too, and a tool registered earlier whose schema it refuses (for example a $ref next to a nested $id) is unregistered, with the reason in the event error;
  • outputSchema (optional): a JSON Schema with "type": "object" for the result, listed to AI apps (tools/list) and passed on to WebMCP. registerTool checks it as it checks inputSchema, also with the validator once connect() has loaded it (an AI app compiles it when it lists the tools, and one that does not compile can cost the whole list), but results are not checked against it. An AI app expects every result of such a tool to carry structuredContent that matches it (the MCP SDK's client refuses one without), so execute returns a plain object, not a string;
  • execute(input, { signal, client }): runs the tool. signal aborts when the caller gives up (or a served call takes too long); the call ends then, also if execute does not stop, and what it returns later is dropped. client names the caller: { kind: "relay", grantId, id, host, name? } for an AI app through the relay (id, verified host, declared name), { kind: "local", id, name? } for the site's own assistant on a served port, with the id and name the page gave serve (Your own assistant), or { kind: "webmcp" } for a WebMCP caller (WebMCP: an agent in the browser, another extension, or a document of an exposedTo origin), of which nothing more is known (unless the tab-mcp browser extension vouched for the call: then { kind: "webmcp", via: "tab-mcp-extension", name, host }, with the extension). Check client.kind before you read host. Return a string (one text block), an MCP result (passed through with its _meta: an object whose content is an array of MCP content blocks, each with type text, image, audio, resource_link or resource and the fields that type needs), or any other JSON value (sent as JSON text, and as structuredContent when that JSON is an object; a Date becomes a string, so it has none). Data that only looks like a result, such as a ProseMirror document with its content array, is sent as JSON. A thrown error becomes an error result with its message;
  • annotations: the WebMCP hints readOnlyHint, consequentialHint, untrustedContentHint and debugging (a tool meant for the page's developers), and the MCP hints destructiveHint, idempotentHint, openWorldHint. A hint must be true or false: registerTool rejects any other value with a TypeError, since a consequentialHint: "true" that was dropped would run the tool without asking. MCP has no untrustedContentHint: every result of such a tool carries a marker in its _meta (untrusted results).

Where registerTool differs from the WebMCP draft's (of 12 November 2026), so that code written for the native API behaves differently here:

  • An invalid name, an empty description or an invalid schema is a TypeError; the draft rejects the first two with an InvalidStateError. A duplicate name is an InvalidStateError in both.
  • inputSchema and outputSchema need "type": "object", as MCP does; the draft takes any object. The library also checks the patterns and $refs of both (above).
  • The library checks the arguments against inputSchema before execute runs; the draft leaves that to the page.
  • execute may return an MCP result; through WebMCP it goes out as its structuredContent or its text (WebMCP).
  • exposedTo matters only for WebMCP: it is passed on to the native registration of a mirrored tool, and AI apps never see it. A document of a listed origin can run the tool, and the library does not ask it (who asks). A tool that asks, with an exposedTo naming other origins, on a page without onConfirm gets a console warning once, when it is registered with WebMCP.

An already aborted signal rejects with its reason and registers nothing, as in the draft.

In TypeScript, Tool<Input> types the input of execute, and registerTool and useTool infer it from the tool or take it explicitly (registerTool<{ a: number; b: number }>(…)); without it, input is a Record<string, unknown>. The library checks the arguments against inputSchema, not against the type, so keep the two in step.

Abort the signal to remove the tool. AI apps that listen for changes learn about added and removed tools.

WebMCP

new TabMcp({ ... }) also registers the tools with the browser's own WebMCP (document.modelContext.registerTool(), the WebMCP draft of the W3C Web Machine Learning Community Group; explainer), where the browser has it, so that agents in the browser can call them: an agent built into the browser, or an extension such as the tab-mcp browser extension, which sees a page's tools only there. On by default: where the tab has WebMCP, any agent in the browser can call the mirrored tools without pairing. webmcp: false keeps every tool out of WebMCP (and the page out of the handshake with the extension); callers: ["relay", "local"] keeps one tool out (which callers see a tool). Chrome has WebMCP for sites in its origin trial (Chrome 149 to 162; a site needs a trial token) and with chrome://flags/#enable-webmcp-testing (Chrome's WebMCP docs). Without either, the mirror does nothing. Each new TabMcp looks for WebMCP when it is made, so a trial token that a script adds later counts for a TabMcp made after it.

Who asks before a tool that asks runs

A "tool that asks" is one marked consequentialHint (for WebMCP calls also one marked only destructiveHint). Whether the user is asked before it runs, and by whom, depends on the caller (DEC-215):

  • an AI app through the relay, or the site's own assistant on a served port: the page asks the user (onConfirm, else the library's dialog), unless the user already allowed that tool for that AI app ("Always allow", below);
  • a WebMCP call the tab-mcp browser extension vouched for: the extension asked the user;
  • any other WebMCP call: the library asks no one; only the page's onConfirm, in code, or the caller itself can.

The table has the details. Every WebMCP call that the tab-mcp browser extension did not vouch for reaches the page as client: { kind: "webmcp" }, whoever made it: the page cannot tell the last three rows apart.

Caller Can it click in the tab? Who asks
An AI app through the relay no the page: onConfirm, else the library's dialog
An AI app through the tab-mcp browser extension (a WebMCP call the extension vouched for) no the extension, in its side panel; the page does not ask again
An agent in the browser that drives the tab (unvouched WebMCP call) yes the agent, in its own chat, if it heeds consequentialHint; the page's onConfirm if it has one; never the library's dialog
Another extension that passes on calls of an AI app outside the browser (unvouched WebMCP call) no, unless that extension lets it that extension, if it asks (as the tab-mcp browser extension does in its side panel); the page's onConfirm if it has one; never the library's dialog
A document of another origin that the page named in exposedTo (unvouched WebMCP call) no, not in the page only the page's onConfirm, if it has one; never the library's dialog

The library shows no question for an unvouched WebMCP call: without onConfirm a tool that asks runs. For an agent that drives the tab the dialog was no check (with ChatGPT's browser the call waited most of a minute, then the agent clicked "Allow once" itself). For the other two it was one, and it is gone: whether the user is asked then depends on the calling extension or the other origin's script, which the page does not know. A page with a tool that must not run on such a caller's word decides in code or keeps the tool away:

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @ractive-ch/tab-mcp-client

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229