@dexmond/mcp-server 0.0.0-stage → 2.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dexmond Technologies Ltd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,22 @@
1
- # Temporary Holding Version
1
+ # Official Dexmond MCP Server v2.0 (22 Native Tools)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Connect **Claude Desktop**, **Cursor**, **Windsurf**, or **Antigravity** directly to all Dexmond Commercial API tools with zero runtime dependencies.
4
+
5
+ ## Quick Setup (60 Seconds)
6
+ 1. Create a free account at `https://dexmond.com/register.php` (**250 free starter credits** credited automatically; use promo code `DEXMOND2026` for +500 more).
7
+ 2. Mint a `dx_live_...` API key (optional scopes like `shield.*,mie.*`) at `https://dexmond.com/dashboard.html#developer`.
8
+ 3. Add to your MCP client config (or run `dexmond install-mcp`):
9
+ ```json
10
+ {
11
+ "mcpServers": {
12
+ "dexmond": {
13
+ "command": "node",
14
+ "args": ["/path/to/mcp/dexmond-mcp/index.mjs"],
15
+ "env": {
16
+ "DEXMOND_API_KEY": "dx_live_YOUR_KEY",
17
+ "DEXMOND_API_URL": "https://dexmond.com/api/v1/commerce.php"
18
+ }
19
+ }
20
+ }
21
+ }
22
+ ```
package/index.mjs ADDED
@@ -0,0 +1,273 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Official Dexmond Technologies MCP Server v2.0 (Zero-Dependency stdio JSON-RPC 2.0)
4
+ * Exposes the Full Dexmond Commercial API Suite (22 tools) to Claude, Cursor, Antigravity & AI Agents.
5
+ *
6
+ * Environment variables:
7
+ * DEXMOND_API_KEY (required: dx_live_... key from https://dexmond.com/dashboard.html#developer)
8
+ * DEXMOND_API_URL (optional: defaults to https://dexmond.com/api/v1/commerce.php)
9
+ */
10
+
11
+ import readline from 'node:readline';
12
+ import crypto from 'node:crypto';
13
+
14
+ const API_URL = process.env.DEXMOND_API_URL || 'https://dexmond.com/api/v1/commerce.php';
15
+ const API_KEY = process.env.DEXMOND_API_KEY || '';
16
+
17
+ const TOOLS = [
18
+ // --- DEXMOND SHIELD ---
19
+ {
20
+ name: 'dexmond_dlp_scan',
21
+ service: 'shield',
22
+ operation: 'dlp_scan',
23
+ description: 'Scan text for leaked API keys, private keys, JWTs, credit cards (Luhn), EU IBANs, and GDPR PII; returns risk score and redacted text (15 credits).',
24
+ inputSchema: { type: 'object', required: ['text'], properties: { text: { type: 'string' }, include_pii: { type: 'boolean', default: true } } },
25
+ },
26
+ {
27
+ name: 'dexmond_prompt_guard',
28
+ service: 'shield',
29
+ operation: 'prompt_guard',
30
+ description: 'Inspect prompts or tool outputs for prompt injection, jailbreaks, system-prompt exfiltration, and invisible Unicode attacks (20 credits).',
31
+ inputSchema: { type: 'object', required: ['text'], properties: { text: { type: 'string' } } },
32
+ },
33
+ {
34
+ name: 'dexmond_domain_audit',
35
+ service: 'shield',
36
+ operation: 'domain_audit',
37
+ description: 'Run an SSRF-safe live DNS (SPF/DMARC/MX/CAA), HTTPS TLS certificate, and HTTP security header audit on a public domain (40 credits).',
38
+ inputSchema: { type: 'object', required: ['domain'], properties: { domain: { type: 'string' } } },
39
+ },
40
+ {
41
+ name: 'dexmond_artifact_inspect',
42
+ service: 'shield',
43
+ operation: 'artifact_inspect',
44
+ description: 'Forensic non-executing artifact analysis: SHA-256/512, Shannon entropy, magic-byte/MIME spoofing, embedded secrets, and Ed25519 verification (30 credits).',
45
+ inputSchema: { type: 'object', properties: { content: { type: 'string' }, base64: { type: 'string' }, declared_mime: { type: 'string' } } },
46
+ },
47
+
48
+ // --- CYPHERNIGHT MAX-SEC ---
49
+ {
50
+ name: 'dexmond_cyphernight_encrypt',
51
+ service: 'cyphernight',
52
+ operation: 'encrypt',
53
+ description: 'Zero-persistence AES-256-GCM authenticated encryption envelope with random IV, PBKDF2-SHA256 KDF, and optional AAD (20 credits).',
54
+ inputSchema: { type: 'object', required: ['plaintext', 'passphrase'], properties: { plaintext: { type: 'string' }, passphrase: { type: 'string' }, aad: { type: 'string' } } },
55
+ },
56
+ {
57
+ name: 'dexmond_cyphernight_decrypt',
58
+ service: 'cyphernight',
59
+ operation: 'decrypt',
60
+ description: 'Zero-persistence AES-256-GCM envelope decryption with strict authentication tag verification (20 credits).',
61
+ inputSchema: { type: 'object', required: ['envelope', 'passphrase'], properties: { envelope: { type: 'object' }, passphrase: { type: 'string' }, aad: { type: 'string' } } },
62
+ },
63
+ {
64
+ name: 'dexmond_cyphernight_sign',
65
+ service: 'cyphernight',
66
+ operation: 'sign',
67
+ description: 'Generate detached Ed25519 cryptographic signature over a payload (15 credits).',
68
+ inputSchema: { type: 'object', required: ['message'], properties: { message: { type: 'string' }, secret_key_base64: { type: 'string' } } },
69
+ },
70
+ {
71
+ name: 'dexmond_cyphernight_archive_inspect',
72
+ service: 'cyphernight',
73
+ operation: 'archive_inspect',
74
+ description: 'Pure-memory ZIP/GZIP/TAR forensic inspection detecting zip-bombs, zip-slip traversal, and nested executables (35 credits).',
75
+ inputSchema: { type: 'object', required: ['content_base64'], properties: { content_base64: { type: 'string' } } },
76
+ },
77
+ {
78
+ name: 'dexmond_cyphernight_stego_detect',
79
+ service: 'cyphernight',
80
+ operation: 'stego_detect',
81
+ description: 'Detect steganography anomalies, trailing EOF payloads, and metadata secrets in PNG/JPEG/BMP images (35 credits).',
82
+ inputSchema: { type: 'object', required: ['content_base64'], properties: { content_base64: { type: 'string' } } },
83
+ },
84
+
85
+ // --- DEXMOND MIE & ANDROID PROLAB ---
86
+ {
87
+ name: 'dexmond_mie_scan_static',
88
+ service: 'mie',
89
+ operation: 'scan_static',
90
+ description: 'DEXMOND MIE V1.0 static malware inspection (hashing, entropy, EICAR, PE/ELF/script YARA heuristics, false-alarm suppression) (45 credits).',
91
+ inputSchema: { type: 'object', properties: { text: { type: 'string' }, content_base64: { type: 'string' }, filename: { type: 'string' } } },
92
+ },
93
+ {
94
+ name: 'dexmond_mie_hash_reputation',
95
+ service: 'mie',
96
+ operation: 'hash_reputation',
97
+ description: 'Check MD5, SHA-1, or SHA-256 hash against Dexmond MIE reputation indicators (15 credits).',
98
+ inputSchema: { type: 'object', required: ['hash'], properties: { hash: { type: 'string' } } },
99
+ },
100
+ {
101
+ name: 'dexmond_prolab_apk_inspect',
102
+ service: 'prolab',
103
+ operation: 'apk_inspect',
104
+ description: 'Android ProLab pure-memory static APK/AAB security audit: DEX count, ABIs, signing, dangerous permissions, trackers, and secrets (60 credits).',
105
+ inputSchema: { type: 'object', required: ['content_base64'], properties: { content_base64: { type: 'string' } } },
106
+ },
107
+
108
+ // --- ENTERPRISE, AEROSPACE, COMPLIANCE & FIREWALL ---
109
+ {
110
+ name: 'dexmond_sqlalpha_audit',
111
+ service: 'sqlalpha',
112
+ operation: 'audit',
113
+ description: 'Audit SQL queries and PostgreSQL DDL for SQL injection sinks, missing RLS/FORCE RLS, unguarded writes, and leaked credentials (35 credits).',
114
+ inputSchema: { type: 'object', required: ['sql'], properties: { sql: { type: 'string' } } },
115
+ },
116
+ {
117
+ name: 'dexmond_elysium_decay_forecast',
118
+ service: 'elysium',
119
+ operation: 'decay_forecast',
120
+ description: 'Project Elysium WGS84 MKS LEO orbital decay lifetime & annual station-keeping Delta-V forecast (30 credits).',
121
+ inputSchema: { type: 'object', properties: { altitude_km: { type: 'number' }, inclination_deg: { type: 'number' }, mass_kg: { type: 'number' }, area_m2: { type: 'number' }, cd: { type: 'number' }, f107: { type: 'number' }, ap: { type: 'number' }, tle_line2: { type: 'string' } } },
122
+ },
123
+ {
124
+ name: 'dexmond_law_gdpr_screen',
125
+ service: 'law',
126
+ operation: 'gdpr_screen',
127
+ description: 'Automated EU GDPR, Irish Consumer Rights Act 2022, and EU AI Act Art. 50 compliance gap screening (informational only; 60 credits).',
128
+ inputSchema: { type: 'object', required: ['text'], properties: { text: { type: 'string' } } },
129
+ },
130
+ {
131
+ name: 'dexmond_sentinel_policy_compile',
132
+ service: 'sentinel',
133
+ operation: 'policy_compile',
134
+ description: 'Compile zero-trust network intent into validated UFW, nftables, and Cloudflare WAF rules with exposure warnings (35 credits).',
135
+ inputSchema: { type: 'object', required: ['rules'], properties: { default_inbound: { type: 'string' }, rules: { type: 'array', items: { type: 'object' } }, waf_block_countries: { type: 'array', items: { type: 'string' } } } },
136
+ },
137
+
138
+ // --- QUANT & PROBABILITY (STRICTLY ANALYSIS ONLY) ---
139
+ {
140
+ name: 'dexmond_intellidex_analyze',
141
+ service: 'intellidex',
142
+ operation: 'analyze',
143
+ description: 'ANALYSIS ONLY: Read-only quantitative market series analytics (volatility, Sharpe, drawdown, RSI, regime). Zero execution; not financial advice (40 credits).',
144
+ inputSchema: { type: 'object', required: ['prices'], properties: { symbol: { type: 'string' }, prices: { type: 'array', items: { type: 'number' } }, periods_per_year: { type: 'integer' }, risk_free_rate: { type: 'number' } } },
145
+ },
146
+ {
147
+ name: 'dexmond_polyclaw_analyze',
148
+ service: 'polyclaw',
149
+ operation: 'analyze',
150
+ description: 'ANALYSIS ONLY: Read-only prediction-market probability & calibration analytics (overround/vig, fair odds, EV, Kelly math, Brier score). Zero execution (40 credits).',
151
+ inputSchema: { type: 'object', required: ['outcomes'], properties: { outcomes: { type: 'array', items: { type: 'object' } }, historical_forecasts: { type: 'array', items: { type: 'object' } } } },
152
+ },
153
+
154
+ // --- ORBITAL INTEL, GLOBAL RISK & ZERO-LEAK AI ---
155
+ {
156
+ name: 'dexmond_orbital_intel',
157
+ service: 'intel',
158
+ operation: 'orbital',
159
+ description: 'Query live satellite TLE orbital elements and NOAA space weather telemetry (15 credits/unit).',
160
+ inputSchema: { type: 'object', properties: { constellation: { type: 'string', enum: ['all', 'tracked', 'iridium-next', 'named'] }, search: { type: 'string' }, limit: { type: 'integer' } } },
161
+ },
162
+ {
163
+ name: 'dexmond_global_risk',
164
+ service: 'intel',
165
+ operation: 'global_risk',
166
+ description: 'Query live CISA KEV cyber threats, geo-filtered GDACS hazards, NVD, ocean, and macro indicators (20 credits/unit).',
167
+ inputSchema: { type: 'object', properties: { categories: { type: 'array', items: { type: 'string' } }, search: { type: 'string' }, lat: { type: 'number' }, lon: { type: 'number' }, radius_km: { type: 'number' }, limit: { type: 'integer' } } },
168
+ },
169
+ {
170
+ name: 'dexmond_shielded_ai',
171
+ service: 'ai',
172
+ operation: 'shielded_complete',
173
+ description: 'Zero-Leak Sovereign AI completion: Prompt Guard + DLP secret/PII redaction before upstream LLM inference (60 credits).',
174
+ inputSchema: { type: 'object', required: ['prompt'], properties: { prompt: { type: 'string' }, system: { type: 'string' }, rehydrate_pii: { type: 'boolean' } } },
175
+ },
176
+ {
177
+ name: 'dexmond_security_review',
178
+ service: 'ai',
179
+ operation: 'security_review',
180
+ description: 'Zero-trust static + AI code & config security audit detecting SQLi, XSS, hardcoded secrets, RCE primitives, and weak crypto (100 credits).',
181
+ inputSchema: { type: 'object', required: ['code'], properties: { code: { type: 'string' }, language: { type: 'string' }, deep_ai_analysis: { type: 'boolean' } } },
182
+ },
183
+ ];
184
+
185
+ function send(obj) {
186
+ process.stdout.write(JSON.stringify(obj) + '\n');
187
+ }
188
+
189
+ async function invokeDexmond(tool, args) {
190
+ if (!API_KEY) {
191
+ return {
192
+ isError: true,
193
+ content: [{ type: 'text', text: 'DEXMOND_API_KEY is not set. Create a key at https://dexmond.com/dashboard.html#developer' }],
194
+ };
195
+ }
196
+ const idem = 'mcp-' + crypto.randomBytes(10).toString('hex');
197
+ const res = await fetch(API_URL, {
198
+ method: 'POST',
199
+ headers: {
200
+ 'Content-Type': 'application/json',
201
+ 'X-API-Key': API_KEY,
202
+ 'Idempotency-Key': idem,
203
+ },
204
+ body: JSON.stringify({
205
+ service: tool.service,
206
+ operation: tool.operation,
207
+ input: args || {},
208
+ }),
209
+ });
210
+ const text = await res.text();
211
+ let parsed = null;
212
+ try { parsed = JSON.parse(text); } catch (_) {}
213
+ return {
214
+ isError: !res.ok || (parsed && parsed.ok === false),
215
+ content: [{ type: 'text', text: parsed ? JSON.stringify(parsed, null, 2) : text }],
216
+ };
217
+ }
218
+
219
+ const rl = readline.createInterface({ input: process.stdin, crlfDelay: Infinity });
220
+ rl.on('line', async (line) => {
221
+ const trimmed = line.trim();
222
+ if (!trimmed) return;
223
+ let msg;
224
+ try { msg = JSON.parse(trimmed); } catch (_) { return; }
225
+
226
+ const id = msg.id ?? null;
227
+ const method = msg.method || '';
228
+
229
+ if (method === 'initialize') {
230
+ return send({
231
+ jsonrpc: '2.0',
232
+ id,
233
+ result: {
234
+ protocolVersion: '2024-11-05',
235
+ serverInfo: { name: 'dexmond-mcp', version: '2.0.0' },
236
+ capabilities: { tools: {} },
237
+ },
238
+ });
239
+ }
240
+
241
+ if (method === 'notifications/initialized') {
242
+ return;
243
+ }
244
+
245
+ if (method === 'tools/list') {
246
+ return send({
247
+ jsonrpc: '2.0',
248
+ id,
249
+ result: {
250
+ tools: TOOLS.map(({ name, description, inputSchema }) => ({ name, description, inputSchema })),
251
+ },
252
+ });
253
+ }
254
+
255
+ if (method === 'tools/call') {
256
+ const toolName = msg.params?.name;
257
+ const toolArgs = msg.params?.arguments || {};
258
+ const tool = TOOLS.find(t => t.name === toolName);
259
+ if (!tool) {
260
+ return send({ jsonrpc: '2.0', id, error: { code: -32601, message: `Unknown tool: ${toolName}` } });
261
+ }
262
+ try {
263
+ const result = await invokeDexmond(tool, toolArgs);
264
+ return send({ jsonrpc: '2.0', id, result });
265
+ } catch (err) {
266
+ return send({ jsonrpc: '2.0', id, result: { isError: true, content: [{ type: 'text', text: String(err.message || err) }] } });
267
+ }
268
+ }
269
+
270
+ if (id !== null) {
271
+ send({ jsonrpc: '2.0', id, error: { code: -32601, message: `Method not found: ${method}` } });
272
+ }
273
+ });
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "@dexmond/mcp-server",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "2.0.1",
4
+ "description": "Official zero-dependency Dexmond Technologies MCP Server — exposes 22 EU-hosted security, DLP, Prompt Guard, malware IOC, SQL/RLS, GDPR/EU AI Act, APK & orbital tools to Claude Code, Cursor, Windsurf, and MCP agents.",
5
+ "type": "module",
6
+ "bin": {
7
+ "dexmond-mcp": "./index.mjs"
8
+ },
9
+ "main": "./index.mjs",
10
+ "files": [
11
+ "index.mjs",
12
+ "README.md",
13
+ "LICENSE",
14
+ "server.json",
15
+ "smithery.yaml"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "engines": {
21
+ "node": ">=18.0.0"
22
+ },
23
+ "keywords": [
24
+ "mcp",
25
+ "model-context-protocol",
26
+ "claude-code",
27
+ "cursor",
28
+ "dexmond",
29
+ "ai-security",
30
+ "prompt-injection",
31
+ "dlp",
32
+ "gdpr",
33
+ "devsecops"
34
+ ],
35
+ "license": "MIT",
36
+ "homepage": "https://dexmond.com/integrations.html",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/Dexmond-Technologies/dexmond-sdk.git",
40
+ "directory": "packages/mcp-server"
41
+ },
42
+ "bugs": {
43
+ "url": "https://github.com/Dexmond-Technologies/dexmond-sdk/issues"
44
+ }
45
+ }
package/server.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "com.dexmond/dexmond-mcp",
3
+ "title": "Dexmond Commercial API MCP Server (22 Security, Crypto, Malware, Compliance & Intel Tools)",
4
+ "description": "Zero-dependency official MCP server exposing 22 live European zero-trust tools: Dexmond Shield DLP & Prompt Firewall, CypherNight AES-256-GCM/Ed25519/Archive/Stego forensics, MIE V1.0 Malware Inspection, Android ProLab APK Audit, SQL-Alpha RLS Audit, Project Elysium Orbital Decay, Agent Law EU GDPR/AI Act, Sentinel 2.0 Firewall Compiler, Analysis-Only IntelliDex & PolyClaw, Orbital & Global Risk Intel, and Zero-Leak AI.",
5
+ "version": "2.0.0",
6
+ "homepage": "https://dexmond.com/api-docs.html",
7
+ "pricing": "https://dexmond.com/pricing.html",
8
+ "trustCenter": "https://dexmond.com/security-trust.html",
9
+ "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
+ "toolCount": 22
25
+ }
package/smithery.yaml ADDED
@@ -0,0 +1,25 @@
1
+ # Smithery / MCP Directory Manifest for Dexmond MCP Server v2.0
2
+ startCommand:
3
+ type: stdio
4
+ configSchema:
5
+ type: object
6
+ required:
7
+ - dexmondApiKey
8
+ properties:
9
+ dexmondApiKey:
10
+ type: string
11
+ title: Dexmond API Key
12
+ description: "Your dx_live_... API key from https://dexmond.com/dashboard.html#developer (250 free welcome credits included)"
13
+ dexmondApiUrl:
14
+ type: string
15
+ default: "https://dexmond.com/api/v1/commerce.php"
16
+ description: "Dexmond Commercial Gateway URL"
17
+ commandFunction: |-
18
+ (config) => ({
19
+ command: 'node',
20
+ args: ['index.mjs'],
21
+ env: {
22
+ DEXMOND_API_KEY: config.dexmondApiKey,
23
+ DEXMOND_API_URL: config.dexmondApiUrl || 'https://dexmond.com/api/v1/commerce.php'
24
+ }
25
+ })