@nekzus/mcp-server 1.8.0 → 1.8.2

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
@@ -7,6 +7,7 @@
7
7
  [![npm-month](https://img.shields.io/npm/dm/@nekzus/mcp-server.svg)](https://www.npmjs.com/package/@nekzus/mcp-server)
8
8
  [![npm-total](https://img.shields.io/npm/dt/@nekzus/mcp-server.svg?style=flat)](https://www.npmjs.com/package/@nekzus/mcp-server)
9
9
  [![smithery badge](https://smithery.ai/badge/@Nekzus/npm-sentinel-mcp)](https://smithery.ai/server/@Nekzus/npm-sentinel-mcp)
10
+ [![Docker Hub](https://img.shields.io/docker/pulls/mcp/npm-sentinel.svg?label=Docker%20Hub)](https://hub.docker.com/r/mcp/npm-sentinel)
10
11
  [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/Nekzus/npm-sentinel-mcp)
11
12
  [![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/maseortega)
12
13
 
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * MCP HTTP Streamable Transport Server
4
+ * This server runs independently of Smithery and provides full MCP HTTP streamable transport
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=server-standalone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-standalone.d.ts","sourceRoot":"","sources":["../server-standalone.ts"],"names":[],"mappings":";AAEA;;;GAGG"}
@@ -0,0 +1,357 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * MCP HTTP Streamable Transport Server
4
+ * This server runs independently of Smithery and provides full MCP HTTP streamable transport
5
+ */
6
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
7
+ import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
8
+ import * as fs from 'node:fs';
9
+ import { createServer } from 'node:http';
10
+ import * as path from 'node:path';
11
+ import { z } from 'zod';
12
+ // Import all tool handlers from index.ts
13
+ import { handleNpmAlternatives, handleNpmChangelogAnalysis, handleNpmCompare, handleNpmDeprecated, handleNpmDeps, handleNpmLatest, handleNpmLicenseCompatibility, handleNpmMaintainers, handleNpmMaintenance, handleNpmPackageReadme, handleNpmQuality, handleNpmRepoStats, handleNpmScore, handleNpmSearch, handleNpmSize, handleNpmTrends, handleNpmTypes, handleNpmVersions, handleNpmVulnerabilities, } from './index.js';
14
+ const PORT = process.env.PORT || 3000;
15
+ // Create MCP server instance directly for standalone mode
16
+ const mcpServer = new McpServer({
17
+ name: 'npm-sentinel-mcp',
18
+ version: '1.8.1',
19
+ capabilities: {
20
+ resources: {},
21
+ },
22
+ });
23
+ // Register resources if files exist
24
+ const README_PATH = path.join(process.cwd(), 'README.md');
25
+ const LLMS_FULL_TEXT_PATH = path.join(process.cwd(), 'llms-full.txt');
26
+ // Register README.md resource if it exists
27
+ if (fs.existsSync(README_PATH)) {
28
+ mcpServer.resource('serverReadme', 'doc://server/readme', {
29
+ name: 'Server README',
30
+ description: 'Main documentation and usage guide for this NPM Info Server.',
31
+ mimeType: 'text/markdown',
32
+ }, async (uri) => {
33
+ try {
34
+ const readmeContent = fs.readFileSync(README_PATH, 'utf-8');
35
+ return {
36
+ contents: [
37
+ {
38
+ uri: uri.href,
39
+ text: readmeContent,
40
+ mimeType: 'text/markdown',
41
+ },
42
+ ],
43
+ };
44
+ }
45
+ catch (error) {
46
+ console.error(`Error reading README.md for resource ${uri.href}:`, error.message);
47
+ throw {
48
+ code: -32002,
49
+ message: `Resource not found or unreadable: ${uri.href}`,
50
+ data: { uri: uri.href, cause: error.message },
51
+ };
52
+ }
53
+ });
54
+ }
55
+ // Register llms-full.txt resource if it exists
56
+ if (fs.existsSync(LLMS_FULL_TEXT_PATH)) {
57
+ mcpServer.resource('mcpSpecification', 'doc://mcp/specification', {
58
+ name: 'MCP Full Specification',
59
+ description: 'The llms-full.txt content providing a comprehensive overview of the Model Context Protocol.',
60
+ mimeType: 'text/plain',
61
+ }, async (uri) => {
62
+ try {
63
+ const specContent = fs.readFileSync(LLMS_FULL_TEXT_PATH, 'utf-8');
64
+ return {
65
+ contents: [
66
+ {
67
+ uri: uri.href,
68
+ text: specContent,
69
+ mimeType: 'text/plain',
70
+ },
71
+ ],
72
+ };
73
+ }
74
+ catch (error) {
75
+ console.error(`Error reading llms-full.txt for resource ${uri.href}:`, error.message);
76
+ throw {
77
+ code: -32002,
78
+ message: `Resource not found or unreadable: ${uri.href}`,
79
+ data: { uri: uri.href, cause: error.message },
80
+ };
81
+ }
82
+ });
83
+ }
84
+ // Register all NPM tools
85
+ mcpServer.tool('npmVersions', 'Get all available versions of an NPM package', {
86
+ packages: z.array(z.string()).describe('List of package names to get versions for'),
87
+ }, {
88
+ title: 'Get All Package Versions',
89
+ readOnlyHint: true,
90
+ openWorldHint: true,
91
+ idempotentHint: true,
92
+ }, handleNpmVersions);
93
+ mcpServer.tool('npmLatest', 'Get the latest version information for NPM packages', {
94
+ packages: z.array(z.string()).describe('List of package names to get latest version for'),
95
+ }, {
96
+ title: 'Get Latest Package Versions',
97
+ readOnlyHint: true,
98
+ openWorldHint: true,
99
+ idempotentHint: true,
100
+ }, handleNpmLatest);
101
+ mcpServer.tool('npmDependencies', 'Analyze dependencies and their relationships for NPM packages', {
102
+ packages: z.array(z.string()).describe('List of package names to analyze dependencies for'),
103
+ }, {
104
+ title: 'Analyze Package Dependencies',
105
+ readOnlyHint: true,
106
+ openWorldHint: true,
107
+ idempotentHint: true,
108
+ }, handleNpmDeps);
109
+ mcpServer.tool('npmTypes', 'Check TypeScript type definitions for NPM packages', {
110
+ packages: z.array(z.string()).describe('List of package names to check TypeScript types for'),
111
+ }, {
112
+ title: 'Check TypeScript Types',
113
+ readOnlyHint: true,
114
+ openWorldHint: true,
115
+ idempotentHint: true,
116
+ }, handleNpmTypes);
117
+ mcpServer.tool('npmSize', 'Analyze package sizes and bundle information', {
118
+ packages: z.array(z.string()).describe('List of package names to analyze size for'),
119
+ }, {
120
+ title: 'Analyze Package Sizes',
121
+ readOnlyHint: true,
122
+ openWorldHint: true,
123
+ idempotentHint: true,
124
+ }, handleNpmSize);
125
+ mcpServer.tool('npmSecurity', 'Security analysis and vulnerability scanning for NPM packages', {
126
+ packages: z.array(z.string()).describe('List of package names to analyze security for'),
127
+ }, {
128
+ title: 'Security Analysis',
129
+ readOnlyHint: true,
130
+ openWorldHint: true,
131
+ idempotentHint: true,
132
+ }, handleNpmVulnerabilities);
133
+ mcpServer.tool('npmTrends', 'Analyze download trends and popularity metrics', {
134
+ packages: z.array(z.string()).describe('List of package names to analyze trends for'),
135
+ }, {
136
+ title: 'Analyze Download Trends',
137
+ readOnlyHint: true,
138
+ openWorldHint: true,
139
+ idempotentHint: true,
140
+ }, handleNpmTrends);
141
+ mcpServer.tool('npmCompare', 'Compare multiple NPM packages side by side', {
142
+ packages: z.array(z.string()).describe('List of package names to compare'),
143
+ }, {
144
+ title: 'Compare Packages',
145
+ readOnlyHint: true,
146
+ openWorldHint: true,
147
+ idempotentHint: true,
148
+ }, handleNpmCompare);
149
+ mcpServer.tool('npmQuality', 'Get quality metrics and scores for NPM packages', {
150
+ packages: z.array(z.string()).describe('List of package names to get quality metrics for'),
151
+ }, {
152
+ title: 'Get Quality Metrics',
153
+ readOnlyHint: true,
154
+ openWorldHint: true,
155
+ idempotentHint: true,
156
+ }, handleNpmQuality);
157
+ mcpServer.tool('npmMaintenance', 'Get maintenance metrics and scores for NPM packages', {
158
+ packages: z.array(z.string()).describe('List of package names to get maintenance metrics for'),
159
+ }, {
160
+ title: 'Get Maintenance Metrics',
161
+ readOnlyHint: true,
162
+ openWorldHint: true,
163
+ idempotentHint: true,
164
+ }, handleNpmMaintenance);
165
+ mcpServer.tool('npmMaintainers', 'Get maintainer information for NPM packages', {
166
+ packages: z.array(z.string()).describe('List of package names to get maintainer info for'),
167
+ }, {
168
+ title: 'Get Maintainer Information',
169
+ readOnlyHint: true,
170
+ openWorldHint: true,
171
+ idempotentHint: true,
172
+ }, handleNpmMaintainers);
173
+ mcpServer.tool('npmScore', 'Get overall scores for NPM packages', {
174
+ packages: z.array(z.string()).describe('List of package names to get scores for'),
175
+ }, {
176
+ title: 'Get Package Scores',
177
+ readOnlyHint: true,
178
+ openWorldHint: true,
179
+ idempotentHint: true,
180
+ }, handleNpmScore);
181
+ mcpServer.tool('npmPackageReadme', 'Get README content for NPM packages', {
182
+ packages: z.array(z.string()).describe('List of package names to get README for'),
183
+ }, {
184
+ title: 'Get Package README',
185
+ readOnlyHint: true,
186
+ openWorldHint: true,
187
+ idempotentHint: true,
188
+ }, handleNpmPackageReadme);
189
+ mcpServer.tool('npmSearch', 'Search for NPM packages', {
190
+ query: z.string().describe('Search query for NPM packages'),
191
+ limit: z.number().optional().describe('Maximum number of results to return'),
192
+ }, {
193
+ title: 'Search NPM Packages',
194
+ readOnlyHint: true,
195
+ openWorldHint: true,
196
+ idempotentHint: true,
197
+ }, handleNpmSearch);
198
+ mcpServer.tool('npmLicenseCompatibility', 'Analyze license compatibility for NPM packages', {
199
+ packages: z.array(z.string()).describe('List of package names to analyze licenses for'),
200
+ }, {
201
+ title: 'Analyze License Compatibility',
202
+ readOnlyHint: true,
203
+ openWorldHint: true,
204
+ idempotentHint: true,
205
+ }, handleNpmLicenseCompatibility);
206
+ mcpServer.tool('npmRepoStats', 'Get repository statistics for NPM packages', {
207
+ packages: z.array(z.string()).describe('List of package names to get repo stats for'),
208
+ }, {
209
+ title: 'Get Repository Statistics',
210
+ readOnlyHint: true,
211
+ openWorldHint: true,
212
+ idempotentHint: true,
213
+ }, handleNpmRepoStats);
214
+ mcpServer.tool('npmDeprecated', 'Check deprecation status for NPM packages', {
215
+ packages: z.array(z.string()).describe('List of package names to check deprecation for'),
216
+ }, {
217
+ title: 'Check Package Deprecation',
218
+ readOnlyHint: true,
219
+ openWorldHint: true,
220
+ idempotentHint: true,
221
+ }, handleNpmDeprecated);
222
+ mcpServer.tool('npmChangelogAnalysis', 'Analyze changelog and release information', {
223
+ packages: z.array(z.string()).describe('List of package names to analyze changelog for'),
224
+ }, {
225
+ title: 'Analyze Changelog',
226
+ readOnlyHint: true,
227
+ openWorldHint: true,
228
+ idempotentHint: true,
229
+ }, handleNpmChangelogAnalysis);
230
+ mcpServer.tool('npmAlternatives', 'Find alternative packages for NPM packages', {
231
+ packages: z.array(z.string()).describe('List of package names to find alternatives for'),
232
+ }, {
233
+ title: 'Find Package Alternatives',
234
+ readOnlyHint: true,
235
+ openWorldHint: true,
236
+ idempotentHint: true,
237
+ }, handleNpmAlternatives);
238
+ // Create a single stateless transport (no session management)
239
+ const transport = new StreamableHTTPServerTransport({
240
+ sessionIdGenerator: undefined, // Stateless mode
241
+ enableJsonResponse: true, // Enable direct JSON responses
242
+ });
243
+ // Connect transport to server
244
+ mcpServer.connect(transport);
245
+ // Create HTTP server with native Node.js
246
+ const server = createServer((req, res) => {
247
+ // Optimized logging - only log in development
248
+ if (process.env.NODE_ENV === 'development') {
249
+ const origin = req.headers.origin || req.headers.referer || 'Direct';
250
+ const userAgent = req.headers['user-agent'] || 'Unknown';
251
+ const ip = req.socket.remoteAddress || 'Unknown';
252
+ console.log('🌐 MCP Request from:');
253
+ console.log(` Origin: ${origin}`);
254
+ console.log(` IP: ${ip}`);
255
+ console.log(` User-Agent: ${userAgent}`);
256
+ console.log(` Method: ${req.method}`);
257
+ console.log(` URL: ${req.url}`);
258
+ console.log(' Mode: Stateless (Native HTTP)');
259
+ console.log('---');
260
+ }
261
+ try {
262
+ // Pre-computed CORS headers for better performance
263
+ const corsHeaders = {
264
+ 'Access-Control-Allow-Origin': '*',
265
+ 'Access-Control-Allow-Methods': 'GET, POST, DELETE, OPTIONS',
266
+ 'Access-Control-Allow-Headers': 'Content-Type, Accept, Authorization, mcp-session-id, Last-Event-ID',
267
+ };
268
+ // Set CORS headers
269
+ for (const [key, value] of Object.entries(corsHeaders)) {
270
+ res.setHeader(key, value);
271
+ }
272
+ // Handle OPTIONS preflight
273
+ if (req.method === 'OPTIONS') {
274
+ res.writeHead(200);
275
+ res.end();
276
+ return;
277
+ }
278
+ // Pre-computed JSON responses for better performance
279
+ const healthResponse = JSON.stringify({
280
+ status: 'healthy',
281
+ server: 'npm-sentinel-mcp',
282
+ version: '1.8.1',
283
+ transport: 'http-streamable',
284
+ mcp: 'connected',
285
+ endpoints: {
286
+ health: '/health',
287
+ mcp: '/mcp',
288
+ streaming: '/mcp/stream',
289
+ },
290
+ });
291
+ const infoResponse = JSON.stringify({
292
+ name: 'npm-sentinel-mcp',
293
+ version: '1.8.1',
294
+ description: 'NPM Sentinel MCP Server with HTTP Streamable Transport',
295
+ transport: 'http-streamable',
296
+ endpoints: {
297
+ health: '/health',
298
+ mcp: '/mcp',
299
+ streaming: '/mcp/stream',
300
+ },
301
+ capabilities: [
302
+ 'npm package analysis',
303
+ 'security scanning',
304
+ 'dependency mapping',
305
+ 'quality metrics',
306
+ 'real-time streaming',
307
+ ],
308
+ });
309
+ // Handle different endpoints
310
+ if (req.url === '/health') {
311
+ res.writeHead(200, { 'Content-Type': 'application/json' });
312
+ res.end(healthResponse);
313
+ return;
314
+ }
315
+ if (req.url === '/') {
316
+ res.writeHead(200, { 'Content-Type': 'application/json' });
317
+ res.end(infoResponse);
318
+ return;
319
+ }
320
+ // Handle MCP requests
321
+ if (req.url?.startsWith('/mcp')) {
322
+ // Handle request with stateless transport
323
+ // Pass undefined as parsedBody to let the transport handle body parsing
324
+ transport.handleRequest(req, res, undefined);
325
+ return;
326
+ }
327
+ // 404 for unknown routes
328
+ res.writeHead(404, { 'Content-Type': 'application/json' });
329
+ res.end(JSON.stringify({
330
+ error: 'Not Found',
331
+ message: 'Endpoint not found',
332
+ }));
333
+ }
334
+ catch (error) {
335
+ console.error('❌ Error handling request:', error);
336
+ res.writeHead(500, { 'Content-Type': 'application/json' });
337
+ res.end(JSON.stringify({
338
+ jsonrpc: '2.0',
339
+ error: {
340
+ code: -32603,
341
+ message: 'Internal error',
342
+ data: error instanceof Error ? error.message : 'Unknown error',
343
+ },
344
+ id: null,
345
+ }));
346
+ }
347
+ });
348
+ // Start server
349
+ server.listen(PORT, () => {
350
+ console.log('🚀 MCP HTTP Streamable Transport Server running');
351
+ console.log(`📡 Health check: http://localhost:${PORT}/health`);
352
+ console.log(`🔗 MCP endpoint: http://localhost:${PORT}/mcp`);
353
+ console.log(`📊 Server info: http://localhost:${PORT}/`);
354
+ console.log('🌐 Server: npm-sentinel-mcp v1.8.1');
355
+ console.log('✨ Transport: HTTP Streamable (MCP Protocol)');
356
+ });
357
+ //# sourceMappingURL=server-standalone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-standalone.js","sourceRoot":"","sources":["../server-standalone.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yCAAyC;AACzC,OAAO,EACN,qBAAqB,EACrB,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,6BAA6B,EAC7B,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,wBAAwB,GACxB,MAAM,YAAY,CAAC;AAEpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC;AAEtC,0DAA0D;AAC1D,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC;IAC/B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;I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AAC,OAAO,KAAK,EAAE,CAAC;QAChB,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;QAClD,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC,CAAC;QAC3D,GAAG,CAAC,GAAG,CACN,IAAI,CAAC,SAAS,CAAC;YACd,OAAO,EAAE,KAAK;YACd,KAAK,EAAE;gBACN,IAAI,EAAE,CAAC,KAAK;gBACZ,OAAO,EAAE,gBAAgB;gBACzB,IAAI,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe;aAC9D;YACD,EAAE,EAAE,IAAI;SACR,CAAC,CACF,CAAC;IACH,CAAC;AACF,CAAC,CAAC,CAAC;AAEH,eAAe;AACf,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IACxB,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;IAC/D,OAAO,CAAC,GAAG,CAAC,qCAAqC,IAAI,SAAS,CAAC,CAAC;IAChE,OAAO,CAAC,GAAG,CAAC,qCAAqC,IAAI,MAAM,CAAC,CAAC;IAC7D,OAAO,CAAC,GAAG,CAAC,oCAAoC,IAAI,GAAG,CAAC,CAAC;IACzD,OAAO,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;IAClD,OAAO,CAAC,GAAG,CAAC,6CAA6C,CAAC,CAAC;AAC5D,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@nekzus/mcp-server",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
+ "mcpName": "io.github.Nekzus/npm-sentinel-mcp",
4
5
  "description": "NPM Sentinel MCP - A powerful Model Context Protocol (MCP) server that revolutionizes NPM package analysis through AI. Built to integrate with Claude and Anthropic AI, it provides real-time intelligence on package security, dependencies, and performance.",
5
6
  "type": "module",
6
7
  "module": "./index.ts",
@@ -113,4 +114,4 @@
113
114
  "engines": {
114
115
  "node": ">=18"
115
116
  }
116
- }
117
+ }