
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
secure-usage-mcp
Advanced tools
Model Context Protocol server for secure code guidance and high-risk tool mediation.
This Model Context Protocol (MCP) server enforces secure-by-design guardrails for AI-assisted development.
secure-code-review) – Produces a NIST SSDF and OWASP-aligned remediation plan, stack-specific hardening tips, and verification checklist. Optional code snippets are scanned for common anti-patterns (hardcoded secrets, eval, weak crypto, etc.).tool-risk-gatekeeper) – Evaluates planned tool executions for destructive operations (filesystem, infrastructure, database). Flags commands that require human approval and emits a ready-to-display confirmation prompt.agent-configuration-hardener) – Builds an endpoint hardening blueprint for IDE, CLI, and vibe coding agents. Covers sandboxing, remote indexing controls, plugin/MCP inventories, reasoning guardrails, and monitoring playbooks.secure-coding-governor prompt that IDEs/agents can apply as a baseline secure coding instruction set.Install and launch the compiled server directly from npm without cloning the repository:
npx -y secure-usage-mcp@latest
This resolves the published package, runs the compiled binary declared in the package manifest, and exposes the MCP server over STDIO. The shebang header ensures npx can execute it on all major platforms.
npm install
npm run build
npm start
The server communicates over STDIO. Integrate it with an MCP-compatible client (e.g., Claude Desktop, Cursor, or custom tooling) by referencing the compiled binary secure-usage-mcp.
SECURE_USAGE_LOG_LEVEL – Optional log level override (debug, info, warn, or error). Logs are emitted to stderr so the MCP protocol payloads on stdout remain untouched.Build the server output:
npm run build
Run the automated smoke test, which spawns the compiled server via the MCP SDK client and exercises both tools:
node scripts/smokeTest.mjs
The script prints the server instructions, a preview of the secure-coding-governor prompt, and structured output from the two tools. It also verifies that high-risk tooling requires an explicit Yes/No confirmation.
For a minimal verification that focuses on risk mediation, execute the included test-client.js script:
node test-client.js
This script connects to the built server, prints the instructions, and runs a sample tool-risk-gatekeeper request to confirm high-risk detection.
For interactive debugging, you can also run the server manually and inspect it with the open-source MCP Inspector:
npm start # in one terminal
Follow the Inspector README to point it at node dist/index.js via stdio and explore prompts/tools in a GUI.
Open Settings → Experimental → MCP Servers (or edit ~/.cursor/config.json).
Register the server with the published npm package so Cursor can resolve it via npx:
{
"mcpServers": {
"secure-usage": {
"command": "npx",
"args": ["-y", "secure-usage-mcp@latest"],
"env": {}
}
}
}
Restart Cursor. When a high-risk tool call is attempted, the chat panel will show a Yes/No confirmation. Answer No (or anything other than Yes) to halt execution.
Claude Code supports MCP servers over STDIO via a JSON config. You can either reference the built script directly or use npx to always fetch the latest published version.
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"secure-usage": {
"command": "npx",
"args": ["-y", "secure-usage-mcp@latest"],
"env": {}
}
}
}
Alternatively, point directly at a local build (useful for development):
{
"mcpServers": {
"secure-usage": {
"command": "/usr/local/bin/node",
"args": ["/absolute/path/to/secure-usage-mcp/dist/index.js"],
"env": {}
}
}
}
On Windows, adjust paths accordingly, for example:
{
"mcpServers": {
"secure-usage": {
"command": "C:/Program Files/nodejs/node.exe",
"args": ["C:/Users/<you>/projects/secure-usage-mcp/dist/index.js"],
"env": {}
}
}
}
secure-coding-governor becomes available, and destructive tools will require a Yes/No confirmation.rm -rf /tmp/demo) after connecting. You should see a risk assessment and a Yes/No prompt from tool-risk-gatekeeper.secure-code-review with your request and a short code snippet.npm i -g secure-usage-mcp and set command to secure-usage-mcp (no args).userPrompt and block execution until the operator answers "Yes". Treat any other response as "No".The guardrail policy requires explicit human approval. If an IDE cannot surface a Yes/No prompt, treat that as a No and halt.
secure-code-review with the request context and candidate code. Adopt the returned mitigations before accepting any changes.tool-risk-gatekeeper. If requiresApproval is true, surface the provided userPrompt to the operator and block execution until they explicitly approve.agent-configuration-hardener before enabling new plugins, MCP servers, or vibe coding agents. Apply the per-agent runtime controls, sandbox requirements, and monitoring hooks it prescribes.secure-coding-governor as a system/assistant message to keep large language models aligned with NIST and OWASP requirements.secure-code-review – Request/response schema, response structure, and usage tips for the secure guidance generator.tool-risk-gatekeeper – Input parameters, output contract, and operator workflow for high-risk tooling mediation.agent-configuration-hardener – Inventory format, policy coverage, and sample outputs for IDE/CLI/vibe agent hardening.npm run dev – Start the TypeScript server with hot reload using ts-node.npm run build – Compile TypeScript to JavaScript (output in dist/).npm start – Run the compiled server.This project is licensed under the MIT License. See LICENSE.
FAQs
Model Context Protocol server for secure code guidance and high-risk tool mediation.
The npm package secure-usage-mcp receives a total of 0 weekly downloads. As such, secure-usage-mcp popularity was classified as not popular.
We found that secure-usage-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.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.