@onlyflows/servicenow-mcp 2.2.0-dev.4 → 2.2.0-dev.6
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/CHANGELOG.md +45 -0
- package/dist/command-resolution.d.ts +53 -0
- package/dist/command-resolution.d.ts.map +1 -0
- package/dist/command-resolution.js +154 -0
- package/dist/command-resolution.js.map +1 -0
- package/dist/profile-admin.d.ts.map +1 -1
- package/dist/profile-admin.js +3 -0
- package/dist/profile-admin.js.map +1 -1
- package/dist/profile-manager.d.ts +10 -0
- package/dist/profile-manager.d.ts.map +1 -1
- package/dist/profile-manager.js +32 -3
- package/dist/profile-manager.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +53 -0
- package/dist/server.js.map +1 -1
- package/dist/setup.d.ts +7 -0
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +193 -54
- package/dist/setup.js.map +1 -1
- package/dist/tools/atf-contracts.d.ts +221 -3
- package/dist/tools/atf-contracts.d.ts.map +1 -1
- package/dist/tools/atf-contracts.js +6 -3
- package/dist/tools/atf-contracts.js.map +1 -1
- package/dist/tools/atf-renderers.d.ts.map +1 -1
- package/dist/tools/atf-renderers.js +8 -2
- package/dist/tools/atf-renderers.js.map +1 -1
- package/dist/tools/atf-results-module.d.ts.map +1 -1
- package/dist/tools/atf-results-module.js +31 -2
- package/dist/tools/atf-results-module.js.map +1 -1
- package/dist/tools/atf-shared.d.ts +5 -2
- package/dist/tools/atf-shared.d.ts.map +1 -1
- package/dist/tools/atf-shared.js +32 -18
- package/dist/tools/atf-shared.js.map +1 -1
- package/dist/tools/result-envelope.d.ts +234 -19
- package/dist/tools/result-envelope.d.ts.map +1 -1
- package/dist/tools/syslog.d.ts +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/ATF-WORKFLOW.md +34 -4
- package/package.json +2 -1
package/docs/ATF-WORKFLOW.md
CHANGED
|
@@ -81,15 +81,45 @@ For history use `action:"history"`, `suite_sys_id` (or `test_sys_id`) and
|
|
|
81
81
|
optional `limit` (default 10, maximum 100). For comparison use `action:"compare"`
|
|
82
82
|
and `suite_sys_id`; optional `result_id` and `previous_result_id` choose the two
|
|
83
83
|
runs. Otherwise the newest two cached runs are used. Comparison identifies new,
|
|
84
|
-
fixed
|
|
84
|
+
fixed and continuing failures, observed status changes, and duration regressions (default
|
|
85
85
|
threshold 20%, configurable with `regression_percent`). Comparisons only cover
|
|
86
86
|
visible cached test records. History and comparison make no ServiceNow requests.
|
|
87
87
|
|
|
88
88
|
The cache retains compact summaries, up to 1000 tests per run and 500 characters
|
|
89
|
-
of the first failure per test.
|
|
90
|
-
|
|
89
|
+
of the first failure per test. Execution returns up to 200 test summaries and
|
|
90
|
+
10 failure excerpts by default. Use `tests_offset`/`tests_limit` and
|
|
91
|
+
`failures_offset`/`failures_limit` on `sn_atf_results get` to retrieve additional
|
|
92
|
+
pages; the `pagination` object includes totals and next offsets. History shows
|
|
93
|
+
run summaries. Private cache storage,
|
|
91
94
|
retention and memory fallback are described in [profile configuration](PROFILE-CREDENTIALS.md#atf-authoring-and-result-cache).
|
|
92
|
-
Failure text is untrusted instance content.
|
|
95
|
+
Failure text is untrusted instance content. Each failure includes its test-result
|
|
96
|
+
ID and, when available, step-result ID and step ID. Excerpts retain the beginning
|
|
97
|
+
and end of long logs and explicitly indicate truncation. Retrieve complete text:
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{"profile":"pdi","action":"step","step_result_id":"<32-hex step-result ID>","output_field":"summary","output_offset":0,"output_limit":4000}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Repeat with `output_offset` set to `step_detail.next_offset` until absent. Use
|
|
104
|
+
`output_field:"output"` to inspect the other native step-output field. The chunk
|
|
105
|
+
limit is 8000 characters; no complete step logs are added to the result cache.
|
|
106
|
+
Step names use the result description or the referenced step's display label.
|
|
107
|
+
|
|
108
|
+
`status_changed` reports differences between the compared runs. It does not
|
|
109
|
+
claim nondeterminism: code and instance changes can explain those differences.
|
|
110
|
+
The legacy `flaky` field is deprecated and always empty.
|
|
111
|
+
|
|
112
|
+
A profile with `readTables:["*"]` and `targets:[]` already allows these reads.
|
|
113
|
+
Do not add broader grants to resolve an unexplained denial. Check the exact
|
|
114
|
+
error category, active server version/profile, field restrictions, and instance
|
|
115
|
+
ACLs. Raw encoded queries have a separate policy; prefer structured filters.
|
|
116
|
+
For a deliberately restricted profile, diagnostic reads can be granted with:
|
|
117
|
+
|
|
118
|
+
```sh
|
|
119
|
+
servicenow-mcp-setup grant --profile pdi --read sys_atf_test_suite_result,sys_atf_test_result,sys_atf_test_result_step --tools sn_atf_results,sn_get,sn_query
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
This command does not enable execution or change ServiceNow ACLs.
|
|
93
123
|
|
|
94
124
|
## Author typed steps
|
|
95
125
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlyflows/servicenow-mcp",
|
|
3
|
-
"version": "2.2.0-dev.
|
|
3
|
+
"version": "2.2.0-dev.6",
|
|
4
4
|
"description": "stdio ServiceNow MCP server with 23 tools for CRUD, CMDB traversal, ATF testing, and explicit multi-instance profiles.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@eslint/js": "9.39.5",
|
|
70
70
|
"@types/node": "^20.11.0",
|
|
71
|
+
"ajv": "8.18.0",
|
|
71
72
|
"eslint": "9.39.5",
|
|
72
73
|
"globals": "17.8.0",
|
|
73
74
|
"typescript": "^5.3.0",
|