This release fixes issues for SREs watching stability and regressions.
✓ No known CVEs patched in this version
Topics
+5 more
ReleasePort's take
Light signalEntry‑point detection is now reliable for npm bin shim and npx invocations; a new NLMCP_DEBUG flag logs argv paths for diagnostics.
Why it matters: Patch to v2026.3.3 immediately if you use npm bin or npx, then enable NLMCP_DEBUG in dev to verify correct argv handling.
Summary
AI summaryFixed silent failure when invoked via npm bin shim or npx by resolving argv[1] symlink before entry-point detection.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| Feature | Medium |
NLMCP_DEBUG environment variable logs argv paths for diagnostic debugging NLMCP_DEBUG environment variable logs argv paths for diagnostic debugging Source: llm_adapter@2026-05-21 Confidence: low |
— |
| Feature | Low |
NLMCP_DEBUG environment variable enables logging of argv[1] vs import.meta.url values NLMCP_DEBUG environment variable enables logging of argv[1] vs import.meta.url values Source: granite4.1:30b@2026-05-24-audit Confidence: low |
— |
| Bugfix | Medium |
Entry-point detection fixed for npm bin shim and npx invocations Entry-point detection fixed for npm bin shim and npx invocations Source: llm_adapter@2026-05-21 Confidence: high |
— |
Full changelog
Bug Fix
Entry-point detection broken for bin shim and npx invocations (closes #11)
The isDirectRun guard compared import.meta.url against a raw pathToFileURL(process.argv[1]). When invoked via npm install -g bin shim or npx, argv[1] is a symlink — not the real module path — so the comparison always failed, main() never ran, and the server exited cleanly with no MCP transport registered. The failure was silent (clean exit 0, no error), making it hard to diagnose.
Fix
argv[1] is now resolved through realpathSync before the comparison, canonicalising any symlink before the equality check. The guard is wrapped in a try/catch that fails closed on any path resolution error.
Diagnostic
Set NLMCP_DEBUG=true to log the exact argv[1] vs import.meta.url values when the guard gates off main() — useful for diagnosing any future silent no-start.
Workaround (no longer needed)
The node /absolute/path/dist/index.js workaround documented in #11 is no longer required. The README npx and claude mcp add invocation patterns now work as documented.
npm: @pan-sec/[email protected]
Tests: 643 passing across 52 test files · tsc --noEmit clean · npm audit 0 vulnerabilities
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About Pantheon-Security/notebooklm-mcp-secure
Security-hardened NotebookLM MCP with post-quantum encryption (ML-KEM-768), GDPR/SOC2/CSSF compliance, and 14 security layers. Query Google's Gemini-grounded research from Claude and AI agents.
Related context
Beta — feedback welcome: [email protected]