@costrinity/vigil-compliance-mcp 0.1.1 → 0.1.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
@@ -4,13 +4,14 @@
4
4
 
5
5
  Pair with [`@costrinity/vigil-mcp`](https://www.npmjs.com/package/@costrinity/vigil-mcp) (the JSON-RPC observer): the observer captures what your agent does, this server gives your agent compliance superpowers before it acts.
6
6
 
7
- **Signed audit records:** every decision tool here (consent, AI Act, breach, DPIA, sectoral) writes an HMAC-signed, tamper-evident record of its verdict the moment it runs, retrievable and verifiable via `GET /api/compliance/preflight-audit`. Pure validators and lookups make no decision and are not recorded.
7
+ **Signed audit records:** every decision tool here (consent, AI Act, breach, DPIA, sectoral, action pre-flight) writes an HMAC-signed, tamper-evident record of its verdict the moment it runs, retrievable and verifiable via `GET /api/compliance/preflight-audit`. Pure validators and lookups make no decision and are not recorded.
8
8
 
9
9
  ## What it gives your agent
10
10
 
11
11
  | Tool | Purpose |
12
12
  |---|---|
13
13
  | `consent_check` | Is processing allowed for this principal + purpose? (pre-flight gate) |
14
+ | `action_preflight` | Pre-flight gate BEFORE a destructive action (shell / file-delete / SQL / exfiltration). Heuristic, cooperative, not a sandbox |
14
15
  | `breach_classify` | Is this incident reportable? Per-jurisdiction decision support |
15
16
  | `ai_act_classify` | EU AI Act risk tier classification |
16
17
  | `dpia_threshold_check` | Is a DPIA mandatory before this processing? |
package/dist/index.js CHANGED
@@ -299,6 +299,20 @@ const TOOLS = [
299
299
  : '/api/india/regulators',
300
300
  }),
301
301
  },
302
+ // ─── Destructive-action pre-flight gate ──────────────────────────
303
+ {
304
+ name: 'action_preflight',
305
+ description: "Pre-flight check BEFORE a sensitive / destructive action (shell command, file deletion, DB statement, network call). Runs VIGIL's heuristic threat classifier (sql_destructive / shell_dangerous / secret_leak / prompt_injection / exfiltration / suspicious_network) over the proposed action and returns { decision: allowed|blocked|flagged, threat_category, reason } plus a signed audit record. Heuristic pattern match and a cooperative guardrail, not a sandbox: it cannot enforce on its own and novel or obfuscated payloads can pass.",
306
+ inputSchema: {
307
+ type: 'object',
308
+ properties: {
309
+ action: { type: 'string', description: 'The proposed action / command text, e.g. "rm -rf /" or "DROP TABLE users".' },
310
+ payload: { type: 'object', description: 'Optional structured payload to scan alongside the action text.' },
311
+ action_type: { type: 'string', description: 'Optional short label for the action kind (shell, file_delete, db_query, network).' },
312
+ },
313
+ },
314
+ call: (input) => ({ method: 'POST', path: '/api/preflight/action-check', body: input }),
315
+ },
302
316
  ];
303
317
  // ─── HTTP transport ────────────────────────────────────────────────
304
318
  async function callVigil(method, path, body) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@costrinity/vigil-compliance-mcp",
3
3
  "mcpName": "io.github.COSTRINITY/vigil-compliance-mcp",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "MCP server exposing VIGIL's compliance fabric (consent, breach, DPIA, AI Act, identifier validators, cross-border) as tools LLM agents can call mid-task; decision checks write signed, tamper-evident audit records. 13 jurisdictions, 28+ regulatory regimes.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",