data-compliance-mcp 1.0.4 → 1.0.5
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/CHANGELOG.md +6 -0
- package/LICENSE +18 -4
- package/package.json +2 -2
- package/src/server.js +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.5] - 2026-04-28
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Payment links updated to prepaid bundle URLs: 500 calls for $24 -- calls never expire
|
|
7
|
+
- Free tier limit errors now direct agents to prepaid bundle purchase link directly
|
|
8
|
+
|
|
3
9
|
## [1.0.4] - 2026-04-27
|
|
4
10
|
|
|
5
11
|
### Added
|
package/LICENSE
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2026 Kord Agencies Pte Ltd
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
|
13
|
+
all 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
|
|
21
|
+
THE SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "data-compliance-mcp",
|
|
3
3
|
"mcpName": "io.github.OjasKord/data-compliance-mcp",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.5",
|
|
5
5
|
"description": "Classify data safety before your agent stores or shares it. GDPR, HIPAA, PCI-DSS, CCPA. AI-powered.",
|
|
6
6
|
"main": "src/server.js",
|
|
7
7
|
"scripts": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"eu-ai-act"
|
|
30
30
|
],
|
|
31
31
|
"author": "Kord Agencies Pte Ltd <ojas@kordagencies.com>",
|
|
32
|
-
"license": "
|
|
32
|
+
"license": "MIT",
|
|
33
33
|
"homepage": "https://kordagencies.com",
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
package/src/server.js
CHANGED
|
@@ -3,7 +3,7 @@ const https = require('https');
|
|
|
3
3
|
const crypto = require('crypto');
|
|
4
4
|
const fs = require('fs');
|
|
5
5
|
|
|
6
|
-
const VERSION = '1.0.
|
|
6
|
+
const VERSION = '1.0.5';
|
|
7
7
|
const PERSIST_FILE = '/tmp/datacompliance_stats.json';
|
|
8
8
|
const ANTHROPIC_API_KEY = process.env.ANTHROPIC_API_KEY || '';
|
|
9
9
|
const ABUSEIPDB_API_KEY = process.env.ABUSEIPDB_API_KEY || '';
|
|
@@ -17,7 +17,8 @@ const FREE_TIER_LIMIT = 20;
|
|
|
17
17
|
const FREE_TIER_WARNING = 16;
|
|
18
18
|
const apiKeys = new Map();
|
|
19
19
|
const PLAN_LIMITS = { pro: 5000, enterprise: Infinity };
|
|
20
|
-
const STRIPE_PRO_URL = 'https://buy.stripe.com/
|
|
20
|
+
const STRIPE_PRO_URL = 'https://buy.stripe.com/cNidR87s9dXD0pue7Sebu0r';
|
|
21
|
+
const ENTERPRISE_UPGRADE_URL = 'https://buy.stripe.com/9B6bJ0aElbPv7RW9RCebu0s';
|
|
21
22
|
const STRIPE_ENTERPRISE_URL = 'https://buy.stripe.com/cNi7sKeUB8Dj7RW7Juebu0d';
|
|
22
23
|
|
|
23
24
|
const LEGAL_DISCLAIMER = 'Classification is AI-powered and for informational purposes only. Does not constitute legal advice and does not guarantee regulatory compliance. We do not store or log your data payload — it is analysed in memory and immediately discarded. Jurisdiction detection uses IPinfo (ipinfo.io). Credential checks use the Pwned Passwords k-anonymity API (haveibeenpwned.com) — your credentials are never transmitted in full. Threat checks use AbuseIPDB (abuseipdb.com). Provider maximum liability is limited to subscription fees paid in the preceding 3 months. Full terms: kordagencies.com/terms.html';
|
|
@@ -413,7 +414,7 @@ async function executeTool(name, args, tier) {
|
|
|
413
414
|
|
|
414
415
|
// Gate reasoning on free tier
|
|
415
416
|
if (tier === 'free') {
|
|
416
|
-
result._reasoning_gated = '[
|
|
417
|
+
result._reasoning_gated = '[Get 500 calls for $24 at ' + STRIPE_PRO_URL + ' for full AI reasoning behind this verdict -- required for compliance audit documentation]';
|
|
417
418
|
result._upgrade = {
|
|
418
419
|
batch_classification: 'Pro plan classifies up to 50 payloads per call — bulk data workflows',
|
|
419
420
|
audit_report: 'Pro plan generates structured audit-ready compliance reports',
|
|
@@ -466,7 +467,7 @@ async function executeTool(name, args, tier) {
|
|
|
466
467
|
const _rPreview = {
|
|
467
468
|
mode: mode,
|
|
468
469
|
status: 'PREVIEW — paid plan required',
|
|
469
|
-
message: 'Pro plan required for ' + mode + ' reports.
|
|
470
|
+
message: 'Pro plan required for ' + mode + ' reports. Get 500 calls for $24 at ' + STRIPE_PRO_URL + ' -- calls never expire.',
|
|
470
471
|
upgrade_url: STRIPE_PRO_URL,
|
|
471
472
|
checked_at: checkedAt,
|
|
472
473
|
_disclaimer: LEGAL_DISCLAIMER
|
|
@@ -634,7 +635,7 @@ function checkAccess(req, toolName) {
|
|
|
634
635
|
if (calls >= FREE_TIER_LIMIT) {
|
|
635
636
|
return {
|
|
636
637
|
allowed: false,
|
|
637
|
-
reason: 'Free tier limit
|
|
638
|
+
reason: 'Free tier limit reached. Get 500 calls for $24 at ' + STRIPE_PRO_URL + ' -- calls never expire.',
|
|
638
639
|
upgrade_url: STRIPE_PRO_URL,
|
|
639
640
|
tier: 'free_limit_reached'
|
|
640
641
|
};
|
|
@@ -644,7 +645,7 @@ function checkAccess(req, toolName) {
|
|
|
644
645
|
const remaining = FREE_TIER_LIMIT - calls - 1;
|
|
645
646
|
return {
|
|
646
647
|
allowed: true, tier: 'free', remaining,
|
|
647
|
-
warning: remaining <= 4 ? remaining + ' free classification' + (remaining === 1 ? '' : 's') + ' remaining this month.
|
|
648
|
+
warning: remaining <= 4 ? remaining + ' free classification' + (remaining === 1 ? '' : 's') + ' remaining this month. Get 500 calls for $24 at ' + STRIPE_PRO_URL + ' -- calls never expire.' : null
|
|
648
649
|
};
|
|
649
650
|
}
|
|
650
651
|
|
|
@@ -798,7 +799,7 @@ const server = http.createServer(async (req, res) => {
|
|
|
798
799
|
|
|
799
800
|
if (!access.allowed) {
|
|
800
801
|
res.writeHead(200, { ...cors, 'Content-Type': 'application/json' });
|
|
801
|
-
res.end(JSON.stringify({ jsonrpc: '2.0', id: request.id, result: { content: [{ type: 'text', text: JSON.stringify({ error: access.reason, agent_action: 'Inform user free tier quota is exhausted.
|
|
802
|
+
res.end(JSON.stringify({ jsonrpc: '2.0', id: request.id, result: { content: [{ type: 'text', text: JSON.stringify({ error: access.reason, agent_action: 'Inform user free tier quota is exhausted. Get 500 calls for $24 at ' + STRIPE_PRO_URL + ' -- calls never expire.', upgrade_url: STRIPE_PRO_URL, _disclaimer: LEGAL_DISCLAIMER }) }] } }));
|
|
802
803
|
return;
|
|
803
804
|
}
|
|
804
805
|
|
|
@@ -827,7 +828,7 @@ const server = http.createServer(async (req, res) => {
|
|
|
827
828
|
|
|
828
829
|
if (req.method === 'GET' && req.url === '/') {
|
|
829
830
|
res.writeHead(200, { ...cors, 'Content-Type': 'application/json' });
|
|
830
|
-
res.end(JSON.stringify({ name: 'data-compliance-mcp', version: VERSION, status: 'ok', tools: 2, free_tier: '20 classifications/month, no API key required', description: 'Classify data safety before your agent stores or shares it. GDPR, HIPAA, PCI-DSS, CCPA.', upgrade:
|
|
831
|
+
res.end(JSON.stringify({ name: 'data-compliance-mcp', version: VERSION, status: 'ok', tools: 2, free_tier: '20 classifications/month, no API key required', description: 'Classify data safety before your agent stores or shares it. GDPR, HIPAA, PCI-DSS, CCPA.', upgrade: STRIPE_PRO_URL }));
|
|
831
832
|
return;
|
|
832
833
|
}
|
|
833
834
|
|