@suveren/gateway 0.28.1 → 0.29.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.
@@ -6,7 +6,7 @@
6
6
  "icon": "users",
7
7
  "profile": "customers",
8
8
  "npmPackage": "@humanagencyp/crm-mcp",
9
- "npmVersion": "1.4.1",
9
+ "npmVersion": "1.5.0",
10
10
  "mcp": {
11
11
  "command": "crm-mcp",
12
12
  "args": []
@@ -39,6 +39,32 @@
39
39
  },
40
40
  "personalDefault": true,
41
41
  "oauth": null,
42
+ "context": {
43
+ "sources": {
44
+ "activity": {
45
+ "read": { "tool": "get_activity", "args": { "id": "$id" } },
46
+ "title": "summary",
47
+ "author": "created_by",
48
+ "at": "date",
49
+ "body": "detail"
50
+ }
51
+ },
52
+ "history": {
53
+ "byKey": ["email_domain", "email"],
54
+ "read": { "tool": "get_timeline", "args": { "$keyType": "$key", "since": "$since", "limit": "$limit" } },
55
+ "limit": 5,
56
+ "maxAgeDays": 14,
57
+ "item": {
58
+ "kind": "activity",
59
+ "title": "summary",
60
+ "body": "detail",
61
+ "at": "date",
62
+ "author": "created_by",
63
+ "type": "type",
64
+ "ticket": "ticket_id"
65
+ }
66
+ }
67
+ },
42
68
  "toolGating": {
43
69
  "default": {
44
70
  "executionMapping": {
@@ -55,6 +81,7 @@
55
81
  "action_type": "write"
56
82
  },
57
83
  "actionLabel": "Contact created",
84
+ "contextKeys": { "email": "email" },
58
85
  "preview": [
59
86
  { "tool": "find_contacts", "args": { "query": "email" } }
60
87
  ],
@@ -308,6 +335,11 @@
308
335
  "boundField": "read_access",
309
336
  "requiredValue": "unlimited"
310
337
  },
338
+ "get_activity": {
339
+ "category": "read",
340
+ "boundField": "read_access",
341
+ "requiredValue": "unlimited"
342
+ },
311
343
  "get_pipeline": {
312
344
  "category": "read",
313
345
  "boundField": "read_access",
@@ -40,6 +40,18 @@
40
40
  },
41
41
  "personalDefault": true,
42
42
  "oauth": null,
43
+ "context": {
44
+ "recordKeys": {
45
+ "customer": {
46
+ "read": { "tool": "get_customer", "args": { "id": "$id" } },
47
+ "keys": { "email": "email" }
48
+ },
49
+ "quote": {
50
+ "read": { "tool": "get_quote", "args": { "id": "$id" } },
51
+ "next": { "recordKey": "customer", "field": "customer_id" }
52
+ }
53
+ }
54
+ },
43
55
  "toolGating": {
44
56
  "default": {
45
57
  "executionMapping": {},
@@ -96,6 +108,7 @@
96
108
  "action_type": "quote"
97
109
  },
98
110
  "actionLabel": "Quote drafted",
111
+ "contextKeys": { "customer": "customer_id" },
99
112
  "preview": [
100
113
  { "tool": "get_customer", "args": { "id": "customer_id" }, "attach": "customer_id" },
101
114
  { "tool": "get_item", "forEach": "lines", "args": { "id": "item_id" }, "attach": "item" }
@@ -129,6 +142,7 @@
129
142
  "action_type": "quote"
130
143
  },
131
144
  "actionLabel": "Quote updated",
145
+ "contextKeys": { "quote": "id" },
132
146
  "preview": [
133
147
  { "tool": "get_item", "forEach": "lines", "args": { "id": "item_id" }, "attach": "item" }
134
148
  ],
@@ -156,6 +170,7 @@
156
170
  "action_type": "send"
157
171
  },
158
172
  "actionLabel": "Quote sent",
173
+ "contextKeys": { "quote": "id" },
159
174
  "preview": {
160
175
  "tool": "get_quote",
161
176
  "args": { "id": "id", "revision": "revision" },
@@ -173,6 +188,7 @@
173
188
  "action_type": "order"
174
189
  },
175
190
  "actionLabel": "Quote converted to order",
191
+ "contextKeys": { "quote": "id" },
176
192
  "preview": {
177
193
  "tool": "get_quote",
178
194
  "args": { "id": "id", "revision": "revision" },
@@ -38,6 +38,20 @@
38
38
  "REFRESH_TOKEN": "refreshToken"
39
39
  }
40
40
  },
41
+ "context": {
42
+ "sources": {
43
+ "message": {
44
+ "read": { "tool": "get_message", "args": { "id": "$id" } },
45
+ "keys": {
46
+ "email": { "path": "payload.headers", "where": { "name": "From" }, "pick": "value", "parse": "address.email" }
47
+ },
48
+ "title": { "path": "payload.headers", "where": { "name": "Subject" }, "pick": "value" },
49
+ "author": { "path": "payload.headers", "where": { "name": "From" }, "pick": "value", "parse": "address.name" },
50
+ "at": { "path": "internalDate", "parse": "epoch-ms" },
51
+ "body": "snippet"
52
+ }
53
+ }
54
+ },
41
55
  "oauth": {
42
56
  "authUrl": "https://accounts.google.com/o/oauth2/v2/auth",
43
57
  "tokenUrl": "https://oauth2.googleapis.com/token",
@@ -131,6 +145,8 @@
131
145
  },
