
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@modelcontextprotocol/server-basic-react
Advanced tools

An MCP App example with a React UI.
[!TIP] Looking for a vanilla JavaScript example? See
basic-server-vanillajs!
Add to your MCP client configuration (stdio transport):
{
"mcpServers": {
"basic-react": {
"command": "npx",
"args": [
"-y",
"--silent",
"--registry=https://registry.npmjs.org/",
"@modelcontextprotocol/server-basic-react",
"--stdio"
]
}
}
}
To test local modifications, use this configuration (replace ~/code/ext-apps with your clone path):
{
"mcpServers": {
"basic-react": {
"command": "bash",
"args": [
"-c",
"cd ~/code/ext-apps/examples/basic-server-react && npm run build >&2 && node dist/index.js --stdio"
]
}
}
}
useApp() hookcallServerTool, sendMessage, sendLog, openLinkserver.ts - MCP server with tool and resource registrationmcp-app.html / src/mcp-app.tsx - React UI using useApp() hooknpm install
npm run dev
get-time tool with metadata linking it to a UI HTML resource (ui://get-time/mcp-app.html).This example bundles into a single HTML file using Vite with vite-plugin-singlefile — see vite.config.ts. This allows all UI content to be served as a single MCP resource. Alternatively, MCP apps can load external resources by defining _meta.ui.csp.resourceDomains in the UI resource metadata.
FAQs
Basic MCP App Server example using React
The npm package @modelcontextprotocol/server-basic-react receives a total of 304 weekly downloads. As such, @modelcontextprotocol/server-basic-react popularity was classified as not popular.
We found that @modelcontextprotocol/server-basic-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.