@motorical/scope-catalog 0.3.1 → 0.5.0
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/package.json +1 -1
- package/src/scopes.js +2 -2
- package/src/tools.js +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motorical/scope-catalog",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Canonical MCP/OAuth scope metadata for Motorical — descriptions, Public API scope mapping, implied-read rules, and declarative tool/resource membership. One source of truth consumed by motorical-backend and @motorical/mcp.",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"engines": {
|
package/src/scopes.js
CHANGED
|
@@ -78,8 +78,8 @@ const SCOPES = {
|
|
|
78
78
|
resource: 'domains',
|
|
79
79
|
level: 'read',
|
|
80
80
|
publicScopes: ['config.read'],
|
|
81
|
-
agentDescription: 'List and read sending domains, without adding or verifying any.',
|
|
82
|
-
customerAction: 'View your sending domains',
|
|
81
|
+
agentDescription: 'List and read sending domains, their DNS records and email-authentication health, and read a Motor Block\'s configuration, without adding or verifying any domain.',
|
|
82
|
+
customerAction: 'View your sending domains and Motor Block configuration',
|
|
83
83
|
},
|
|
84
84
|
};
|
|
85
85
|
|
package/src/tools.js
CHANGED
|
@@ -35,12 +35,16 @@ const ANALYTICS_TOOLS = [
|
|
|
35
35
|
'motorical_get_rate_limits',
|
|
36
36
|
'motorical_get_account_rate_limits',
|
|
37
37
|
'motorical_get_onboarding_state',
|
|
38
|
+
'motorical_whoami',
|
|
38
39
|
'motorical_get_logs',
|
|
39
40
|
'motorical_get_message_by_smtp_id',
|
|
40
41
|
];
|
|
41
42
|
|
|
42
43
|
const DOMAIN_TOOLS = [
|
|
43
44
|
'motorical_domain_list',
|
|
45
|
+
'motorical_domain_get',
|
|
46
|
+
'motorical_domain_dns_records',
|
|
47
|
+
'motorical_domain_health',
|
|
44
48
|
'motorical_domain_add',
|
|
45
49
|
'motorical_domain_verify',
|
|
46
50
|
'motorical_domain_check_dns',
|
|
@@ -123,11 +127,15 @@ const TOOL_SCOPES = {
|
|
|
123
127
|
motorical_get_rate_limits: ['read:analytics'],
|
|
124
128
|
motorical_get_account_rate_limits: ['read:analytics'],
|
|
125
129
|
motorical_get_onboarding_state: ['read:analytics'],
|
|
130
|
+
motorical_whoami: ['read:analytics'],
|
|
126
131
|
motorical_get_logs: ['read:analytics'],
|
|
127
132
|
motorical_get_message_by_smtp_id: ['read:analytics'],
|
|
128
|
-
motorical_get_config: ['
|
|
129
|
-
motorical_get_domain_health: ['
|
|
133
|
+
motorical_get_config: ['read:domains'],
|
|
134
|
+
motorical_get_domain_health: ['read:domains'],
|
|
130
135
|
motorical_domain_list: ['read:domains'],
|
|
136
|
+
motorical_domain_get: ['read:domains'],
|
|
137
|
+
motorical_domain_dns_records: ['read:domains'],
|
|
138
|
+
motorical_domain_health: ['read:domains'],
|
|
131
139
|
motorical_domain_add: ['manage:domains'],
|
|
132
140
|
motorical_domain_verify: ['manage:domains'],
|
|
133
141
|
motorical_domain_check_dns: ['manage:domains'],
|