132
146
  "list_messages": {
133
147
  "category": "read",
148
+ "boundField": "read_access",
149
+ "requiredValue": "unlimited",
134
150
  "read": {
135
151
  "ageField": "read_age_days",
136
152
  "queryArg": "q",
@@ -144,6 +160,8 @@
144
160
  },
145
161
  "get_message": {
146
162
  "category": "read",
163
+ "boundField": "read_access",
164
+ "requiredValue": "unlimited",
147
165
  "read": {
148
166
  "ageField": "read_age_days",
149
167
  "resultDatePath": "internalDate",
@@ -161,6 +179,8 @@
161
179
  },
162
180
  "list_drafts": {
163
181
  "category": "read",
182
+ "boundField": "read_access",
183
+ "requiredValue": "unlimited",
164
184
  "read": {
165
185
  "ageField": "read_age_days",
166
186
  "queryArg": "q",
@@ -173,6 +193,8 @@
173
193
  },
174
194
  "get_draft": {
175
195
  "category": "read",
196
+ "boundField": "read_access",
197
+ "requiredValue": "unlimited",
176
198
  "read": {
177
199
  "ageField": "read_age_days",
178
200
  "resultDatePath": "message.internalDate",
@@ -193,8 +215,11 @@
193
215
  },
194
216
  "get_attachment": {
195
217
  "category": "read",
196
- "readGovernance": "none",
197
- "readGovernanceReason": "Transitively age-gated: an attachmentId is only obtainable from get_message, which enforces the read-age window. No independently addressable content."
218
+ "boundField": "read_access",
219
+ "requiredValue": "unlimited",
220
+ "read": {
221
+ "ageField": "read_age_days"
222
+ }
198
223
  },
199
224
  "list_labels": {
200
225
  "category": "read",
@@ -7,6 +7,9 @@
7
7
  "profile": "email",
8
8
  "npmPackage": "@humanagencyp/email-mcp",
9
9
  "npmVersion": "0.3.0",
10
+ "readPolicy": {
11
+ "defaultAgeDays": 30
12
+ },
10
13
  "mcp": {
11
14
  "command": "email-mcp",
12
15
  "args": []
@@ -39,6 +42,19 @@
39
42
  },
40
43
  "personalDefault": false,
41
44
  "oauth": null,
45
+ "context": {
46
+ "sources": {
47
+ "message": {
48
+ "read": { "tool": "get_message", "args": { "id": "$id" } },
49
+ "keys": { "email": "from.email" },
50
+ "title": "subject",
51
+ "author": "from.name",
52
+ "at": "received_at",
53
+ "body": "body",
54
+ "chain": { "field": "in_reply_to", "max": 5 }
55
+ }
56
+ }
57
+ },
42
58
  "toolGating": {
43
59
  "default": {
44
60
  "executionMapping": {},
@@ -48,12 +64,19 @@
48
64
  "list_messages": {
49
65
  "category": "read",
50
66
  "boundField": "read_access",
51
- "requiredValue": "unlimited"
67
+ "requiredValue": "unlimited",
68
+ "read": {
69
+ "ageField": "read_age_days"
70
+ }
52
71
  },
53
72
  "get_message": {
54
73
  "category": "read",
55
74
  "boundField": "read_access",
56
- "requiredValue": "unlimited"
75
+ "requiredValue": "unlimited",
76
+ "read": {
77
+ "ageField": "read_age_days",
78
+ "resultDatePath": "received_at"
79
+ }
57
80
  },
58
81
  "send_message": {
59
82
  "executionMapping": {
@@ -75,7 +98,9 @@
75
98
  "staticExecution": {
76
99
  "action_type": "send"
77
100
  },
78
- "actionLabel": "Email sent"
101
+ "actionLabel": "Email sent",
102
+ "sourceFromArg": { "kind": "message", "arg": "in_reply_to" },
103
+ "contextKeys": { "email": "to" }
79
104
  },
80
105
  "load_simulation": {
81
106
  "executionMapping": {},
@@ -129,6 +129,16 @@
129
129
  "staticExecution": {
130
130
  "action_type": "charge"
131
131
  }
132
+ },
133
+ "ListProfiles": {
134
+ "category": "read",
135
+ "readGovernance": "none",
136
+ "readGovernanceReason": "Returns the organisation's own payment profile configuration (names, websites, status) — no customer or payment data."
137
+ },
138
+ "GetOrganizationDetails": {
139
+ "category": "read",
140
+ "readGovernance": "none",
141
+ "readGovernanceReason": "Returns the connected Mollie organisation's own name/registration details — no customer or payment data."
132
142
  }
133
143
  }
134
144
  },