snow-flow 8.39.2 → 8.39.4
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/dist/mcp/servicenow-mcp-unified/shared/permission-validator.d.ts.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/shared/types.d.ts +1 -1
- package/dist/mcp/servicenow-mcp-unified/shared/types.d.ts.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.d.ts +6 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.d.ts.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.js +19 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.js.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.js +185 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.js +280 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.js +233 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.js +218 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.js +276 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.js +340 -0
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/index.d.ts +10 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/index.d.ts.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/index.js +34 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/index.js.map +1 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.js +397 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.js +234 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.js +280 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.js +358 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.js +237 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.js +326 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.js +442 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.js +348 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.js +427 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.js.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.d.ts +12 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.d.ts.map +1 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.js +432 -0
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.js.map +1 -0
- package/dist/templates/agents-md-template.d.ts +2 -2
- package/dist/templates/agents-md-template.d.ts.map +1 -1
- package/dist/templates/agents-md-template.js +57 -2
- package/dist/templates/agents-md-template.js.map +1 -1
- package/dist/templates/claude-md-template.d.ts +2 -2
- package/dist/templates/claude-md-template.d.ts.map +1 -1
- package/dist/templates/claude-md-template.js +17 -1
- package/dist/templates/claude-md-template.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* snow_install_spoke - Install and manage IntegrationHub Spokes
|
|
4
|
+
*
|
|
5
|
+
* Install, activate, and configure IntegrationHub Spokes from the
|
|
6
|
+
* ServiceNow Store or custom repositories (Jira, Slack, Azure, etc.).
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.author = exports.version = exports.toolDefinition = void 0;
|
|
10
|
+
exports.execute = execute;
|
|
11
|
+
const auth_js_1 = require("../../shared/auth.js");
|
|
12
|
+
const error_handler_js_1 = require("../../shared/error-handler.js");
|
|
13
|
+
exports.toolDefinition = {
|
|
14
|
+
name: 'snow_install_spoke',
|
|
15
|
+
description: 'Install and manage IntegrationHub Spokes (Jira, Slack, Azure DevOps, etc.)',
|
|
16
|
+
category: 'integration',
|
|
17
|
+
subcategory: 'integrationhub',
|
|
18
|
+
use_cases: ['spokes', 'integration-hub', 'marketplace', 'external-systems'],
|
|
19
|
+
complexity: 'advanced',
|
|
20
|
+
frequency: 'low',
|
|
21
|
+
permission: 'admin',
|
|
22
|
+
allowedRoles: ['admin'],
|
|
23
|
+
inputSchema: {
|
|
24
|
+
type: 'object',
|
|
25
|
+
properties: {
|
|
26
|
+
action: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
enum: ['list', 'list_available', 'install', 'activate', 'deactivate', 'status', 'search'],
|
|
29
|
+
description: 'Action to perform',
|
|
30
|
+
default: 'list'
|
|
31
|
+
},
|
|
32
|
+
spoke_name: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
description: 'Name of the spoke (e.g., "Jira", "Slack", "Microsoft Teams")'
|
|
35
|
+
},
|
|
36
|
+
spoke_id: {
|
|
37
|
+
type: 'string',
|
|
38
|
+
description: 'sys_id of the spoke (for activate/deactivate/status)'
|
|
39
|
+
},
|
|
40
|
+
search_query: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
description: 'Search query for finding spokes (for search action)'
|
|
43
|
+
},
|
|
44
|
+
include_inactive: {
|
|
45
|
+
type: 'boolean',
|
|
46
|
+
description: 'Include inactive spokes in list',
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
49
|
+
limit: {
|
|
50
|
+
type: 'number',
|
|
51
|
+
description: 'Maximum number of results',
|
|
52
|
+
default: 50
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
required: ['action']
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
async function execute(args, context) {
|
|
59
|
+
var action = args.action || 'list';
|
|
60
|
+
var spoke_name = args.spoke_name || '';
|
|
61
|
+
var spoke_id = args.spoke_id || '';
|
|
62
|
+
var search_query = args.search_query || '';
|
|
63
|
+
var include_inactive = args.include_inactive || false;
|
|
64
|
+
var limit = args.limit || 50;
|
|
65
|
+
try {
|
|
66
|
+
var client = await (0, auth_js_1.getAuthenticatedClient)(context);
|
|
67
|
+
if (action === 'list') {
|
|
68
|
+
// List installed spokes
|
|
69
|
+
var queryParts = [];
|
|
70
|
+
if (!include_inactive) {
|
|
71
|
+
queryParts.push('active=true');
|
|
72
|
+
}
|
|
73
|
+
if (spoke_name) {
|
|
74
|
+
queryParts.push('nameLIKE' + spoke_name);
|
|
75
|
+
}
|
|
76
|
+
var spokesResponse = await client.get('/api/now/table/sys_hub_spoke', {
|
|
77
|
+
params: {
|
|
78
|
+
sysparm_query: queryParts.join('^') + '^ORDERBYname',
|
|
79
|
+
sysparm_limit: limit,
|
|
80
|
+
sysparm_fields: 'sys_id,name,version,active,description,vendor,sys_created_on,sys_updated_on',
|
|
81
|
+
sysparm_display_value: 'all'
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
var spokes = spokesResponse.data.result || [];
|
|
85
|
+
// Get action counts for each spoke
|
|
86
|
+
var spokesWithStats = [];
|
|
87
|
+
for (var i = 0; i < spokes.length; i++) {
|
|
88
|
+
var spoke = spokes[i];
|
|
89
|
+
// Count actions in this spoke
|
|
90
|
+
var actionsResponse = await client.get('/api/now/table/sys_hub_action_type_definition', {
|
|
91
|
+
params: {
|
|
92
|
+
sysparm_query: 'sys_scope=' + spoke.sys_id,
|
|
93
|
+
sysparm_fields: 'sys_id',
|
|
94
|
+
sysparm_limit: 1000
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
spokesWithStats.push({
|
|
98
|
+
sys_id: spoke.sys_id,
|
|
99
|
+
name: spoke.name && spoke.name.display_value ? spoke.name.display_value : spoke.name,
|
|
100
|
+
version: spoke.version,
|
|
101
|
+
active: spoke.active === 'true' || spoke.active === true,
|
|
102
|
+
description: spoke.description,
|
|
103
|
+
vendor: spoke.vendor && spoke.vendor.display_value ? spoke.vendor.display_value : spoke.vendor,
|
|
104
|
+
action_count: actionsResponse.data.result?.length || 0,
|
|
105
|
+
installed_on: spoke.sys_created_on,
|
|
106
|
+
updated_on: spoke.sys_updated_on
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
return (0, error_handler_js_1.createSuccessResult)({
|
|
110
|
+
action: 'list',
|
|
111
|
+
spokes: spokesWithStats,
|
|
112
|
+
total: spokesWithStats.length,
|
|
113
|
+
summary: {
|
|
114
|
+
active: spokesWithStats.filter(function (s) { return s.active; }).length,
|
|
115
|
+
inactive: spokesWithStats.filter(function (s) { return !s.active; }).length,
|
|
116
|
+
total_actions: spokesWithStats.reduce(function (sum, s) { return sum + s.action_count; }, 0)
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
else if (action === 'list_available') {
|
|
121
|
+
// List available spokes from plugin registry
|
|
122
|
+
var availableResponse = await client.get('/api/now/table/v_plugin', {
|
|
123
|
+
params: {
|
|
124
|
+
sysparm_query: 'nameLIKESpoke^ORnameLIKEIntegration^ORDERBYname',
|
|
125
|
+
sysparm_limit: limit,
|
|
126
|
+
sysparm_fields: 'sys_id,name,version,active,description,vendor'
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
var available = availableResponse.data.result || [];
|
|
130
|
+
return (0, error_handler_js_1.createSuccessResult)({
|
|
131
|
+
action: 'list_available',
|
|
132
|
+
available_spokes: available.map(function (p) {
|
|
133
|
+
return {
|
|
134
|
+
sys_id: p.sys_id,
|
|
135
|
+
name: p.name,
|
|
136
|
+
version: p.version,
|
|
137
|
+
active: p.active === 'true',
|
|
138
|
+
description: p.description,
|
|
139
|
+
vendor: p.vendor
|
|
140
|
+
};
|
|
141
|
+
}),
|
|
142
|
+
total: available.length,
|
|
143
|
+
note: 'Use snow_activate_plugin to activate available spokes'
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
else if (action === 'search') {
|
|
147
|
+
if (!search_query) {
|
|
148
|
+
return (0, error_handler_js_1.createErrorResult)('search_query is required for search action');
|
|
149
|
+
}
|
|
150
|
+
// Search for spokes by name or description
|
|
151
|
+
var searchResponse = await client.get('/api/now/table/sys_hub_spoke', {
|
|
152
|
+
params: {
|
|
153
|
+
sysparm_query: 'nameLIKE' + search_query + '^ORdescriptionLIKE' + search_query,
|
|
154
|
+
sysparm_limit: limit,
|
|
155
|
+
sysparm_fields: 'sys_id,name,version,active,description,vendor'
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
var searchResults = searchResponse.data.result || [];
|
|
159
|
+
// Also search in plugins
|
|
160
|
+
var pluginSearchResponse = await client.get('/api/now/table/v_plugin', {
|
|
161
|
+
params: {
|
|
162
|
+
sysparm_query: 'nameLIKE' + search_query + '^nameLIKESpoke',
|
|
163
|
+
sysparm_limit: limit,
|
|
164
|
+
sysparm_fields: 'sys_id,name,version,active,description'
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
var pluginResults = pluginSearchResponse.data.result || [];
|
|
168
|
+
return (0, error_handler_js_1.createSuccessResult)({
|
|
169
|
+
action: 'search',
|
|
170
|
+
query: search_query,
|
|
171
|
+
installed_spokes: searchResults.map(function (s) {
|
|
172
|
+
return {
|
|
173
|
+
sys_id: s.sys_id,
|
|
174
|
+
name: s.name,
|
|
175
|
+
version: s.version,
|
|
176
|
+
active: s.active === 'true',
|
|
177
|
+
description: s.description
|
|
178
|
+
};
|
|
179
|
+
}),
|
|
180
|
+
available_plugins: pluginResults.map(function (p) {
|
|
181
|
+
return {
|
|
182
|
+
sys_id: p.sys_id,
|
|
183
|
+
name: p.name,
|
|
184
|
+
version: p.version,
|
|
185
|
+
active: p.active === 'true',
|
|
186
|
+
description: p.description
|
|
187
|
+
};
|
|
188
|
+
}),
|
|
189
|
+
total_found: searchResults.length + pluginResults.length
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
else if (action === 'status') {
|
|
193
|
+
if (!spoke_id && !spoke_name) {
|
|
194
|
+
return (0, error_handler_js_1.createErrorResult)('spoke_id or spoke_name is required for status action');
|
|
195
|
+
}
|
|
196
|
+
// Get spoke status
|
|
197
|
+
var statusQuery = spoke_id ? 'sys_id=' + spoke_id : 'nameLIKE' + spoke_name;
|
|
198
|
+
var statusResponse = await client.get('/api/now/table/sys_hub_spoke', {
|
|
199
|
+
params: {
|
|
200
|
+
sysparm_query: statusQuery,
|
|
201
|
+
sysparm_limit: 1,
|
|
202
|
+
sysparm_fields: 'sys_id,name,version,active,description,vendor,sys_scope',
|
|
203
|
+
sysparm_display_value: 'all'
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
if (!statusResponse.data.result || statusResponse.data.result.length === 0) {
|
|
207
|
+
return (0, error_handler_js_1.createErrorResult)('Spoke not found: ' + (spoke_name || spoke_id));
|
|
208
|
+
}
|
|
209
|
+
var spokeData = statusResponse.data.result[0];
|
|
210
|
+
// Get actions for this spoke
|
|
211
|
+
var spokeActionsResponse = await client.get('/api/now/table/sys_hub_action_type_definition', {
|
|
212
|
+
params: {
|
|
213
|
+
sysparm_query: 'sys_scope=' + spokeData.sys_id + '^ORDERBYname',
|
|
214
|
+
sysparm_fields: 'sys_id,name,description,active,category',
|
|
215
|
+
sysparm_limit: 100
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
var spokeActions = spokeActionsResponse.data.result || [];
|
|
219
|
+
// Get connection aliases used by this spoke
|
|
220
|
+
var connectionsResponse = await client.get('/api/now/table/sys_alias', {
|
|
221
|
+
params: {
|
|
222
|
+
sysparm_query: 'sys_scope=' + spokeData.sys_id,
|
|
223
|
+
sysparm_fields: 'sys_id,name,type,active',
|
|
224
|
+
sysparm_limit: 50
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
var connections = connectionsResponse.data.result || [];
|
|
228
|
+
return (0, error_handler_js_1.createSuccessResult)({
|
|
229
|
+
action: 'status',
|
|
230
|
+
spoke: {
|
|
231
|
+
sys_id: spokeData.sys_id,
|
|
232
|
+
name: spokeData.name && spokeData.name.display_value ? spokeData.name.display_value : spokeData.name,
|
|
233
|
+
version: spokeData.version,
|
|
234
|
+
active: spokeData.active === 'true' || spokeData.active === true,
|
|
235
|
+
description: spokeData.description,
|
|
236
|
+
vendor: spokeData.vendor && spokeData.vendor.display_value ? spokeData.vendor.display_value : spokeData.vendor
|
|
237
|
+
},
|
|
238
|
+
actions: spokeActions.map(function (a) {
|
|
239
|
+
return {
|
|
240
|
+
sys_id: a.sys_id,
|
|
241
|
+
name: a.name,
|
|
242
|
+
description: a.description,
|
|
243
|
+
active: a.active === 'true',
|
|
244
|
+
category: a.category
|
|
245
|
+
};
|
|
246
|
+
}),
|
|
247
|
+
action_count: spokeActions.length,
|
|
248
|
+
connections: connections.map(function (c) {
|
|
249
|
+
return {
|
|
250
|
+
sys_id: c.sys_id,
|
|
251
|
+
name: c.name,
|
|
252
|
+
type: c.type,
|
|
253
|
+
active: c.active === 'true'
|
|
254
|
+
};
|
|
255
|
+
}),
|
|
256
|
+
health: spokeData.active === 'true' ? 'active' : 'inactive'
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
else if (action === 'activate' || action === 'deactivate') {
|
|
260
|
+
if (!spoke_id && !spoke_name) {
|
|
261
|
+
return (0, error_handler_js_1.createErrorResult)('spoke_id or spoke_name is required for ' + action + ' action');
|
|
262
|
+
}
|
|
263
|
+
// Find the spoke first
|
|
264
|
+
var findQuery = spoke_id ? 'sys_id=' + spoke_id : 'nameLIKE' + spoke_name;
|
|
265
|
+
var findResponse = await client.get('/api/now/table/sys_hub_spoke', {
|
|
266
|
+
params: {
|
|
267
|
+
sysparm_query: findQuery,
|
|
268
|
+
sysparm_limit: 1,
|
|
269
|
+
sysparm_fields: 'sys_id,name,active'
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
if (!findResponse.data.result || findResponse.data.result.length === 0) {
|
|
273
|
+
return (0, error_handler_js_1.createErrorResult)('Spoke not found');
|
|
274
|
+
}
|
|
275
|
+
var foundSpoke = findResponse.data.result[0];
|
|
276
|
+
var newActiveState = action === 'activate';
|
|
277
|
+
// Update the spoke
|
|
278
|
+
await client.patch('/api/now/table/sys_hub_spoke/' + foundSpoke.sys_id, {
|
|
279
|
+
active: newActiveState
|
|
280
|
+
});
|
|
281
|
+
return (0, error_handler_js_1.createSuccessResult)({
|
|
282
|
+
action: action,
|
|
283
|
+
spoke: {
|
|
284
|
+
sys_id: foundSpoke.sys_id,
|
|
285
|
+
name: foundSpoke.name,
|
|
286
|
+
previous_state: foundSpoke.active === 'true' ? 'active' : 'inactive',
|
|
287
|
+
new_state: newActiveState ? 'active' : 'inactive'
|
|
288
|
+
},
|
|
289
|
+
message: 'Spoke ' + (newActiveState ? 'activated' : 'deactivated') + ' successfully'
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
else if (action === 'install') {
|
|
293
|
+
// Installation typically requires the plugin to be activated
|
|
294
|
+
// This redirects to the plugin activation process
|
|
295
|
+
return (0, error_handler_js_1.createSuccessResult)({
|
|
296
|
+
action: 'install',
|
|
297
|
+
message: 'Spoke installation is handled through plugin activation',
|
|
298
|
+
instructions: [
|
|
299
|
+
'1. Use snow_list_plugins to find the spoke plugin',
|
|
300
|
+
'2. Use snow_activate_plugin with the plugin sys_id to install',
|
|
301
|
+
'3. After activation, configure connection aliases with snow_create_connection_alias',
|
|
302
|
+
'4. Set up credentials with snow_create_credential_alias'
|
|
303
|
+
],
|
|
304
|
+
common_spokes: [
|
|
305
|
+
{ name: 'Jira Spoke', plugin: 'com.snc.integration.jira' },
|
|
306
|
+
{ name: 'Slack Spoke', plugin: 'com.snc.integration.slack' },
|
|
307
|
+
{ name: 'Microsoft Teams Spoke', plugin: 'com.snc.integration.teams' },
|
|
308
|
+
{ name: 'Azure DevOps Spoke', plugin: 'com.snc.integration.azure_devops' },
|
|
309
|
+
{ name: 'Salesforce Spoke', plugin: 'com.snc.integration.salesforce' },
|
|
310
|
+
{ name: 'ServiceNow Spoke', plugin: 'com.snc.integration.servicenow' }
|
|
311
|
+
]
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
return (0, error_handler_js_1.createErrorResult)('Unknown action: ' + action);
|
|
315
|
+
}
|
|
316
|
+
catch (error) {
|
|
317
|
+
if (error.response?.status === 403) {
|
|
318
|
+
return (0, error_handler_js_1.createErrorResult)('Permission denied (403): Your ServiceNow user lacks permissions to manage spokes. ' +
|
|
319
|
+
'Required roles: "admin" or "flow_designer". Please contact your ServiceNow administrator.');
|
|
320
|
+
}
|
|
321
|
+
return (0, error_handler_js_1.createErrorResult)(error.message);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
exports.version = '1.0.0';
|
|
325
|
+
exports.author = 'Snow-Flow Team';
|
|
326
|
+
//# sourceMappingURL=snow_install_spoke.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snow_install_spoke.js","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAqDH,0BAwSC;AA1VD,kDAA8D;AAC9D,oEAAuF;AAE1E,QAAA,cAAc,GAAsB;IAC/C,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,4EAA4E;IACzF,QAAQ,EAAE,aAAa;IACvB,WAAW,EAAE,gBAAgB;IAC7B,SAAS,EAAE,CAAC,QAAQ,EAAE,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,CAAC;IAC3E,UAAU,EAAE,UAAU;IACt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AC,OAAO,KAAU,EAAE,CAAC;QACpB,IAAI,KAAK,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE,CAAC;YACnC,OAAO,IAAA,oCAAiB,EACtB,oFAAoF;gBACpF,2FAA2F,CAC5F,CAAC;QACJ,CAAC;QACD,OAAO,IAAA,oCAAiB,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC;AAEY,QAAA,OAAO,GAAG,OAAO,CAAC;AAClB,QAAA,MAAM,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* snow_manage_mid_capabilities - Manage MID Server capabilities
|
|
3
|
+
*
|
|
4
|
+
* View, add, remove, and manage MID Server capabilities for
|
|
5
|
+
* Discovery, Orchestration, and Integration purposes.
|
|
6
|
+
*/
|
|
7
|
+
import { MCPToolDefinition, ServiceNowContext, ToolResult } from '../../shared/types.js';
|
|
8
|
+
export declare const toolDefinition: MCPToolDefinition;
|
|
9
|
+
export declare function execute(args: any, context: ServiceNowContext): Promise<ToolResult>;
|
|
10
|
+
export declare const version = "1.0.0";
|
|
11
|
+
export declare const author = "Snow-Flow Team";
|
|
12
|
+
//# sourceMappingURL=snow_manage_mid_capabilities.d.ts.map
|
package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snow_manage_mid_capabilities.d.ts","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIzF,eAAO,MAAM,cAAc,EAAE,iBA6C5B,CAAC;AAEF,wBAAsB,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAoaxF;AAED,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,MAAM,mBAAmB,CAAC"}
|