@dexmond/mcp-server 2.3.0 → 2.4.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.
Files changed (3) hide show
  1. package/index.mjs +132 -13
  2. package/package.json +2 -2
  3. package/server.json +12 -6
package/index.mjs CHANGED
@@ -1,22 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Official Dexmond Technologies MCP Server v2.3 (Zero-Dependency stdio JSON-RPC 2.0)
4
- * Exposes the Full Dexmond Commercial API Suite + Local Loopback Edge Bridges (24 tools)
5
- * to Claude, Cursor, Antigravity & AI Agents.
3
+ * Official Dexmond Technologies MCP Server v2.4.0 (Zero-Dependency stdio JSON-RPC 2.0)
4
+ * Exposes the Full Dexmond Commercial & Unified API v1.4 Suite + Local Loopback Edge Bridges
5
+ * (28 tools, 4 prompts, 3 resources) to Claude, Cursor, Antigravity & AI Agents.
6
6
  *
7
7
  * Environment variables:
8
- * DEXMOND_API_KEY (required for metered cloud tools: dx_live_... from https://dexmond.com/dashboard.html#developer)
9
- * DEXMOND_API_URL (optional: defaults to https://dexmond.com/api/v1/commerce.php)
10
- * PROLAB_BRIDGE_URL (optional loopback-only: defaults to http://127.0.0.1:18765)
11
- * PROLAB_BRIDGE_TOKEN (required for authenticated Android ProLab Local Agent Bridge calls)
12
- * SENTINEL_BRIDGE_URL (optional loopback-only: defaults to http://127.0.0.1:18766)
13
- * SENTINEL_BRIDGE_TOKEN (required for authenticated Sentinel 2.0 Edge Agent Bridge calls)
8
+ * DEXMOND_API_KEY (required for metered cloud tools: dx_live_... from https://dexmond.com/dashboard.html#developer)
9
+ * DEXMOND_API_URL (optional: defaults to https://dexmond.com/api/v1/commerce.php)
10
+ * DEXMOND_UNIFIED_API_URL (optional: defaults to https://api.dexmond.com)
11
+ * PROLAB_BRIDGE_URL (optional loopback-only: defaults to http://127.0.0.1:18765)
12
+ * PROLAB_BRIDGE_TOKEN (required for authenticated Android ProLab Local Agent Bridge calls)
13
+ * SENTINEL_BRIDGE_URL (optional loopback-only: defaults to http://127.0.0.1:18766)
14
+ * SENTINEL_BRIDGE_TOKEN (required for authenticated Sentinel 2.0 Edge Agent Bridge calls)
14
15
  */
15
16
 
16
17
  import readline from 'node:readline';
17
18
  import crypto from 'node:crypto';
18
19
 
19
20
  const API_URL = process.env.DEXMOND_API_URL || 'https://dexmond.com/api/v1/commerce.php';
21
+ const UNIFIED_API_URL = (process.env.DEXMOND_UNIFIED_API_URL || process.env.DEXMOND_UNIFIED_API_BASE || 'https://api.dexmond.com').replace(/\/+$/, '');
20
22
  const API_KEY = process.env.DEXMOND_API_KEY || '';
21
23
 
22
24
  const TOOLS = [
@@ -194,6 +196,82 @@ const TOOLS = [
194
196
  },
195
197
  },
196
198
 
199
+ // --- UNIFIED API v1.4 (AUTODRONE SAFETY & MODEL-AGNOSTIC TOOL DISCOVERY) ---
200
+ {
201
+ name: 'dexmond_pilot_release_verify',
202
+ service: 'autodrone',
203
+ operation: 'pilot_release_verify',
204
+ unifiedServiceId: 'B-12',
205
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
206
+ description: 'Verify AUTODRONE pilot release manifests against the Gate 7 simulation-only refusal invariant (refuses real_aircraft unless certified_flight), SHA-256 artifact digests, and tamper-evident hash-chained telemetry logs (Unified API B-12, 2 credits, read-only).',
207
+ inputSchema: {
208
+ type: 'object',
209
+ required: ['manifest'],
210
+ properties: {
211
+ manifest: { type: 'object', description: 'Pilot release manifest ({ pilot_name, version, stage, artifact_sha256 })' },
212
+ target_environment: { type: 'string', enum: ['simulation', 'bench', 'real_aircraft'], description: 'Target environment (default: simulation)' },
213
+ artifact_b64: { type: 'string', description: 'Optional base64-encoded artifact bytes to verify against manifest.artifact_sha256' },
214
+ telemetry_chain: { type: 'array', items: { type: 'object' }, description: 'Optional hash-chained telemetry log records' },
215
+ },
216
+ },
217
+ },
218
+ {
219
+ name: 'dexmond_drone_mission_validate',
220
+ service: 'autodrone',
221
+ operation: 'drone_mission_validate',
222
+ unifiedServiceId: 'I-05',
223
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
224
+ description: 'Audit 3D drone waypoint missions against 2D geofence polygons, spherical obstacle clearances, altitude/speed envelopes, battery RTH energy reserves, and required failsafes (Unified API I-05, 15 credits, simulation-only read-only).',
225
+ inputSchema: {
226
+ type: 'object',
227
+ required: ['waypoints'],
228
+ properties: {
229
+ waypoints: { type: 'array', items: { type: 'object' }, description: 'Array of 3D mission waypoints ({ x, y, z })' },
230
+ geofence: { type: 'array', items: { type: 'object' }, description: 'Optional 2D geofence polygon vertices ({ x, y })' },
231
+ obstacles: { type: 'array', items: { type: 'object' }, description: 'Optional spherical obstacles ({ x, y, z, radius_m })' },
232
+ envelope: { type: 'object', description: 'Optional flight envelope limits (min_altitude_m, max_altitude_m, max_speed_mps)' },
233
+ battery: { type: 'object', description: 'Optional battery & Return-To-Home (RTH) energy parameters' },
234
+ failsafes: { type: 'object', description: 'Optional failsafe configuration (rth, geofence_breach, link_loss, low_battery)' },
235
+ },
236
+ },
237
+ },
238
+ {
239
+ name: 'dexmond_drone_route_plan',
240
+ service: 'autodrone',
241
+ operation: 'drone_route_plan',
242
+ unifiedServiceId: 'I-06',
243
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
244
+ description: 'Plan bounded 3D A* obstacle-avoidance drone waypoints with collinear path simplification (Unified API I-06, 20 credits, simulation-only read-only). Output waypoints pipe directly into dexmond_drone_mission_validate.',
245
+ inputSchema: {
246
+ type: 'object',
247
+ required: ['start', 'goal'],
248
+ properties: {
249
+ start: { type: 'object', description: 'Start 3D coordinate ({ x, y, z })' },
250
+ goal: { type: 'object', description: 'Goal 3D coordinate ({ x, y, z })' },
251
+ obstacles: { type: 'array', items: { type: 'object' }, description: 'Optional spherical obstacles ({ x, y, z, radius_m })' },
252
+ bounds: { type: 'object', description: 'Optional 3D bounding box ({ min_x, max_x, min_y, max_y, min_z, max_z })' },
253
+ resolution_m: { type: 'number', description: 'Grid resolution in meters (0.5 to 50, default 2.0)' },
254
+ clearance_m: { type: 'number', description: 'Obstacle safety clearance margin in meters (default 1.5)' },
255
+ },
256
+ },
257
+ },
258
+ {
259
+ name: 'dexmond_unified_tools_discover',
260
+ service: 'unified',
261
+ operation: 'tools_discover',
262
+ unifiedToolsDiscovery: true,
263
+ annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
264
+ description: 'Discover model-agnostic Dexmond Unified API v1.4 tool schemas across all 21 commercial services in OpenAI, Claude, Gemini, or MCP format (GET /v1/tools, free, no API key required).',
265
+ inputSchema: {
266
+ type: 'object',
267
+ properties: {
268
+ format: { type: 'string', enum: ['openai', 'claude', 'gemini', 'mcp'], default: 'mcp', description: 'Target tool schema format: openai, claude, gemini, or mcp' },
269
+ module: { type: 'string', description: 'Optional module_id filter (e.g. sentinel, android-prolab, autodrone-rta)' },
270
+ tier: { type: 'string', enum: ['basic', 'intermediate', 'enterprise'], description: 'Optional service tier filter' },
271
+ },
272
+ },
273
+ },
274
+
197
275
  // --- LOCAL LOOPBACK EDGE AGENT BRIDGES (SELF-HOSTED ON 127.0.0.1) ---
198
276
  {
199
277
  name: 'dexmond_prolab_local_bridge',
@@ -424,6 +502,20 @@ async function invokeDexmond(tool, args) {
424
502
  const text = await res.text();
425
503
  return { isError: !res.ok, content: [{ type: 'text', text }] };
426
504
  }
505
+ if (tool.unifiedToolsDiscovery) {
506
+ const qs = new URLSearchParams();
507
+ qs.set('format', String(args?.format || 'mcp'));
508
+ if (args?.module) qs.set('module', String(args.module));
509
+ if (args?.tier) qs.set('tier', String(args.tier));
510
+ const res = await fetch(`${UNIFIED_API_URL}/v1/tools?${qs.toString()}`, { headers: { Accept: 'application/json' } });
511
+ const text = await res.text();
512
+ let parsed = null;
513
+ try { parsed = JSON.parse(text); } catch (_) {}
514
+ return {
515
+ isError: !res.ok || (parsed && parsed.ok === false),
516
+ content: [{ type: 'text', text: parsed ? JSON.stringify(parsed, null, 2) : text }],
517
+ };
518
+ }
427
519
  if (!API_KEY) {
428
520
  return {
429
521
  isError: true,
@@ -431,6 +523,28 @@ async function invokeDexmond(tool, args) {
431
523
  };
432
524
  }
433
525
  const idem = 'mcp-' + crypto.randomBytes(10).toString('hex');
526
+ if (tool.unifiedServiceId) {
527
+ const res = await fetch(`${UNIFIED_API_URL}/v1/execute`, {
528
+ method: 'POST',
529
+ headers: {
530
+ 'Content-Type': 'application/json',
531
+ 'X-Dexmond-Key': API_KEY,
532
+ 'X-API-Key': API_KEY,
533
+ 'Idempotency-Key': idem,
534
+ },
535
+ body: JSON.stringify({
536
+ service_id: tool.unifiedServiceId,
537
+ params: args || {},
538
+ }),
539
+ });
540
+ const text = await res.text();
541
+ let parsed = null;
542
+ try { parsed = JSON.parse(text); } catch (_) {}
543
+ return {
544
+ isError: !res.ok || (parsed && parsed.ok === false),
545
+ content: [{ type: 'text', text: parsed ? JSON.stringify(parsed, null, 2) : text }],
546
+ };
547
+ }
434
548
  const res = await fetch(API_URL, {
435
549
  method: 'POST',
436
550
  headers: {
@@ -453,7 +567,7 @@ async function invokeDexmond(tool, args) {
453
567
  };
454
568
  }
455
569
 
456
- const SERVER_VERSION = '2.3.0';
570
+ const SERVER_VERSION = '2.4.0';
457
571
 
458
572
  const PROMPTS = [
459
573
  {
@@ -481,8 +595,8 @@ const PROMPTS = [
481
595
  const RESOURCES = [
482
596
  {
483
597
  uri: 'dexmond://catalog/tools',
484
- name: 'Dexmond MCP Tool Catalog (24 Tools)',
485
- description: 'Live JSON catalog of all 24 EU-hosted security, AI firewall, SQL, GDPR/AI Act, malware, DevSecOps, and local loopback bridge tools.',
598
+ name: 'Dexmond MCP Tool Catalog (28 Tools)',
599
+ description: 'Live JSON catalog of all 28 EU-hosted security, AI firewall, SQL, GDPR/AI Act, malware, AUTODRONE safety, Unified API v1.4 discovery, and local loopback bridge tools.',
486
600
  mimeType: 'application/json',
487
601
  },
488
602
  {
@@ -608,7 +722,12 @@ rl.on('line', async (line) => {
608
722
  jsonrpc: '2.0',
609
723
  id,
610
724
  result: {
611
- tools: TOOLS.map(({ name, description, inputSchema }) => ({ name, description, inputSchema })),
725
+ tools: TOOLS.map(({ name, description, inputSchema, annotations }) => ({
726
+ name,
727
+ description,
728
+ inputSchema,
729
+ ...(annotations ? { annotations } : {}),
730
+ })),
612
731
  },
613
732
  });
614
733
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dexmond/mcp-server",
3
- "version": "2.3.0",
4
- "description": "Official zero-dependency Dexmond Technologies MCP Server — exposes 25 EU-hosted operational security, discovery & loopback edge bridge tools (Sentinel & Android ProLab), 4 slash prompts & 3 resources.",
3
+ "version": "2.4.0",
4
+ "description": "Official zero-dependency Dexmond Technologies MCP Server — exposes 28 EU-hosted operational security, AUTODRONE safety, Unified API v1.4 discovery & loopback edge bridge tools (Sentinel & Android ProLab), 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,9 +1,9 @@
1
1
  {
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
3
3
  "name": "com.dexmond/dexmond-mcp",
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.3.0",
4
+ "title": "Dexmond Commercial, Unified API v1.4 & Edge Bridge MCP Server (28 Security, Malware, SQL/RLS, AUTODRONE & Compliance Tools)",
5
+ "description": "Zero-dependency official MCP server exposing 28 EU-hosted zero-payload-persistence & loopback edge bridge tools: Dexmond Shield DLP v2 & Prompt Guard v2, MIE V1.0, Android ProLab APK Audit & Loopback Bridge, SQL-Alpha RLS Audit, Agent Law EU GDPR/AI Act, CypherNight Crypto/Forensics, Sentinel 2.0 Firewall Compiler & Edge Bridge, Project Elysium Orbital Decay, AUTODRONE Safety & 3D Route Planning (B-12, I-05, I-06), Unified API v1.4 Model-Agnostic Tool Discovery, Orbital/Global Risk Intel & Zero-Leak AI.",
6
+ "version": "2.4.0",
7
7
  "homepage": "https://dexmond.com/integrations.html",
8
8
  "repository": {
9
9
  "url": "https://github.com/Dexmond-Technologies/dexmond-sdk",
@@ -14,7 +14,7 @@
14
14
  {
15
15
  "registryType": "npm",
16
16
  "identifier": "@dexmond/mcp-server",
17
- "version": "2.3.0",
17
+ "version": "2.4.0",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  },
@@ -27,7 +27,13 @@
27
27
  },
28
28
  {
29
29
  "name": "DEXMOND_API_URL",
30
- "description": "Optional gateway override (default: https://dexmond.com/api/v1/commerce.php)",
30
+ "description": "Optional commerce gateway override (default: https://dexmond.com/api/v1/commerce.php)",
31
+ "isRequired": false,
32
+ "isSecret": false
33
+ },
34
+ {
35
+ "name": "DEXMOND_UNIFIED_API_URL",
36
+ "description": "Optional Unified API v1.4 gateway override (default: https://api.dexmond.com)",
31
37
  "isRequired": false,
32
38
  "isSecret": false
33
39
  }
@@ -37,5 +43,5 @@
37
43
  "pricing": "https://dexmond.com/pricing.html",
38
44
  "trustCenter": "https://dexmond.com/security-trust.html",
39
45
  "license": "MIT",
40
- "toolCount": 22
46
+ "toolCount": 28
41
47
  }