regulatory-webhook-mcp 1.0.1__tar.gz
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.
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CSOAI-ORG / MEOK AI Labs
|
|
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.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: regulatory-webhook-mcp
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: MCP server for regulatory webhook. Features subscribe, get recent changes, check for updates. From MEOK AI Labs.
|
|
5
|
+
Project-URL: Homepage, https://meok.ai
|
|
6
|
+
Project-URL: Repository, https://github.com/CSOAI-ORG/regulatory-webhook-mcp
|
|
7
|
+
Author-email: MEOK AI Labs <nicholas@meok.ai>
|
|
8
|
+
License: MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2026 CSOAI-ORG / MEOK AI Labs
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
Keywords: ai,mcp,meok
|
|
31
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
32
|
+
Classifier: Operating System :: OS Independent
|
|
33
|
+
Classifier: Programming Language :: Python :: 3
|
|
34
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
35
|
+
Requires-Python: >=3.10
|
|
36
|
+
Requires-Dist: mcp>=1.0.0
|
|
37
|
+
Requires-Dist: requests>=2.28.0
|
|
38
|
+
Description-Content-Type: text/markdown
|
|
39
|
+
|
|
40
|
+
[](https://glama.ai/mcp/servers/CSOAI-ORG/regulatory-webhook-mcp)
|
|
41
|
+
|
|
42
|
+
<div align="center">
|
|
43
|
+
|
|
44
|
+
[](https://github.com/CSOAI-ORG/regulatory-webhook-mcp/stargazers)
|
|
45
|
+
|
|
46
|
+
# uregulatoryU webhookU mcp
|
|
47
|
+
|
|
48
|
+
**Regulatory Update Webhook — MEOK AI Labs. Monitor regulatory changes, notify subscribers.**
|
|
49
|
+
|
|
50
|
+
[](https://www.npmjs.com/package/@meok-ai/regulatory-webhook-mcp)
|
|
51
|
+
[](LICENSE)
|
|
52
|
+
[](https://meok.ai)
|
|
53
|
+
|
|
54
|
+
[Installation](#installation) · [Docs](https://csoai.org) · [Report Bug](https://github.com/CSOAI-ORG/regulatory-webhook-mcp/issues)
|
|
55
|
+
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pip install regulatory-webhook-mcp
|
|
64
|
+
# or
|
|
65
|
+
npm install -g @meok-ai/regulatory-webhook-mcp
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Quick Start
|
|
69
|
+
|
|
70
|
+
See the project repository for full documentation and examples.
|
|
71
|
+
|
|
72
|
+
## Enterprise Support
|
|
73
|
+
|
|
74
|
+
- 📧 nicholas@csoai.org
|
|
75
|
+
- 🌐 [CSOAI.org](https://csoai.org)
|
|
76
|
+
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
MIT © [CSOAI](https://csoai.org)
|
|
80
|
+
<!-- mcp-name: io.github.CSOAI-ORG/regulatory-webhook-mcp -->
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[](https://glama.ai/mcp/servers/CSOAI-ORG/regulatory-webhook-mcp)
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
[](https://github.com/CSOAI-ORG/regulatory-webhook-mcp/stargazers)
|
|
6
|
+
|
|
7
|
+
# uregulatoryU webhookU mcp
|
|
8
|
+
|
|
9
|
+
**Regulatory Update Webhook — MEOK AI Labs. Monitor regulatory changes, notify subscribers.**
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/@meok-ai/regulatory-webhook-mcp)
|
|
12
|
+
[](LICENSE)
|
|
13
|
+
[](https://meok.ai)
|
|
14
|
+
|
|
15
|
+
[Installation](#installation) · [Docs](https://csoai.org) · [Report Bug](https://github.com/CSOAI-ORG/regulatory-webhook-mcp/issues)
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install regulatory-webhook-mcp
|
|
25
|
+
# or
|
|
26
|
+
npm install -g @meok-ai/regulatory-webhook-mcp
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
30
|
+
|
|
31
|
+
See the project repository for full documentation and examples.
|
|
32
|
+
|
|
33
|
+
## Enterprise Support
|
|
34
|
+
|
|
35
|
+
- 📧 nicholas@csoai.org
|
|
36
|
+
- 🌐 [CSOAI.org](https://csoai.org)
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
MIT © [CSOAI](https://csoai.org)
|
|
41
|
+
<!-- mcp-name: io.github.CSOAI-ORG/regulatory-webhook-mcp -->
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
[project]
|
|
5
|
+
name = "regulatory-webhook-mcp"
|
|
6
|
+
version = "1.0.1"
|
|
7
|
+
description = "MCP server for regulatory webhook. Features subscribe, get recent changes, check for updates. From MEOK AI Labs."
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
license = {file = "LICENSE"}
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
authors = [{name = "MEOK AI Labs", email = "nicholas@meok.ai"}]
|
|
12
|
+
keywords = ["mcp", "meok", "ai"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"License :: OSI Approved :: MIT License",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
"Topic :: Software Development :: Libraries",
|
|
18
|
+
]
|
|
19
|
+
dependencies = ["mcp>=1.0.0", "requests>=2.28.0"]
|
|
20
|
+
[project.urls]
|
|
21
|
+
Homepage = "https://meok.ai"
|
|
22
|
+
Repository = "https://github.com/CSOAI-ORG/regulatory-webhook-mcp"
|
|
23
|
+
[tool.hatch.build.targets.wheel]
|
|
24
|
+
packages = ["."]
|
|
25
|
+
only-include = ["server.py"]
|
|
26
|
+
|
|
27
|
+
[project.scripts]
|
|
28
|
+
regulatory_webhook_mcp = "server:main"
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Regulatory Update Webhook — MEOK AI Labs. Monitor regulatory changes, notify subscribers."""
|
|
3
|
+
|
|
4
|
+
import sys, os
|
|
5
|
+
|
|
6
|
+
sys.path.insert(0, os.path.expanduser("~/clawd/meok-labs-engine/shared"))
|
|
7
|
+
from auth_middleware import check_access
|
|
8
|
+
|
|
9
|
+
import json, os, hashlib, time, requests
|
|
10
|
+
from datetime import datetime, timezone
|
|
11
|
+
from collections import defaultdict
|
|
12
|
+
from mcp.server.fastmcp import FastMCP
|
|
13
|
+
|
|
14
|
+
FREE_DAILY_LIMIT = 30
|
|
15
|
+
_usage = defaultdict(list)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def _rl(c="anon"):
|
|
19
|
+
now = datetime.now(timezone.utc)
|
|
20
|
+
_usage[c] = [t for t in _usage[c] if (now - t).total_seconds() < 86400]
|
|
21
|
+
if len(_usage[c]) >= FREE_DAILY_LIMIT:
|
|
22
|
+
return json.dumps({"error": f"Limit {FREE_DAILY_LIMIT}/day"})
|
|
23
|
+
_usage[c].append(now)
|
|
24
|
+
return None
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
mcp = FastMCP(
|
|
28
|
+
"regulatory-webhook",
|
|
29
|
+
instructions="MEOK AI Labs — Monitor regulatory changes. Subscribe to updates. Get notified when laws change.",
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
_subscribers = defaultdict(list)
|
|
33
|
+
_webhooks = []
|
|
34
|
+
_updates_cache = []
|
|
35
|
+
|
|
36
|
+
REGULATORY_CHANGES = [
|
|
37
|
+
{
|
|
38
|
+
"date": "2026-04-14",
|
|
39
|
+
"framework": "EU AI Act",
|
|
40
|
+
"change": "Digital Omnibus: Annex III deadline moved to Dec 2027",
|
|
41
|
+
"impact": "high",
|
|
42
|
+
"source": "EU Commission",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"date": "2026-04-10",
|
|
46
|
+
"framework": "NIST AI RMF 2.0",
|
|
47
|
+
"change": "Version 2.0 released with new governance structures",
|
|
48
|
+
"impact": "high",
|
|
49
|
+
"source": "NIST",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"date": "2026-04-01",
|
|
53
|
+
"framework": "UK AI Security Institute",
|
|
54
|
+
"change": "Rebranded to UK AISI",
|
|
55
|
+
"impact": "medium",
|
|
56
|
+
"source": "UK Government",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"date": "2026-03-20",
|
|
60
|
+
"framework": "ISO 42001",
|
|
61
|
+
"change": "First AI management system standard published",
|
|
62
|
+
"impact": "high",
|
|
63
|
+
"source": "ISO",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"date": "2026-03-15",
|
|
67
|
+
"framework": "Singapore Model AI Governance",
|
|
68
|
+
"change": "Updated версия 2.0 released",
|
|
69
|
+
"impact": "medium",
|
|
70
|
+
"source": "IMDA",
|
|
71
|
+
},
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
@mcp.tool()
|
|
76
|
+
def subscribe(
|
|
77
|
+
email: str, frameworks: str = "all", webhook_url: str = "", api_key: str = ""
|
|
78
|
+
) -> str:
|
|
79
|
+
"""Subscribe to regulatory update notifications for specific frameworks."""
|
|
80
|
+
allowed, msg, tier = check_access(api_key)
|
|
81
|
+
if not allowed:
|
|
82
|
+
return {"error": msg, "upgrade_url": "https://meok.ai/pricing"}
|
|
83
|
+
|
|
84
|
+
if err := _rl():
|
|
85
|
+
return err
|
|
86
|
+
|
|
87
|
+
sub_id = hashlib.sha256(f"{email}{time.time()}".encode()).hexdigest()[:12]
|
|
88
|
+
frameworks_list = [f.strip() for f in frameworks.split(",")]
|
|
89
|
+
|
|
90
|
+
sub = {
|
|
91
|
+
"id": sub_id,
|
|
92
|
+
"email": email,
|
|
93
|
+
"frameworks": frameworks_list,
|
|
94
|
+
"webhook_url": webhook_url,
|
|
95
|
+
"subscribed_at": datetime.now(timezone.utc).isoformat(),
|
|
96
|
+
"status": "active",
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
_subscribers[email] = sub
|
|
100
|
+
|
|
101
|
+
if webhook_url:
|
|
102
|
+
_webhooks.append({"url": webhook_url, "sub_id": sub_id})
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
"subscribed": True,
|
|
106
|
+
"sub_id": sub_id,
|
|
107
|
+
"email": email,
|
|
108
|
+
"frameworks": frameworks_list,
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
@mcp.tool()
|
|
113
|
+
def unsubscribe(email: str, api_key: str = "") -> str:
|
|
114
|
+
"""Unsubscribe from regulatory updates."""
|
|
115
|
+
allowed, msg, tier = check_access(api_key)
|
|
116
|
+
if not allowed:
|
|
117
|
+
return {"error": msg, "upgrade_url": "https://meok.ai/pricing"}
|
|
118
|
+
|
|
119
|
+
if err := _rl():
|
|
120
|
+
return err
|
|
121
|
+
|
|
122
|
+
if email in _subscribers:
|
|
123
|
+
_subscribers[email]["status"] = "inactive"
|
|
124
|
+
return {"unsubscribed": True, "email": email}
|
|
125
|
+
|
|
126
|
+
return {"error": "Not subscribed"}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
@mcp.tool()
|
|
130
|
+
def get_recent_changes(
|
|
131
|
+
framework: str = "all", days: int = 90, api_key: str = ""
|
|
132
|
+
) -> str:
|
|
133
|
+
"""Get recent regulatory changes for specified frameworks."""
|
|
134
|
+
allowed, msg, tier = check_access(api_key)
|
|
135
|
+
if not allowed:
|
|
136
|
+
return {"error": msg, "upgrade_url": "https://meok.ai/pricing"}
|
|
137
|
+
|
|
138
|
+
if err := _rl():
|
|
139
|
+
return err
|
|
140
|
+
|
|
141
|
+
cutoff = datetime.now(timezone.utc) - timedelta(days=days)
|
|
142
|
+
filtered = [
|
|
143
|
+
c
|
|
144
|
+
for c in REGULATORY_CHANGES
|
|
145
|
+
if datetime.fromisoformat(c["date"].replace("-", "/")) >= cutoff
|
|
146
|
+
]
|
|
147
|
+
|
|
148
|
+
if framework != "all":
|
|
149
|
+
filtered = [c for c in filtered if framework.lower() in c["framework"].lower()]
|
|
150
|
+
|
|
151
|
+
return {"changes": filtered, "total": len(filtered), "framework": framework}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
@mcp.tool()
|
|
155
|
+
def check_for_updates(
|
|
156
|
+
frameworks: str = "eu_ai_act,nist,iso_42001", api_key: str = ""
|
|
157
|
+
) -> str:
|
|
158
|
+
"""Check if monitored frameworks have recent updates."""
|
|
159
|
+
allowed, msg, tier = check_access(api_key)
|
|
160
|
+
if not allowed:
|
|
161
|
+
return {"error": msg, "upgrade_url": "https://meok.ai/pricing"}
|
|
162
|
+
|
|
163
|
+
if err := _rl():
|
|
164
|
+
return err
|
|
165
|
+
|
|
166
|
+
fw_list = [f.strip() for f in frameworks.split(",")]
|
|
167
|
+
updates = []
|
|
168
|
+
|
|
169
|
+
for fw in fw_list:
|
|
170
|
+
for change in REGULATORY_CHANGES:
|
|
171
|
+
if fw.lower().replace("_", " ") in change["framework"].lower():
|
|
172
|
+
updates.append(change)
|
|
173
|
+
|
|
174
|
+
return {
|
|
175
|
+
"has_updates": len(updates) > 0,
|
|
176
|
+
"updates": updates,
|
|
177
|
+
"checked": datetime.now(timezone.utc).isoformat(),
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
@mcp.tool()
|
|
182
|
+
def register_webhook(
|
|
183
|
+
url: str, events: str = "regulatory_change", api_key: str = ""
|
|
184
|
+
) -> str:
|
|
185
|
+
"""Register a webhook for regulatory notifications."""
|
|
186
|
+
allowed, msg, tier = check_access(api_key)
|
|
187
|
+
if not allowed:
|
|
188
|
+
return {"error": msg, "upgrade_url": "https://meok.ai/pricing"}
|
|
189
|
+
|
|
190
|
+
if err := _rl():
|
|
191
|
+
return err
|
|
192
|
+
|
|
193
|
+
webhook_id = hashlib.sha256(f"{url}{time.time()}".encode()).hexdigest()[:12]
|
|
194
|
+
|
|
195
|
+
webhook = {
|
|
196
|
+
"id": webhook_id,
|
|
197
|
+
"url": url,
|
|
198
|
+
"events": [e.strip() for e in events.split(",")],
|
|
199
|
+
"registered_at": datetime.now(timezone.utc).isoformat(),
|
|
200
|
+
"status": "active",
|
|
201
|
+
}
|
|
202
|
+
_webhooks.append(webhook)
|
|
203
|
+
|
|
204
|
+
return {"registered": True, "webhook_id": webhook_id, "url": url}
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
@mcp.tool()
|
|
208
|
+
def trigger_webhook(webhook_id: str, payload: dict, api_key: str = "") -> str:
|
|
209
|
+
"""Manually trigger a webhook with payload."""
|
|
210
|
+
allowed, msg, tier = check_access(api_key)
|
|
211
|
+
if not allowed:
|
|
212
|
+
return {"error": msg, "upgrade_url": "https://meok.ai/pricing"}
|
|
213
|
+
|
|
214
|
+
if err := _rl():
|
|
215
|
+
return err
|
|
216
|
+
|
|
217
|
+
webhook = next((w for w in _webhooks if w["id"] == webhook_id), None)
|
|
218
|
+
if not webhook:
|
|
219
|
+
return {"error": "Webhook not found"}
|
|
220
|
+
|
|
221
|
+
try:
|
|
222
|
+
response = requests.post(webhook["url"], json=payload, timeout=10)
|
|
223
|
+
return {
|
|
224
|
+
"triggered": True,
|
|
225
|
+
"status_code": response.status_code,
|
|
226
|
+
"response": response.text[:200],
|
|
227
|
+
}
|
|
228
|
+
except Exception as e:
|
|
229
|
+
return {"triggered": False, "error": str(e)}
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
@mcp.tool()
|
|
233
|
+
def get_subscribers(api_key: str = "") -> str:
|
|
234
|
+
"""List all webhook subscribers (admin only)."""
|
|
235
|
+
allowed, msg, tier = check_access(api_key)
|
|
236
|
+
if not allowed:
|
|
237
|
+
return {"error": msg, "upgrade_url": "https://meok.ai/pricing"}
|
|
238
|
+
|
|
239
|
+
if tier not in ["pro", "enterprise"]:
|
|
240
|
+
return {"error": "Admin access required"}
|
|
241
|
+
|
|
242
|
+
return {"subscribers": list(_subscribers.values()), "total": len(_subscribers)}
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
@mcp.tool()
|
|
246
|
+
def list_webhooks(api_key: str = "") -> str:
|
|
247
|
+
"""List all registered webhooks."""
|
|
248
|
+
allowed, msg, tier = check_access(api_key)
|
|
249
|
+
if not allowed:
|
|
250
|
+
return {"error": msg, "upgrade_url": "https://meok.ai/pricing"}
|
|
251
|
+
|
|
252
|
+
return {"webhooks": _webhooks, "total": len(_webhooks)}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
@mcp.tool()
|
|
256
|
+
def get_framework_newsletter_summary(api_key: str = "") -> str:
|
|
257
|
+
"""Get a newsletter-ready summary of recent regulatory changes."""
|
|
258
|
+
allowed, msg, tier = check_access(api_key)
|
|
259
|
+
if not allowed:
|
|
260
|
+
return {"error": msg, "upgrade_url": "https://meok.ai/pricing"}
|
|
261
|
+
|
|
262
|
+
if err := _rl():
|
|
263
|
+
return err
|
|
264
|
+
|
|
265
|
+
high_impact = [c for c in REGULATORY_CHANGES if c.get("impact") == "high"]
|
|
266
|
+
|
|
267
|
+
return {
|
|
268
|
+
"summary": {
|
|
269
|
+
"total_changes": len(REGULATORY_CHANGES),
|
|
270
|
+
"high_impact_count": len(high_impact),
|
|
271
|
+
"frameworks_covered": list(set(c["framework"] for c in REGULATORY_CHANGES)),
|
|
272
|
+
"high_impact_items": high_impact,
|
|
273
|
+
},
|
|
274
|
+
"generated_at": datetime.now(timezone.utc).isoformat(),
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
if __name__ == "__main__":
|
|
279
|
+
mcp.run()
|