@dexmond/mcp-server 2.0.1 → 2.2.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/index.mjs +153 -3
- package/package.json +2 -2
- package/server.json +34 -18
- package/smithery.yaml +3 -3
package/index.mjs
CHANGED
|
@@ -177,16 +177,42 @@ const TOOLS = [
|
|
|
177
177
|
name: 'dexmond_security_review',
|
|
178
178
|
service: 'ai',
|
|
179
179
|
operation: 'security_review',
|
|
180
|
-
description: 'Zero-trust static + AI code & config security audit detecting SQLi, XSS,
|
|
180
|
+
description: 'Zero-trust 17-CWE static + AI code & config security audit detecting SSRF, Path Traversal, SQLi, XSS, Pickle/YAML deser, shell=True, JWT bypass, LLM01, and hardcoded secrets (100 credits).',
|
|
181
181
|
inputSchema: { type: 'object', required: ['code'], properties: { code: { type: 'string' }, language: { type: 'string' }, deep_ai_analysis: { type: 'boolean' } } },
|
|
182
182
|
},
|
|
183
|
+
{
|
|
184
|
+
name: 'dexmond_discover_modules',
|
|
185
|
+
service: 'modules',
|
|
186
|
+
operation: 'discover',
|
|
187
|
+
publicDiscovery: true,
|
|
188
|
+
description: 'Discover all verified Dexmond operational environments (Sentinel, Android ProLab, Shield, MIE, SQL-Alpha, CypherNight, Law, etc.), versions, pricing, and read_only vs. mutating safety classifications (free, no key required).',
|
|
189
|
+
inputSchema: {
|
|
190
|
+
type: 'object',
|
|
191
|
+
properties: {
|
|
192
|
+
module: { type: 'string', description: 'Optional module_id filter (e.g. sentinel, prolab, shield)' },
|
|
193
|
+
category: { type: 'string', description: 'Optional category filter (e.g. cybersecurity, device_operations)' },
|
|
194
|
+
access_class: { type: 'string', description: 'Optional access class filter (read_only, state_mutating, authorized_target_required, async_isolated_sandbox)' },
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
183
198
|
];
|
|
184
199
|
|
|
185
200
|
function send(obj) {
|
|
186
201
|
process.stdout.write(JSON.stringify(obj) + '\n');
|
|
187
202
|
}
|
|
188
203
|
|
|
204
|
+
const MODULES_URL = API_URL.replace(/\/commerce\.php$/, '/modules.php');
|
|
205
|
+
|
|
189
206
|
async function invokeDexmond(tool, args) {
|
|
207
|
+
if (tool.publicDiscovery) {
|
|
208
|
+
const qs = new URLSearchParams();
|
|
209
|
+
if (args?.module) qs.set('module', String(args.module));
|
|
210
|
+
if (args?.category) qs.set('category', String(args.category));
|
|
211
|
+
if (args?.access_class) qs.set('access_class', String(args.access_class));
|
|
212
|
+
const res = await fetch(`${MODULES_URL}${qs.toString() ? `?${qs}` : ''}`, { headers: { Accept: 'application/json' } });
|
|
213
|
+
const text = await res.text();
|
|
214
|
+
return { isError: !res.ok, content: [{ type: 'text', text }] };
|
|
215
|
+
}
|
|
190
216
|
if (!API_KEY) {
|
|
191
217
|
return {
|
|
192
218
|
isError: true,
|
|
@@ -216,6 +242,52 @@ async function invokeDexmond(tool, args) {
|
|
|
216
242
|
};
|
|
217
243
|
}
|
|
218
244
|
|
|
245
|
+
const SERVER_VERSION = '2.2.0';
|
|
246
|
+
|
|
247
|
+
const PROMPTS = [
|
|
248
|
+
{
|
|
249
|
+
name: 'audit-pr-diff',
|
|
250
|
+
description: 'Run a full Dexmond zero-trust security review on a pull request diff (DLP secrets, CWE static audit, and SQL/RLS checks).',
|
|
251
|
+
arguments: [{ name: 'diff', description: 'Git diff or changed code snippet to audit', required: true }],
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: 'audit-sql-migration',
|
|
255
|
+
description: 'Audit a PostgreSQL / Supabase SQL migration for SQLi, COPY PROGRAM RCE, permissive USING(true) policies, and missing ENABLE/FORCE RLS.',
|
|
256
|
+
arguments: [{ name: 'sql', description: 'SQL migration or schema DDL', required: true }],
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: 'gdpr-ai-act-review',
|
|
260
|
+
description: 'Screen a privacy policy, feature spec, or data-processing flow against EU GDPR (Arts. 6–44) and EU AI Act (Art. 5 & Annex III).',
|
|
261
|
+
arguments: [{ name: 'document', description: 'Policy text or product specification', required: true }],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'compile-zero-trust-firewall',
|
|
265
|
+
description: 'Validate firewall rules and compile hardened nftables (ct state invalid drop) + Kubernetes NetworkPolicy YAML via Sentinel 2.0.',
|
|
266
|
+
arguments: [{ name: 'rules_json', description: 'JSON array of firewall rules (action, protocol, port, source_cidr)', required: true }],
|
|
267
|
+
},
|
|
268
|
+
];
|
|
269
|
+
|
|
270
|
+
const RESOURCES = [
|
|
271
|
+
{
|
|
272
|
+
uri: 'dexmond://catalog/tools',
|
|
273
|
+
name: 'Dexmond MCP Tool Catalog (22 Tools)',
|
|
274
|
+
description: 'Live JSON catalog of all 22 EU-hosted security, AI firewall, SQL, GDPR/AI Act, malware, and DevSecOps tools.',
|
|
275
|
+
mimeType: 'application/json',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
uri: 'dexmond://security/benchmark',
|
|
279
|
+
name: 'Dexmond Adversarial Benchmark Metrics',
|
|
280
|
+
description: 'Verified CI benchmark metrics (138 assertions, 25/25 Prompt Guard @ 0% FPR, 25/25 DLP @ 0% FPR, 17 CWE rules + module safety invariants).',
|
|
281
|
+
mimeType: 'application/json',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
uri: 'dexmond://modules/registry',
|
|
285
|
+
name: 'Dexmond Operational Modules Discovery Registry',
|
|
286
|
+
description: 'Live machine-readable registry of Dexmond operational modules, access classes, scopes & pricing (/api/v1/modules.php).',
|
|
287
|
+
mimeType: 'application/json',
|
|
288
|
+
},
|
|
289
|
+
];
|
|
290
|
+
|
|
219
291
|
const rl = readline.createInterface({ input: process.stdin, crlfDelay: Infinity });
|
|
220
292
|
rl.on('line', async (line) => {
|
|
221
293
|
const trimmed = line.trim();
|
|
@@ -232,8 +304,8 @@ rl.on('line', async (line) => {
|
|
|
232
304
|
id,
|
|
233
305
|
result: {
|
|
234
306
|
protocolVersion: '2024-11-05',
|
|
235
|
-
serverInfo: { name: 'dexmond-mcp', version:
|
|
236
|
-
capabilities: { tools: {} },
|
|
307
|
+
serverInfo: { name: 'dexmond-mcp', version: SERVER_VERSION },
|
|
308
|
+
capabilities: { tools: {}, prompts: {}, resources: {} },
|
|
237
309
|
},
|
|
238
310
|
});
|
|
239
311
|
}
|
|
@@ -242,6 +314,84 @@ rl.on('line', async (line) => {
|
|
|
242
314
|
return;
|
|
243
315
|
}
|
|
244
316
|
|
|
317
|
+
if (method === 'prompts/list') {
|
|
318
|
+
return send({ jsonrpc: '2.0', id, result: { prompts: PROMPTS } });
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
if (method === 'prompts/get') {
|
|
322
|
+
const pName = msg.params?.name;
|
|
323
|
+
const pArgs = msg.params?.arguments || {};
|
|
324
|
+
const promptDef = PROMPTS.find((p) => p.name === pName);
|
|
325
|
+
if (!promptDef) {
|
|
326
|
+
return send({ jsonrpc: '2.0', id, error: { code: -32602, message: `Unknown prompt: ${pName}` } });
|
|
327
|
+
}
|
|
328
|
+
const templates = {
|
|
329
|
+
'audit-pr-diff': `Audit the following PR diff using Dexmond MCP tools in sequence:\n1. Call dexmond_dlp_scan on the diff to detect leaked secrets/keys/PII.\n2. Call dexmond_ai_security_review to detect OWASP/CWE vulnerabilities.\n3. If SQL is present, call dexmond_sql_audit.\nSummarize findings by severity with exact remediations.\n\nDIFF:\n${pArgs.diff || ''}`,
|
|
330
|
+
'audit-sql-migration': `Call dexmond_sql_audit on the SQL below and report security_score, grade, missing ENABLE/FORCE RLS tables, permissive USING(true) policies, and RCE sinks:\n\n${pArgs.sql || ''}`,
|
|
331
|
+
'gdpr-ai-act-review': `Call dexmond_gdpr_screen on the document below and summarize GDPR article gaps, EU AI Act Art. 5 prohibited practices, Annex III high-risk triggers, and concrete compliance fixes:\n\n${pArgs.document || ''}`,
|
|
332
|
+
'compile-zero-trust-firewall': `Call dexmond_sentinel_policy with default_inbound="deny" and these rules, then present warnings alongside both the compiled nftables_config and kubernetes_network_policy_yaml:\n\n${pArgs.rules_json || '[]'}`,
|
|
333
|
+
};
|
|
334
|
+
return send({
|
|
335
|
+
jsonrpc: '2.0',
|
|
336
|
+
id,
|
|
337
|
+
result: {
|
|
338
|
+
description: promptDef.description,
|
|
339
|
+
messages: [{ role: 'user', content: { type: 'text', text: templates[pName] } }],
|
|
340
|
+
},
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (method === 'resources/list') {
|
|
345
|
+
return send({ jsonrpc: '2.0', id, result: { resources: RESOURCES } });
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
if (method === 'resources/read') {
|
|
349
|
+
const uri = msg.params?.uri;
|
|
350
|
+
if (uri === 'dexmond://catalog/tools') {
|
|
351
|
+
return send({
|
|
352
|
+
jsonrpc: '2.0',
|
|
353
|
+
id,
|
|
354
|
+
result: {
|
|
355
|
+
contents: [{
|
|
356
|
+
uri,
|
|
357
|
+
mimeType: 'application/json',
|
|
358
|
+
text: JSON.stringify({ server: 'dexmond-mcp', version: SERVER_VERSION, tool_count: TOOLS.length, tools: TOOLS.map(({ name, service, operation, description }) => ({ name, service, operation, description })) }, null, 2),
|
|
359
|
+
}],
|
|
360
|
+
},
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
if (uri === 'dexmond://security/benchmark') {
|
|
364
|
+
return send({
|
|
365
|
+
jsonrpc: '2.0',
|
|
366
|
+
id,
|
|
367
|
+
result: {
|
|
368
|
+
contents: [{
|
|
369
|
+
uri,
|
|
370
|
+
mimeType: 'application/json',
|
|
371
|
+
text: JSON.stringify({
|
|
372
|
+
total_assertions: 138,
|
|
373
|
+
prompt_guard_v2: { attacks_caught: '25/25', benign_fpr: '0.0%' },
|
|
374
|
+
shield_dlp_v2: { detectors: 62, recall: '25/25', benign_fpr: '0.0%' },
|
|
375
|
+
mie_malware_hashes: 29737,
|
|
376
|
+
ai_security_review_v2_cwe_rules: 17,
|
|
377
|
+
docs_url: 'https://dexmond.com/compare.html',
|
|
378
|
+
}, null, 2),
|
|
379
|
+
}],
|
|
380
|
+
},
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
if (uri === 'dexmond://modules/registry') {
|
|
384
|
+
try {
|
|
385
|
+
const res = await fetch(MODULES_URL, { headers: { Accept: 'application/json' } });
|
|
386
|
+
const text = await res.text();
|
|
387
|
+
return send({ jsonrpc: '2.0', id, result: { contents: [{ uri, mimeType: 'application/json', text }] } });
|
|
388
|
+
} catch (err) {
|
|
389
|
+
return send({ jsonrpc: '2.0', id, result: { contents: [{ uri, mimeType: 'application/json', text: JSON.stringify({ error: String(err.message || err), fallback_url: MODULES_URL }) }] } });
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
return send({ jsonrpc: '2.0', id, error: { code: -32602, message: `Unknown resource URI: ${uri}` } });
|
|
393
|
+
}
|
|
394
|
+
|
|
245
395
|
if (method === 'tools/list') {
|
|
246
396
|
return send({
|
|
247
397
|
jsonrpc: '2.0',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexmond/mcp-server",
|
|
3
|
-
"version": "2.0
|
|
4
|
-
"description": "Official zero-dependency Dexmond Technologies MCP Server — exposes
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"description": "Official zero-dependency Dexmond Technologies MCP Server — exposes 23 EU-hosted operational security & discovery tools, 4 built-in slash prompts & 3 resources to Claude Code, Cursor, Gemini, Windsurf & MCP agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"dexmond-mcp": "./index.mjs"
|
package/server.json
CHANGED
|
@@ -1,25 +1,41 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
|
|
2
3
|
"name": "com.dexmond/dexmond-mcp",
|
|
3
|
-
"title": "Dexmond Commercial API MCP Server (22 Security,
|
|
4
|
-
"description": "Zero-dependency official MCP server exposing 22
|
|
5
|
-
"version": "2.
|
|
6
|
-
"homepage": "https://dexmond.com/
|
|
4
|
+
"title": "Dexmond Commercial API MCP Server (22 Security, Malware, SQL/RLS & Compliance Tools)",
|
|
5
|
+
"description": "Zero-dependency official MCP server exposing 22 EU-hosted zero-payload-persistence tools: Dexmond Shield DLP v2 (62 detectors + Shannon entropy) & Prompt Guard v2, MIE V1.0 (29,700+ live malware IOCs + static scan), Android ProLab APK Audit, SQL-Alpha RLS Audit, Agent Law EU GDPR/AI Act, CypherNight Crypto/Forensics, Sentinel 2.0 Firewall Compiler, Project Elysium Orbital Decay, Orbital/Global Risk Intel & Zero-Leak AI.",
|
|
6
|
+
"version": "2.2.0",
|
|
7
|
+
"homepage": "https://dexmond.com/integrations.html",
|
|
8
|
+
"repository": {
|
|
9
|
+
"url": "https://github.com/Dexmond-Technologies/dexmond-sdk",
|
|
10
|
+
"source": "github",
|
|
11
|
+
"subfolder": "packages/mcp-server"
|
|
12
|
+
},
|
|
13
|
+
"packages": [
|
|
14
|
+
{
|
|
15
|
+
"registryType": "npm",
|
|
16
|
+
"identifier": "@dexmond/mcp-server",
|
|
17
|
+
"version": "2.2.0",
|
|
18
|
+
"transport": {
|
|
19
|
+
"type": "stdio"
|
|
20
|
+
},
|
|
21
|
+
"environmentVariables": [
|
|
22
|
+
{
|
|
23
|
+
"name": "DEXMOND_API_KEY",
|
|
24
|
+
"description": "Dexmond dx_live_... API key from https://dexmond.com/dashboard.html#developer (250 free starter credits included)",
|
|
25
|
+
"isRequired": true,
|
|
26
|
+
"isSecret": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "DEXMOND_API_URL",
|
|
30
|
+
"description": "Optional gateway override (default: https://dexmond.com/api/v1/commerce.php)",
|
|
31
|
+
"isRequired": false,
|
|
32
|
+
"isSecret": false
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
7
37
|
"pricing": "https://dexmond.com/pricing.html",
|
|
8
38
|
"trustCenter": "https://dexmond.com/security-trust.html",
|
|
9
39
|
"license": "MIT",
|
|
10
|
-
"runtime": "node>=18",
|
|
11
|
-
"transport": "stdio",
|
|
12
|
-
"command": "node",
|
|
13
|
-
"args": ["index.mjs"],
|
|
14
|
-
"env": {
|
|
15
|
-
"DEXMOND_API_KEY": {
|
|
16
|
-
"required": true,
|
|
17
|
-
"description": "Customer dx_live_... API key from https://dexmond.com/dashboard.html#developer (250 free starter credits included)"
|
|
18
|
-
},
|
|
19
|
-
"DEXMOND_API_URL": {
|
|
20
|
-
"required": false,
|
|
21
|
-
"default": "https://dexmond.com/api/v1/commerce.php"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
40
|
"toolCount": 22
|
|
25
41
|
}
|
package/smithery.yaml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Smithery / MCP Directory Manifest for
|
|
1
|
+
# Smithery / MCP Directory Manifest for @dexmond/mcp-server v2.0.1
|
|
2
2
|
startCommand:
|
|
3
3
|
type: stdio
|
|
4
4
|
configSchema:
|
|
@@ -16,8 +16,8 @@ startCommand:
|
|
|
16
16
|
description: "Dexmond Commercial Gateway URL"
|
|
17
17
|
commandFunction: |-
|
|
18
18
|
(config) => ({
|
|
19
|
-
command: '
|
|
20
|
-
args: ['
|
|
19
|
+
command: 'npx',
|
|
20
|
+
args: ['-y', '@dexmond/mcp-server'],
|
|
21
21
|
env: {
|
|
22
22
|
DEXMOND_API_KEY: config.dexmondApiKey,
|
|
23
23
|
DEXMOND_API_URL: config.dexmondApiUrl || 'https://dexmond.com/api/v1/commerce.php'
|