
Research
/Security News
CanisterWorm: npm Publisher Compromise Deploys Backdoor Across 29+ Packages
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.
@mcp-apps-kit/ui
Advanced tools
Client-side (UI/widget) SDK for MCP apps.
Use this package inside the HTML/JS UI that your tool returns (a widget). It gives you a single createClient() API that auto-detects the host and lets you:
This package is framework-agnostic (vanilla TS/JS). If you’re using React, prefer @mcp-apps-kit/ui-react.
npm install @mcp-apps-kit/ui
import { createClient } from "@mcp-apps-kit/ui";
const client = await createClient();
// Call a tool by name
await client.callTool("greet", { name: "Alice" });
// React to host context changes (theme, etc.)
client.onHostContextChange((ctx) => {
document.documentElement.dataset.theme = ctx.theme;
});
If your server exports tool types, you can parameterize the client to get fully typed callTool() inputs/outputs.
import { createClient } from "@mcp-apps-kit/ui";
import type { AppClientTools } from "../server";
const client = await createClient<AppClientTools>();
await client.callTool("search_restaurants", { location: "Paris" });
You can force a specific adapter (useful in local dev / unit tests):
import { createClient } from "@mcp-apps-kit/ui";
const client = await createClient({ forceAdapter: "mock" });
The client debug logger allows you to send structured logs from your UI to the server through the MCP protocol. This bypasses sandbox restrictions in iframe environments where console access may be unavailable (e.g., mobile ChatGPT).
import { clientDebugLogger } from "@mcp-apps-kit/ui";
// Configure the logger (call once at app startup)
clientDebugLogger.configure({
enabled: true, // Enable MCP transport
level: "debug", // Minimum level to log
source: "my-widget", // Identifier for log entries
});
// Log messages at different levels
clientDebugLogger.debug("Component mounted", { props });
clientDebugLogger.info("User action", { action: "click", target: "button" });
clientDebugLogger.warn("Validation warning", { field: "email" });
clientDebugLogger.error("API request failed", { error: err.message });
console when MCP transport is unavailableclientDebugLogger.configure({
enabled: true, // Enable/disable MCP transport
level: "info", // "debug" | "info" | "warn" | "error"
batchSize: 10, // Flush after N log entries
flushIntervalMs: 5000, // Max time between flushes (ms)
source: "my-app", // Source identifier for logs
});
For the logs to be received, the server must have debug logging enabled:
// server/index.ts
const app = createApp({
config: {
debug: { enabled: true, level: "debug" },
},
});
See also: @mcp-apps-kit/core README for server-side configuration.
MIT
FAQs
Client-side SDK for MCP applications (vanilla JavaScript)
The npm package @mcp-apps-kit/ui receives a total of 15 weekly downloads. As such, @mcp-apps-kit/ui popularity was classified as not popular.
We found that @mcp-apps-kit/ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.

Research
/Security News
Attackers compromised Trivy GitHub Actions by force-updating tags to deliver malware, exposing CI/CD secrets across affected pipelines.

Security News
ENISA’s new package manager advisory outlines the dependency security practices companies will need to demonstrate as the EU’s Cyber Resilience Act begins enforcing software supply chain requirements.