snow-flow 8.39.2 → 8.39.3
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/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
|
@@ -13,6 +13,12 @@ export { toolDefinition as snow_execute_background_script_def, execute as snow_e
|
|
|
13
13
|
export { toolDefinition as snow_execute_script_sync_def, execute as snow_execute_script_sync_exec } from './snow_execute_script_sync.js';
|
|
14
14
|
export { toolDefinition as snow_execute_script_with_output_def, execute as snow_execute_script_with_output_exec } from './snow_execute_script_with_output.js';
|
|
15
15
|
export { toolDefinition as snow_get_logs_def, execute as snow_get_logs_exec } from './snow_get_logs.js';
|
|
16
|
+
export { toolDefinition as snow_get_email_logs_def, execute as snow_get_email_logs_exec } from './snow_get_email_logs.js';
|
|
17
|
+
export { toolDefinition as snow_get_outbound_http_logs_def, execute as snow_get_outbound_http_logs_exec } from './snow_get_outbound_http_logs.js';
|
|
18
|
+
export { toolDefinition as snow_get_inbound_http_logs_def, execute as snow_get_inbound_http_logs_exec } from './snow_get_inbound_http_logs.js';
|
|
19
|
+
export { toolDefinition as snow_get_flow_execution_logs_def, execute as snow_get_flow_execution_logs_exec } from './snow_get_flow_execution_logs.js';
|
|
20
|
+
export { toolDefinition as snow_get_scheduled_job_logs_def, execute as snow_get_scheduled_job_logs_exec } from './snow_get_scheduled_job_logs.js';
|
|
21
|
+
export { toolDefinition as snow_get_slow_queries_def, execute as snow_get_slow_queries_exec } from './snow_get_slow_queries.js';
|
|
16
22
|
export { toolDefinition as snow_get_script_output_def, execute as snow_get_script_output_exec } from './snow_get_script_output.js';
|
|
17
23
|
export { toolDefinition as snow_property_manager_def, execute as snow_property_manager_exec } from './snow_property_manager.js';
|
|
18
24
|
export { toolDefinition as snow_rest_message_test_suite_def, execute as snow_rest_message_test_suite_exec } from './snow_rest_message_test_suite.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,IAAI,iCAAiC,EAAE,OAAO,IAAI,kCAAkC,EAAE,MAAM,oCAAoC,CAAC;AACxJ,OAAO,EAAE,cAAc,IAAI,0BAA0B,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AACnI,OAAO,EAAE,cAAc,IAAI,+BAA+B,EAAE,OAAO,IAAI,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAClJ,OAAO,EAAE,cAAc,IAAI,8BAA8B,EAAE,OAAO,IAAI,+BA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automation Tools - Export all automation tool modules
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.snow_trace_execution_exec = exports.snow_trace_execution_def = exports.snow_test_scheduled_job_exec = exports.snow_test_scheduled_job_def = exports.snow_test_rest_connection_exec = exports.snow_test_rest_connection_def = exports.snow_rest_message_test_suite_exec = exports.snow_rest_message_test_suite_def = exports.snow_property_manager_exec = exports.snow_property_manager_def = exports.snow_get_script_output_exec = exports.snow_get_script_output_def = exports.snow_get_logs_exec = exports.snow_get_logs_def = exports.snow_execute_script_with_output_exec = exports.snow_execute_script_with_output_def = exports.snow_execute_script_sync_exec = exports.snow_execute_script_sync_def = exports.snow_execute_background_script_exec = exports.snow_execute_background_script_def = exports.snow_discover_schedules_exec = exports.snow_discover_schedules_def = exports.snow_discover_events_exec = exports.snow_discover_events_def = exports.snow_discover_automation_jobs_exec = exports.snow_discover_automation_jobs_def = exports.snow_create_workflow_activity_exec = exports.snow_create_workflow_activity_def = exports.snow_create_sla_definition_exec = exports.snow_create_sla_definition_def = exports.snow_create_escalation_rule_exec = exports.snow_create_escalation_rule_def = exports.snow_create_event_rule_exec = exports.snow_create_event_rule_def = exports.snow_confirm_script_execution_exec = exports.snow_confirm_script_execution_def = void 0;
|
|
6
|
+
exports.snow_trace_execution_exec = exports.snow_trace_execution_def = exports.snow_test_scheduled_job_exec = exports.snow_test_scheduled_job_def = exports.snow_test_rest_connection_exec = exports.snow_test_rest_connection_def = exports.snow_rest_message_test_suite_exec = exports.snow_rest_message_test_suite_def = exports.snow_property_manager_exec = exports.snow_property_manager_def = exports.snow_get_script_output_exec = exports.snow_get_script_output_def = exports.snow_get_slow_queries_exec = exports.snow_get_slow_queries_def = exports.snow_get_scheduled_job_logs_exec = exports.snow_get_scheduled_job_logs_def = exports.snow_get_flow_execution_logs_exec = exports.snow_get_flow_execution_logs_def = exports.snow_get_inbound_http_logs_exec = exports.snow_get_inbound_http_logs_def = exports.snow_get_outbound_http_logs_exec = exports.snow_get_outbound_http_logs_def = exports.snow_get_email_logs_exec = exports.snow_get_email_logs_def = exports.snow_get_logs_exec = exports.snow_get_logs_def = exports.snow_execute_script_with_output_exec = exports.snow_execute_script_with_output_def = exports.snow_execute_script_sync_exec = exports.snow_execute_script_sync_def = exports.snow_execute_background_script_exec = exports.snow_execute_background_script_def = exports.snow_discover_schedules_exec = exports.snow_discover_schedules_def = exports.snow_discover_events_exec = exports.snow_discover_events_def = exports.snow_discover_automation_jobs_exec = exports.snow_discover_automation_jobs_def = exports.snow_create_workflow_activity_exec = exports.snow_create_workflow_activity_def = exports.snow_create_sla_definition_exec = exports.snow_create_sla_definition_def = exports.snow_create_escalation_rule_exec = exports.snow_create_escalation_rule_def = exports.snow_create_event_rule_exec = exports.snow_create_event_rule_def = exports.snow_confirm_script_execution_exec = exports.snow_confirm_script_execution_def = void 0;
|
|
7
7
|
var snow_confirm_script_execution_js_1 = require("./snow_confirm_script_execution.js");
|
|
8
8
|
Object.defineProperty(exports, "snow_confirm_script_execution_def", { enumerable: true, get: function () { return snow_confirm_script_execution_js_1.toolDefinition; } });
|
|
9
9
|
Object.defineProperty(exports, "snow_confirm_script_execution_exec", { enumerable: true, get: function () { return snow_confirm_script_execution_js_1.execute; } });
|
|
@@ -40,6 +40,24 @@ Object.defineProperty(exports, "snow_execute_script_with_output_exec", { enumera
|
|
|
40
40
|
var snow_get_logs_js_1 = require("./snow_get_logs.js");
|
|
41
41
|
Object.defineProperty(exports, "snow_get_logs_def", { enumerable: true, get: function () { return snow_get_logs_js_1.toolDefinition; } });
|
|
42
42
|
Object.defineProperty(exports, "snow_get_logs_exec", { enumerable: true, get: function () { return snow_get_logs_js_1.execute; } });
|
|
43
|
+
var snow_get_email_logs_js_1 = require("./snow_get_email_logs.js");
|
|
44
|
+
Object.defineProperty(exports, "snow_get_email_logs_def", { enumerable: true, get: function () { return snow_get_email_logs_js_1.toolDefinition; } });
|
|
45
|
+
Object.defineProperty(exports, "snow_get_email_logs_exec", { enumerable: true, get: function () { return snow_get_email_logs_js_1.execute; } });
|
|
46
|
+
var snow_get_outbound_http_logs_js_1 = require("./snow_get_outbound_http_logs.js");
|
|
47
|
+
Object.defineProperty(exports, "snow_get_outbound_http_logs_def", { enumerable: true, get: function () { return snow_get_outbound_http_logs_js_1.toolDefinition; } });
|
|
48
|
+
Object.defineProperty(exports, "snow_get_outbound_http_logs_exec", { enumerable: true, get: function () { return snow_get_outbound_http_logs_js_1.execute; } });
|
|
49
|
+
var snow_get_inbound_http_logs_js_1 = require("./snow_get_inbound_http_logs.js");
|
|
50
|
+
Object.defineProperty(exports, "snow_get_inbound_http_logs_def", { enumerable: true, get: function () { return snow_get_inbound_http_logs_js_1.toolDefinition; } });
|
|
51
|
+
Object.defineProperty(exports, "snow_get_inbound_http_logs_exec", { enumerable: true, get: function () { return snow_get_inbound_http_logs_js_1.execute; } });
|
|
52
|
+
var snow_get_flow_execution_logs_js_1 = require("./snow_get_flow_execution_logs.js");
|
|
53
|
+
Object.defineProperty(exports, "snow_get_flow_execution_logs_def", { enumerable: true, get: function () { return snow_get_flow_execution_logs_js_1.toolDefinition; } });
|
|
54
|
+
Object.defineProperty(exports, "snow_get_flow_execution_logs_exec", { enumerable: true, get: function () { return snow_get_flow_execution_logs_js_1.execute; } });
|
|
55
|
+
var snow_get_scheduled_job_logs_js_1 = require("./snow_get_scheduled_job_logs.js");
|
|
56
|
+
Object.defineProperty(exports, "snow_get_scheduled_job_logs_def", { enumerable: true, get: function () { return snow_get_scheduled_job_logs_js_1.toolDefinition; } });
|
|
57
|
+
Object.defineProperty(exports, "snow_get_scheduled_job_logs_exec", { enumerable: true, get: function () { return snow_get_scheduled_job_logs_js_1.execute; } });
|
|
58
|
+
var snow_get_slow_queries_js_1 = require("./snow_get_slow_queries.js");
|
|
59
|
+
Object.defineProperty(exports, "snow_get_slow_queries_def", { enumerable: true, get: function () { return snow_get_slow_queries_js_1.toolDefinition; } });
|
|
60
|
+
Object.defineProperty(exports, "snow_get_slow_queries_exec", { enumerable: true, get: function () { return snow_get_slow_queries_js_1.execute; } });
|
|
43
61
|
var snow_get_script_output_js_1 = require("./snow_get_script_output.js");
|
|
44
62
|
Object.defineProperty(exports, "snow_get_script_output_def", { enumerable: true, get: function () { return snow_get_script_output_js_1.toolDefinition; } });
|
|
45
63
|
Object.defineProperty(exports, "snow_get_script_output_exec", { enumerable: true, get: function () { return snow_get_script_output_js_1.execute; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uFAAwJ;AAA/I,qJAAA,cAAc,OAAqC;AAAE,sJAAA,OAAO,OAAsC;AAC3G,yEAAmI;AAA1H,uIAAA,cAAc,OAA8B;AAAE,wIAAA,OAAO,OAA+B;AAC7F,mFAAkJ;AAAzI,iJAAA,cAAc,OAAmC;AAAE,kJAAA,OAAO,OAAoC;AACvG,iFAA+I;AAAtI,+IAAA,cAAc,OAAkC;AAAE,gJAAA,OAAO,OAAmC;AACrG,uFAAwJ;AAA/I,qJAAA,cAAc,OAAqC;AAAE,sJAAA,OAAO,OAAsC;AAC3G,uFAAwJ;AAA/I,qJAAA,cAAc,OAAqC;AAAE,sJAAA,OAAO,OAAsC;AAC3G,qEAA6H;AAApH,mIAAA,cAAc,OAA4B;AAAE,oIAAA,OAAO,OAA6B;AACzF,2EAAsI;AAA7H,yIAAA,cAAc,OAA+B;AAAE,0IAAA,OAAO,OAAgC;AAC/F,yFAA2J;AAAlJ,uJAAA,cAAc,OAAsC;AAAE,wJAAA,OAAO,OAAuC;AAC7G,6EAAyI;AAAhI,2IAAA,cAAc,OAAgC;AAAE,4IAAA,OAAO,OAAiC;AACjG,2FAA8J;AAArJ,yJAAA,cAAc,OAAuC;AAAE,0JAAA,OAAO,OAAwC;AAC/G,uDAAwG;AAA/F,qHAAA,cAAc,OAAqB;AAAE,sHAAA,O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AAO,OAAiC;AACjG,2FAA8J;AAArJ,yJAAA,cAAc,OAAuC;AAAE,0JAAA,OAAO,OAAwC;AAC/G,uDAAwG;AAA/F,qHAAA,cAAc,OAAqB;AAAE,sHAAA,OAAO,OAAsB;AAC3E,mEAA0H;AAAjH,iIAAA,cAAc,OAA2B;AAAE,kIAAA,OAAO,OAA4B;AACvF,mFAAkJ;AAAzI,iJAAA,cAAc,OAAmC;AAAE,kJAAA,OAAO,OAAoC;AACvG,iFAA+I;AAAtI,+IAAA,cAAc,OAAkC;AAAE,gJAAA,OAAO,OAAmC;AACrG,qFAAqJ;AAA5I,mJAAA,cAAc,OAAoC;AAAE,oJAAA,OAAO,OAAqC;AACzG,mFAAkJ;AAAzI,iJAAA,cAAc,OAAmC;AAAE,kJAAA,OAAO,OAAoC;AACvG,uEAAgI;AAAvH,qIAAA,cAAc,OAA6B;AAAE,sIAAA,OAAO,OAA8B;AAC3F,yEAAmI;AAA1H,uIAAA,cAAc,OAA8B;AAAE,wIAAA,OAAO,OAA+B;AAC7F,uEAAgI;AAAvH,qIAAA,cAAc,OAA6B;AAAE,sIAAA,OAAO,OAA8B;AAC3F,qFAAqJ;AAA5I,mJAAA,cAAc,OAAoC;AAAE,oJAAA,OAAO,OAAqC;AACzG,+EAA4I;AAAnI,6IAAA,cAAc,OAAiC;AAAE,8IAAA,OAAO,OAAkC;AACnG,2EAAsI;AAA7H,yIAAA,cAAc,OAA+B;AAAE,0IAAA,OAAO,OAAgC;AAC/F,qEAA6H;AAApH,mIAAA,cAAc,OAA4B;AAAE,oIAAA,OAAO,OAA6B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* snow_get_email_logs - View sent/received email logs
|
|
3
|
+
*
|
|
4
|
+
* Retrieve email records from sys_email table to monitor
|
|
5
|
+
* email notifications, delivery status, and troubleshoot issues.
|
|
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_get_email_logs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snow_get_email_logs.d.ts","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIzF,eAAO,MAAM,cAAc,EAAE,iBAqD5B,CAAC;AAEF,wBAAsB,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CA2GxF;AAyBD,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* snow_get_email_logs - View sent/received email logs
|
|
4
|
+
*
|
|
5
|
+
* Retrieve email records from sys_email table to monitor
|
|
6
|
+
* email notifications, delivery status, and troubleshoot issues.
|
|
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_get_email_logs',
|
|
15
|
+
description: 'Retrieve sent/received email logs from sys_email table for monitoring and debugging',
|
|
16
|
+
// Metadata for tool discovery (not sent to LLM)
|
|
17
|
+
category: 'automation',
|
|
18
|
+
subcategory: 'monitoring',
|
|
19
|
+
use_cases: ['email', 'notifications', 'monitoring', 'debugging'],
|
|
20
|
+
complexity: 'beginner',
|
|
21
|
+
frequency: 'high',
|
|
22
|
+
// Permission enforcement
|
|
23
|
+
// Classification: READ - Get operation - retrieves data
|
|
24
|
+
permission: 'read',
|
|
25
|
+
allowedRoles: ['developer', 'stakeholder', 'admin'],
|
|
26
|
+
inputSchema: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
properties: {
|
|
29
|
+
type: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
enum: ['sent', 'received', 'send-ready', 'failed', 'all'],
|
|
32
|
+
description: 'Email type/status filter',
|
|
33
|
+
default: 'all'
|
|
34
|
+
},
|
|
35
|
+
recipient: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'Filter by recipient email address'
|
|
38
|
+
},
|
|
39
|
+
sender: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'Filter by sender email address'
|
|
42
|
+
},
|
|
43
|
+
subject: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Search in email subject'
|
|
46
|
+
},
|
|
47
|
+
limit: {
|
|
48
|
+
type: 'number',
|
|
49
|
+
description: 'Maximum number of email records to return',
|
|
50
|
+
default: 50,
|
|
51
|
+
minimum: 1,
|
|
52
|
+
maximum: 500
|
|
53
|
+
},
|
|
54
|
+
since: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
description: 'Get emails since this timestamp (ISO 8601 or relative like "1h", "30m", "7d")'
|
|
57
|
+
},
|
|
58
|
+
include_body: {
|
|
59
|
+
type: 'boolean',
|
|
60
|
+
description: 'Include email body in response (can be large)',
|
|
61
|
+
default: false
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
async function execute(args, context) {
|
|
67
|
+
var type = args.type || 'all';
|
|
68
|
+
var recipient = args.recipient;
|
|
69
|
+
var sender = args.sender;
|
|
70
|
+
var subject = args.subject;
|
|
71
|
+
var limit = args.limit || 50;
|
|
72
|
+
var since = args.since;
|
|
73
|
+
var include_body = args.include_body || false;
|
|
74
|
+
try {
|
|
75
|
+
var client = await (0, auth_js_1.getAuthenticatedClient)(context);
|
|
76
|
+
// Build query
|
|
77
|
+
var queryParts = [];
|
|
78
|
+
// Type/status filter
|
|
79
|
+
if (type !== 'all') {
|
|
80
|
+
queryParts.push('type=' + type);
|
|
81
|
+
}
|
|
82
|
+
// Recipient filter
|
|
83
|
+
if (recipient) {
|
|
84
|
+
queryParts.push('recipientsLIKE' + recipient);
|
|
85
|
+
}
|
|
86
|
+
// Sender filter
|
|
87
|
+
if (sender) {
|
|
88
|
+
queryParts.push('fromLIKE' + sender);
|
|
89
|
+
}
|
|
90
|
+
// Subject search
|
|
91
|
+
if (subject) {
|
|
92
|
+
queryParts.push('subjectLIKE' + subject);
|
|
93
|
+
}
|
|
94
|
+
// Time range filter
|
|
95
|
+
if (since) {
|
|
96
|
+
var sinceTimestamp = parseRelativeTime(since);
|
|
97
|
+
queryParts.push('sys_created_on>' + sinceTimestamp);
|
|
98
|
+
}
|
|
99
|
+
var query = queryParts.join('^');
|
|
100
|
+
// Build fields list
|
|
101
|
+
var fields = 'sys_id,sys_created_on,type,subject,recipients,from,cc,bcc,state,error_string,mailbox,content_type';
|
|
102
|
+
if (include_body) {
|
|
103
|
+
fields += ',body,body_text';
|
|
104
|
+
}
|
|
105
|
+
// Get emails from sys_email table
|
|
106
|
+
var response = await client.get('/api/now/table/sys_email', {
|
|
107
|
+
params: {
|
|
108
|
+
sysparm_query: query + '^ORDERBYDESCsys_created_on',
|
|
109
|
+
sysparm_limit: limit,
|
|
110
|
+
sysparm_fields: fields
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
var emails = response.data.result.map(function (email) {
|
|
114
|
+
var record = {
|
|
115
|
+
sys_id: email.sys_id,
|
|
116
|
+
timestamp: email.sys_created_on,
|
|
117
|
+
type: email.type,
|
|
118
|
+
state: email.state,
|
|
119
|
+
subject: email.subject,
|
|
120
|
+
from: email.from,
|
|
121
|
+
recipients: email.recipients,
|
|
122
|
+
cc: email.cc || null,
|
|
123
|
+
bcc: email.bcc || null,
|
|
124
|
+
mailbox: email.mailbox,
|
|
125
|
+
content_type: email.content_type,
|
|
126
|
+
error: email.error_string || null
|
|
127
|
+
};
|
|
128
|
+
if (include_body) {
|
|
129
|
+
record.body = email.body || email.body_text;
|
|
130
|
+
}
|
|
131
|
+
return record;
|
|
132
|
+
});
|
|
133
|
+
// Categorize by type/state
|
|
134
|
+
var byType = {
|
|
135
|
+
sent: 0,
|
|
136
|
+
received: 0,
|
|
137
|
+
'send-ready': 0,
|
|
138
|
+
failed: 0
|
|
139
|
+
};
|
|
140
|
+
emails.forEach(function (e) {
|
|
141
|
+
if (e.state === 'error' || e.error) {
|
|
142
|
+
byType.failed++;
|
|
143
|
+
}
|
|
144
|
+
else if (byType[e.type] !== undefined) {
|
|
145
|
+
byType[e.type]++;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
return (0, error_handler_js_1.createSuccessResult)({
|
|
149
|
+
emails: emails,
|
|
150
|
+
count: emails.length,
|
|
151
|
+
by_type: byType,
|
|
152
|
+
filters: { type: type, recipient: recipient, sender: sender, subject: subject, since: since }
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
catch (error) {
|
|
156
|
+
return (0, error_handler_js_1.createErrorResult)(error.message);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function parseRelativeTime(relative) {
|
|
160
|
+
var now = new Date();
|
|
161
|
+
var match = relative.match(/^(\d+)([mhd])$/);
|
|
162
|
+
if (!match) {
|
|
163
|
+
// Assume it's an absolute timestamp
|
|
164
|
+
return relative;
|
|
165
|
+
}
|
|
166
|
+
var value = parseInt(match[1]);
|
|
167
|
+
var unit = match[2];
|
|
168
|
+
var milliseconds = 0;
|
|
169
|
+
switch (unit) {
|
|
170
|
+
case 'm':
|
|
171
|
+
milliseconds = value * 60 * 1000;
|
|
172
|
+
break;
|
|
173
|
+
case 'h':
|
|
174
|
+
milliseconds = value * 60 * 60 * 1000;
|
|
175
|
+
break;
|
|
176
|
+
case 'd':
|
|
177
|
+
milliseconds = value * 24 * 60 * 60 * 1000;
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
var sinceDate = new Date(now.getTime() - milliseconds);
|
|
181
|
+
return sinceDate.toISOString();
|
|
182
|
+
}
|
|
183
|
+
exports.version = '1.0.0';
|
|
184
|
+
exports.author = 'Snow-Flow Team';
|
|
185
|
+
//# sourceMappingURL=snow_get_email_logs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snow_get_email_logs.js","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA6DH,0BA2GC;AArKD,kDAA8D;AAC9D,oEAAuF;AAE1E,QAAA,cAAc,GAAsB;IAC/C,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qFAAqF;IAClG,gDAAgD;IAChD,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,YAAY;IACzB,SAAS,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,WAAW,CAAC;IAChE,UAAU,EAAE,UAAU;IACtB,SAAS,EAAE,MAAM;IAEjB,yBAAyB;IACzB,wDAAwD;IACxD,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,OAAO,CAAC;IACnD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,CAAC;gBACzD,WAAW,EAAE,0BAA0B;gBACvC,OAAO,EAAE,KAAK;aACf;YACD,SAAS,EAAE;gBACT,IAAI,E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
5
|
+
* debug failures, and analyze performance.
|
|
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_get_flow_execution_logs.d.ts.map
|
package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snow_get_flow_execution_logs.d.ts","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIzF,eAAO,MAAM,cAAc,EAAE,iBAgE5B,CAAC;AAEF,wBAAsB,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAmMxF;AAyBD,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* snow_get_flow_execution_logs - View Flow Designer execution history
|
|
4
|
+
*
|
|
5
|
+
* Retrieve Flow Designer execution logs to monitor flow runs,
|
|
6
|
+
* debug failures, and analyze performance.
|
|
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_get_flow_execution_logs',
|
|
15
|
+
description: 'Retrieve Flow Designer execution logs for monitoring flow runs, debugging failures, and analyzing performance',
|
|
16
|
+
// Metadata for tool discovery (not sent to LLM)
|
|
17
|
+
category: 'automation',
|
|
18
|
+
subcategory: 'monitoring',
|
|
19
|
+
use_cases: ['flow-designer', 'automation', 'monitoring', 'debugging'],
|
|
20
|
+
complexity: 'beginner',
|
|
21
|
+
frequency: 'high',
|
|
22
|
+
// Permission enforcement
|
|
23
|
+
// Classification: READ - Get operation - retrieves data
|
|
24
|
+
permission: 'read',
|
|
25
|
+
allowedRoles: ['developer', 'stakeholder', 'admin'],
|
|
26
|
+
inputSchema: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
properties: {
|
|
29
|
+
status: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
enum: ['complete', 'error', 'cancelled', 'in_progress', 'waiting', 'all'],
|
|
32
|
+
description: 'Filter by execution status',
|
|
33
|
+
default: 'all'
|
|
34
|
+
},
|
|
35
|
+
flow_name: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'Filter by flow name (partial match)'
|
|
38
|
+
},
|
|
39
|
+
source_table: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'Filter by source table that triggered the flow (e.g., incident, change_request)'
|
|
42
|
+
},
|
|
43
|
+
source_record: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Filter by specific source record sys_id'
|
|
46
|
+
},
|
|
47
|
+
trigger_type: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
enum: ['record', 'scheduled', 'application', 'inbound_email', 'rest', 'all'],
|
|
50
|
+
description: 'Filter by trigger type',
|
|
51
|
+
default: 'all'
|
|
52
|
+
},
|
|
53
|
+
limit: {
|
|
54
|
+
type: 'number',
|
|
55
|
+
description: 'Maximum number of execution records to return',
|
|
56
|
+
default: 50,
|
|
57
|
+
minimum: 1,
|
|
58
|
+
maximum: 500
|
|
59
|
+
},
|
|
60
|
+
since: {
|
|
61
|
+
type: 'string',
|
|
62
|
+
description: 'Get executions since this timestamp (ISO 8601 or relative like "1h", "30m", "7d")'
|
|
63
|
+
},
|
|
64
|
+
errors_only: {
|
|
65
|
+
type: 'boolean',
|
|
66
|
+
description: 'Only show failed executions with errors',
|
|
67
|
+
default: false
|
|
68
|
+
},
|
|
69
|
+
include_logs: {
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
description: 'Include detailed execution logs (can be verbose)',
|
|
72
|
+
default: false
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
async function execute(args, context) {
|
|
78
|
+
var status = args.status || 'all';
|
|
79
|
+
var flow_name = args.flow_name;
|
|
80
|
+
var source_table = args.source_table;
|
|
81
|
+
var source_record = args.source_record;
|
|
82
|
+
var trigger_type = args.trigger_type || 'all';
|
|
83
|
+
var limit = args.limit || 50;
|
|
84
|
+
var since = args.since;
|
|
85
|
+
var errors_only = args.errors_only || false;
|
|
86
|
+
var include_logs = args.include_logs || false;
|
|
87
|
+
try {
|
|
88
|
+
var client = await (0, auth_js_1.getAuthenticatedClient)(context);
|
|
89
|
+
// Build query for sys_flow_context
|
|
90
|
+
var queryParts = [];
|
|
91
|
+
// Status filter
|
|
92
|
+
if (status !== 'all') {
|
|
93
|
+
queryParts.push('state=' + status);
|
|
94
|
+
}
|
|
95
|
+
// Errors only filter
|
|
96
|
+
if (errors_only) {
|
|
97
|
+
queryParts.push('state=error');
|
|
98
|
+
}
|
|
99
|
+
// Source table filter
|
|
100
|
+
if (source_table) {
|
|
101
|
+
queryParts.push('source_table=' + source_table);
|
|
102
|
+
}
|
|
103
|
+
// Source record filter
|
|
104
|
+
if (source_record) {
|
|
105
|
+
queryParts.push('source_record=' + source_record);
|
|
106
|
+
}
|
|
107
|
+
// Trigger type filter
|
|
108
|
+
if (trigger_type !== 'all') {
|
|
109
|
+
queryParts.push('trigger_type=' + trigger_type);
|
|
110
|
+
}
|
|
111
|
+
// Time range filter
|
|
112
|
+
if (since) {
|
|
113
|
+
var sinceTimestamp = parseRelativeTime(since);
|
|
114
|
+
queryParts.push('started>' + sinceTimestamp);
|
|
115
|
+
}
|
|
116
|
+
var query = queryParts.join('^');
|
|
117
|
+
// Get flow executions from sys_flow_context
|
|
118
|
+
var response = await client.get('/api/now/table/sys_flow_context', {
|
|
119
|
+
params: {
|
|
120
|
+
sysparm_query: query + '^ORDERBYDESCstarted',
|
|
121
|
+
sysparm_limit: limit,
|
|
122
|
+
sysparm_fields: 'sys_id,flow,state,started,ended,error_message,trigger_type,source_table,source_record,run_count,sys_created_by',
|
|
123
|
+
sysparm_display_value: 'all'
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
// Filter by flow name if specified (need to do client-side since it's a reference field)
|
|
127
|
+
var executions = response.data.result;
|
|
128
|
+
if (flow_name) {
|
|
129
|
+
executions = executions.filter(function (exec) {
|
|
130
|
+
var flowDisplayValue = exec.flow && exec.flow.display_value ? exec.flow.display_value : '';
|
|
131
|
+
return flowDisplayValue.toLowerCase().indexOf(flow_name.toLowerCase()) !== -1;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
// Map to clean format
|
|
135
|
+
var logs = executions.map(function (exec) {
|
|
136
|
+
var startTime = exec.started && exec.started.display_value ? new Date(exec.started.display_value) : null;
|
|
137
|
+
var endTime = exec.ended && exec.ended.display_value ? new Date(exec.ended.display_value) : null;
|
|
138
|
+
var duration = null;
|
|
139
|
+
if (startTime && endTime) {
|
|
140
|
+
duration = Math.round((endTime.getTime() - startTime.getTime()) / 1000);
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
sys_id: exec.sys_id,
|
|
144
|
+
flow_name: exec.flow && exec.flow.display_value ? exec.flow.display_value : 'Unknown',
|
|
145
|
+
flow_sys_id: exec.flow && exec.flow.value ? exec.flow.value : null,
|
|
146
|
+
state: exec.state && exec.state.display_value ? exec.state.display_value : exec.state,
|
|
147
|
+
started: exec.started && exec.started.display_value ? exec.started.display_value : null,
|
|
148
|
+
ended: exec.ended && exec.ended.display_value ? exec.ended.display_value : null,
|
|
149
|
+
duration_seconds: duration,
|
|
150
|
+
trigger_type: exec.trigger_type && exec.trigger_type.display_value ? exec.trigger_type.display_value : exec.trigger_type,
|
|
151
|
+
source_table: exec.source_table,
|
|
152
|
+
source_record: exec.source_record && exec.source_record.value ? exec.source_record.value : exec.source_record,
|
|
153
|
+
run_count: exec.run_count,
|
|
154
|
+
created_by: exec.sys_created_by,
|
|
155
|
+
error_message: exec.error_message || null
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
// Optionally fetch detailed logs for each execution
|
|
159
|
+
if (include_logs && logs.length > 0 && logs.length <= 10) {
|
|
160
|
+
for (var i = 0; i < logs.length; i++) {
|
|
161
|
+
var logResponse = await client.get('/api/now/table/sys_flow_log', {
|
|
162
|
+
params: {
|
|
163
|
+
sysparm_query: 'context=' + logs[i].sys_id + '^ORDERBYsys_created_on',
|
|
164
|
+
sysparm_limit: 50,
|
|
165
|
+
sysparm_fields: 'sys_created_on,level,message,step'
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
logs[i].execution_logs = logResponse.data.result.map(function (log) {
|
|
169
|
+
return {
|
|
170
|
+
timestamp: log.sys_created_on,
|
|
171
|
+
level: log.level,
|
|
172
|
+
message: log.message,
|
|
173
|
+
step: log.step
|
|
174
|
+
};
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
// Calculate statistics
|
|
179
|
+
var stats = {
|
|
180
|
+
total: logs.length,
|
|
181
|
+
complete: 0,
|
|
182
|
+
error: 0,
|
|
183
|
+
cancelled: 0,
|
|
184
|
+
in_progress: 0,
|
|
185
|
+
waiting: 0,
|
|
186
|
+
avg_duration_seconds: 0
|
|
187
|
+
};
|
|
188
|
+
var totalDuration = 0;
|
|
189
|
+
var durationCount = 0;
|
|
190
|
+
logs.forEach(function (log) {
|
|
191
|
+
var state = (log.state || '').toLowerCase();
|
|
192
|
+
if (state === 'complete')
|
|
193
|
+
stats.complete++;
|
|
194
|
+
else if (state === 'error')
|
|
195
|
+
stats.error++;
|
|
196
|
+
else if (state === 'cancelled')
|
|
197
|
+
stats.cancelled++;
|
|
198
|
+
else if (state === 'in_progress' || state === 'in progress')
|
|
199
|
+
stats.in_progress++;
|
|
200
|
+
else if (state === 'waiting')
|
|
201
|
+
stats.waiting++;
|
|
202
|
+
if (log.duration_seconds !== null) {
|
|
203
|
+
totalDuration += log.duration_seconds;
|
|
204
|
+
durationCount++;
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
if (durationCount > 0) {
|
|
208
|
+
stats.avg_duration_seconds = Math.round(totalDuration / durationCount);
|
|
209
|
+
}
|
|
210
|
+
// Group by flow name
|
|
211
|
+
var byFlow = {};
|
|
212
|
+
logs.forEach(function (log) {
|
|
213
|
+
var flowName = log.flow_name || 'Unknown';
|
|
214
|
+
if (!byFlow[flowName]) {
|
|
215
|
+
byFlow[flowName] = { total: 0, errors: 0 };
|
|
216
|
+
}
|
|
217
|
+
byFlow[flowName].total++;
|
|
218
|
+
if ((log.state || '').toLowerCase() === 'error') {
|
|
219
|
+
byFlow[flowName].errors++;
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
// Get error summary
|
|
223
|
+
var errorSummary = [];
|
|
224
|
+
logs.forEach(function (log) {
|
|
225
|
+
if (log.error_message) {
|
|
226
|
+
errorSummary.push({
|
|
227
|
+
flow_name: log.flow_name,
|
|
228
|
+
error: log.error_message,
|
|
229
|
+
timestamp: log.started,
|
|
230
|
+
sys_id: log.sys_id
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
return (0, error_handler_js_1.createSuccessResult)({
|
|
235
|
+
executions: logs,
|
|
236
|
+
count: logs.length,
|
|
237
|
+
statistics: stats,
|
|
238
|
+
by_flow: byFlow,
|
|
239
|
+
recent_errors: errorSummary.slice(0, 10),
|
|
240
|
+
filters: {
|
|
241
|
+
status: status,
|
|
242
|
+
flow_name: flow_name,
|
|
243
|
+
source_table: source_table,
|
|
244
|
+
trigger_type: trigger_type,
|
|
245
|
+
since: since,
|
|
246
|
+
errors_only: errors_only
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
catch (error) {
|
|
251
|
+
return (0, error_handler_js_1.createErrorResult)(error.message);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
function parseRelativeTime(relative) {
|
|
255
|
+
var now = new Date();
|
|
256
|
+
var match = relative.match(/^(\d+)([mhd])$/);
|
|
257
|
+
if (!match) {
|
|
258
|
+
// Assume it's an absolute timestamp
|
|
259
|
+
return relative;
|
|
260
|
+
}
|
|
261
|
+
var value = parseInt(match[1]);
|
|
262
|
+
var unit = match[2];
|
|
263
|
+
var milliseconds = 0;
|
|
264
|
+
switch (unit) {
|
|
265
|
+
case 'm':
|
|
266
|
+
milliseconds = value * 60 * 1000;
|
|
267
|
+
break;
|
|
268
|
+
case 'h':
|
|
269
|
+
milliseconds = value * 60 * 60 * 1000;
|
|
270
|
+
break;
|
|
271
|
+
case 'd':
|
|
272
|
+
milliseconds = value * 24 * 60 * 60 * 1000;
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
var sinceDate = new Date(now.getTime() - milliseconds);
|
|
276
|
+
return sinceDate.toISOString();
|
|
277
|
+
}
|
|
278
|
+
exports.version = '1.0.0';
|
|
279
|
+
exports.author = 'Snow-Flow Team';
|
|
280
|
+
//# sourceMappingURL=snow_get_flow_execution_logs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snow_get_flow_execution_logs.js","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAwEH,0BAmMC;AAxQD,kDAA8D;AAC9D,oEAAuF;AAE1E,QAAA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AAG,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,YAAY,CAAC,CAAC;IACvD,OAAO,SAAS,CAAC,WAAW,EAAE,CAAC;AACjC,CAAC;AAEY,QAAA,OAAO,GAAG,OAAO,CAAC;AAClB,QAAA,MAAM,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* snow_get_inbound_http_logs - View incoming HTTP request logs
|
|
3
|
+
*
|
|
4
|
+
* Retrieve inbound REST API transaction logs to monitor
|
|
5
|
+
* API usage, performance, and troubleshoot incoming requests.
|
|
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_get_inbound_http_logs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snow_get_inbound_http_logs.d.ts","sourceRoot":"","sources":["../../../../../src/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIzF,eAAO,MAAM,cAAc,EAAE,iBA0D5B,CAAC;AAEF,wBAAsB,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAuJxF;AAyBD,eAAO,MAAM,OAAO,UAAU,CAAC;AAC/B,eAAO,MAAM,MAAM,mBAAmB,CAAC"}
|