
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
rsbuild-plugin-mcp
Advanced tools
Rsbuild plugin that enables a MCP server for your Rsbuild app to provide information about your setup and modules graphs.
Rsbuild plugin that enables a MCP server for your Rsbuild app to provide information about your setup and modules graphs.
Install:
npm add rsbuild-plugin-mcp -D
Add plugin to your rsbuild.config.ts:
import { defineConfig } from '@rsbuild/core';
import { pluginMCP } from 'rsbuild-plugin-mcp';
export default defineConfig({
plugins: [pluginMCP()],
});
mcpRouteRootstring | undefined/__mcpCustomize the routes of the MCP server.
import { defineConfig } from '@rsbuild/core';
import { pluginMCP } from 'rsbuild-plugin-mcp';
export default defineConfig({
plugins: [
pluginMCP({
mcpRouteRoot: '/api/__mcp',
}),
],
});
The MCP server can be extended with the following ways:
Use the mcpServerSetup to customize the MCP server.
import { defineConfig } from '@rsbuild/core';
import { pluginMCP } from 'rsbuild-plugin-mcp';
export default defineConfig({
plugins: [
pluginMCP({
mcpServerSetup(mcpServer) {
// Register tools, resources and prompts
mcpServer.tool(); /** args */
mcpServer.resource(); /** args */
mcpServer.prompt(); /** args */
},
}),
],
});
You may also return a new McpServer instance to replace the default one:
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { defineConfig } from '@rsbuild/core';
import { pluginMCP } from 'rsbuild-plugin-mcp';
export default defineConfig({
plugins: [
pluginMCP({
mcpServerSetup() {
// Create a new `McpServer` and return
const mcpServer = new McpServer();
// Register tools, resources and prompts
mcpServer.tool();
return mcpServer;
},
}),
],
});
This plugin exposes the McpServer instance using api.expose.
You may use api.useExposed to get the instance and make customization:
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
import type { RsbuildPlugin } from '@rsbuild/core'
export function pluginFoo(): RsbuildPlugin {
return {
name: 'plugin-foo',
pre: ['plugin-mcp'],
setup(api) {
if (api.isPluginExists('plugin-mcp')) {
const mcpServer = api.useExposed<McpServer>('rsbuild-plugin-mcp:mcpServer')!
// Register tools, resources and prompts
mcpServer.tool(/** args */)
mcpServer.resource(/** args */)
mcpServer.prompt(/** args */)
}
},
},
}
This plugin is inspired by vite-plugin-mcp. Both the implementation and documentation have been adapted and referenced from the original Vite plugin.
MIT.
FAQs
Rsbuild plugin that enables a MCP server for your Rsbuild app to provide information about your setup and modules graphs.
We found that rsbuild-plugin-mcp 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.