@nekzus/mcp-server 1.20.1 → 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 +11 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +161 -21
- package/dist/index.js.map +1 -1
- package/llms-full.txt +11 -0
- package/package.json +1 -1
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:
|