
Research
/Security News
OpenAPI React Query Codegen Compromised in Mini Shai-Hulud npm Supply Chain Attack
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.
@graneth/mcp-server
Advanced tools
Account-free MCP server: catch AI-hallucinated packages and hardcoded secrets before you commit. Exposes the free pre_flight_check tool over stdio.
An account-free Model Context Protocol server that catches AI-hallucinated dependencies and hardcoded secrets in your staged changes before you commit — straight inside your AI coding agent.
It exposes a single, always-free tool over stdio:
pre_flight_checkGive it your staged files (path + content). It will:
package.json,
requirements*.txt) is checked live against the npm and PyPI registries.
A package that doesn't exist (404) is the hallmark of an AI-invented
dependency an attacker may have pre-registered. → BLOCKED. A manifest
that cannot be parsed is reported, never silently skipped. → REVIEW_REQUIRED.sk-…/sk-proj-…, Anthropic sk-ant-…, Stripe sk_live_…, PEM
private keys) plus Shannon-entropy analysis with semantic variable-name
context. → BLOCKED / REVIEW_REQUIRED. Vendor-documented sample keys
and secrets in test/fixture files are downgraded to warnings — surfaced, but
they won't block a commit.No Graneth account, API key, or hosted backend is required. The checks run locally; the only network calls are to the public npm/PyPI registries.
npx -y @graneth/mcp-server
The snippet is the same everywhere; only the file it goes in (or the CLI command) differs per client:
{
"mcpServers": {
"graneth": {
"command": "npx",
"args": ["-y", "@graneth/mcp-server"]
}
}
}
| Client | Add it via | Config location |
|---|---|---|
| Claude Code (CLI) | claude mcp add --transport stdio graneth -- npx -y @graneth/mcp-server | Writes to ~/.claude.json (local scope, default). Add --scope project to write a shareable .mcp.json at the repo root instead. |
| Cursor | Paste the snippet above | ~/.cursor/mcp.json (global) or <project-root>/.cursor/mcp.json (this project only) |
| Windsurf | Paste the snippet above | ~/.codeium/windsurf/mcp_config.json (macOS/Linux) · %USERPROFILE%\.codeium\windsurf\mcp_config.json (Windows) |
| Claude Desktop | Paste the snippet above | macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json |
Then ask your agent to run pre_flight_check before suggesting a commit. A
BLOCKED verdict means: do not commit until the CRITICAL findings are fixed.
| Verdict | Meaning |
|---|---|
CLEAR | No issues — safe to commit. |
REVIEW_REQUIRED | Warnings to confirm (new packages, lower-confidence). |
BLOCKED | Critical issues (non-existent package / secret) — do not commit. |
This server shares its detection core with the hosted
Graneth scanner via the internal @graneth/core-checks
module, so local pre-flight results match what the full PR scan would find.
MIT
FAQs
Account-free MCP server: catch AI-hallucinated packages (npm, PyPI, crates.io, RubyGems, Go, Packagist), risk-score the dependencies an AI agent introduces, and find hardcoded secrets before you commit. Exposes the free pre_flight_check tool over stdio.
The npm package @graneth/mcp-server receives a total of 80 weekly downloads. As such, @graneth/mcp-server popularity was classified as not popular.
We found that @graneth/mcp-server 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.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.

Security News
Socket joins more than 100 technology, cybersecurity, and financial organizations calling for a global surge in cyber defense.

Product
Enterprise security teams can now detect malware, credential theft, suspicious network activity, and risky updates across Microsoft Edge extensions.