@nekzus/mcp-server 1.20.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,6 +21,8 @@ A powerful Model Context Protocol (MCP) server that revolutionizes NPM package a
21
21
  - **Dependency analysis and mapping**
22
22
  - **Advanced Security Scanning**: Recursive dependency checks, ecosystem awareness (e.g., React), and accurate version resolution.
23
23
  - **Strict Input Validation**: Protection against Path Traversal, SSRF, and Command Injection via rigorous input sanitization.
24
+ - **Smart SemVer Shorthand & Range Resolution**: Transparently resolves major version shorthands, prefixes, and ranges (e.g., `express@2`, `express@v4`, `zod@3.x`, `react@^18`, `lodash@~4.17`) to the highest matching release without failing on missing exact version keys.
25
+ - **Indirect Prompt Injection Defense (OWASP LLM01)**: All tools returning raw 3rd-party Markdown/text (`npmPackageReadme`, `npmChangelogAnalysis`) wrap untrusted content in `<untrusted_external_content>` tags, attach `_meta.untrustedExternalContent = true` flags, and enforce strict tool schema warnings.
24
26
  - **Package quality metrics**
25
27
  - **Download trends and statistics**
26
28
  - **TypeScript support verification**
@@ -33,6 +35,15 @@ A powerful Model Context Protocol (MCP) server that revolutionizes NPM package a
33
35
 
34
36
  Note: The server provides AI-assisted analysis through MCP integration.
35
37
 
38
+ ## Security & OWASP LLM01 Compliance
39
+
40
+ This server implements **Defense-in-Depth** controls aligned with OWASP LLM01:2025 (Indirect Prompt Injection):
41
+
42
+ 1. **XML Data Demarcation**: Content from external packages (`README.md`, GitHub changelogs, release notes) is wrapped inside `<untrusted_external_content source="..." package="..." type="...">` tags so consuming LLM models distinguish untrusted data from instructions.
43
+ 2. **Metadata Signaling (`_meta`)**: Responses include `_meta.untrustedExternalContent = true` and `_meta.sources` arrays for programmatic client-side detection and policy enforcement.
44
+ 3. **Tool & Prompt Safety Warnings**: Tool descriptions and prompt definitions explicitly instruct LLM agents to treat documentation as passive data and ignore embedded execution commands.
45
+ 4. **Prototype Pollution Protection**: Enforces `Object.hasOwn()` checks on dictionary lookups (blocking reserved properties like `constructor` and `__proto__`).
46
+
36
47
  ## Caching and Invalidation
37
48
 
38
49
  To ensure data accuracy while maintaining performance, the server implements robust caching strategies:
@@ -66,14 +77,14 @@ This MCP server now supports both STDIO and HTTP streamable transport. Your exis
66
77
 
67
78
  **Development commands:**
68
79
  ```bash
69
- # Development server with playground
70
- npm run dev
80
+ # Compile TypeScript
81
+ pnpm run build
71
82
 
72
- # Build for HTTP
73
- npm run build:http
83
+ # Start STDIO server
84
+ pnpm run start
74
85
 
75
- # Start HTTP server
76
- npm run start:http
86
+ # Development server with playground
87
+ pnpm run dev
77
88
  ```
78
89
 
79
90
  ### Install in VS Code
@@ -379,16 +390,16 @@ The server also provides the following informational resources accessible via MC
379
390
 
380
391
  ```bash
381
392
  # Install dependencies
382
- npm install
393
+ pnpm install
383
394
 
384
- # Build for STDIO (traditional)
385
- npm run build:stdio
395
+ # Build TypeScript
396
+ pnpm run build
386
397
 
387
- # Build for HTTP (Smithery)
388
- npm run build:http
398
+ # Start the STDIO server
399
+ pnpm run start
389
400
 
390
401
  # Development server
391
- npm run dev
402
+ pnpm run dev
392
403
  ```
393
404
 
394
405
  ## License