@onlyflows/servicenow-mcp 2.3.0 → 2.4.0-rc.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.
Files changed (131) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +206 -22
  3. package/dist/atf-result-cache.d.ts +2 -2
  4. package/dist/call-metrics.d.ts +11 -1
  5. package/dist/call-metrics.d.ts.map +1 -1
  6. package/dist/call-metrics.js +2 -0
  7. package/dist/call-metrics.js.map +1 -1
  8. package/dist/client.d.ts +10 -0
  9. package/dist/client.d.ts.map +1 -1
  10. package/dist/client.js +31 -3
  11. package/dist/client.js.map +1 -1
  12. package/dist/execution-context.d.ts +3 -3
  13. package/dist/execution-context.d.ts.map +1 -1
  14. package/dist/execution-context.js +7 -2
  15. package/dist/execution-context.js.map +1 -1
  16. package/dist/field-policy.d.ts +8 -0
  17. package/dist/field-policy.d.ts.map +1 -1
  18. package/dist/field-policy.js +239 -46
  19. package/dist/field-policy.js.map +1 -1
  20. package/dist/hidden-values.d.ts +368 -21
  21. package/dist/hidden-values.d.ts.map +1 -1
  22. package/dist/hidden-values.js +1050 -101
  23. package/dist/hidden-values.js.map +1 -1
  24. package/dist/http-observability.js +3 -1
  25. package/dist/http-observability.js.map +1 -1
  26. package/dist/inert-text.d.ts +27 -0
  27. package/dist/inert-text.d.ts.map +1 -0
  28. package/dist/inert-text.js +57 -0
  29. package/dist/inert-text.js.map +1 -0
  30. package/dist/policy-card.d.ts +1 -1
  31. package/dist/policy-card.d.ts.map +1 -1
  32. package/dist/policy-card.js +3 -1
  33. package/dist/policy-card.js.map +1 -1
  34. package/dist/setup-prompts.js +1 -0
  35. package/dist/setup-prompts.js.map +1 -1
  36. package/dist/setup.js +6 -0
  37. package/dist/setup.js.map +1 -1
  38. package/dist/tool-error.d.ts +39 -3
  39. package/dist/tool-error.d.ts.map +1 -1
  40. package/dist/tool-error.js +101 -2
  41. package/dist/tool-error.js.map +1 -1
  42. package/dist/tool-table-access.d.ts.map +1 -1
  43. package/dist/tool-table-access.js +5 -0
  44. package/dist/tool-table-access.js.map +1 -1
  45. package/dist/tools/aggregate.d.ts +8 -0
  46. package/dist/tools/aggregate.d.ts.map +1 -1
  47. package/dist/tools/aggregate.js +70 -11
  48. package/dist/tools/aggregate.js.map +1 -1
  49. package/dist/tools/atf-contracts.d.ts +9 -9
  50. package/dist/tools/catalog.d.ts +2 -2
  51. package/dist/tools/catalog.d.ts.map +1 -1
  52. package/dist/tools/catalog.js +9 -0
  53. package/dist/tools/catalog.js.map +1 -1
  54. package/dist/tools/envelope-text-fit.d.ts +20 -0
  55. package/dist/tools/envelope-text-fit.d.ts.map +1 -0
  56. package/dist/tools/envelope-text-fit.js +33 -0
  57. package/dist/tools/envelope-text-fit.js.map +1 -0
  58. package/dist/tools/flow-view-mermaid.d.ts.map +1 -1
  59. package/dist/tools/flow-view-mermaid.js +6 -13
  60. package/dist/tools/flow-view-mermaid.js.map +1 -1
  61. package/dist/tools/flow-view-module.js +1 -1
  62. package/dist/tools/get-module.js +1 -1
  63. package/dist/tools/history-contracts.d.ts +198 -0
  64. package/dist/tools/history-contracts.d.ts.map +1 -0
  65. package/dist/tools/history-contracts.js +317 -0
  66. package/dist/tools/history-contracts.js.map +1 -0
  67. package/dist/tools/history-module.d.ts +158 -0
  68. package/dist/tools/history-module.d.ts.map +1 -0
  69. package/dist/tools/history-module.js +937 -0
  70. package/dist/tools/history-module.js.map +1 -0
  71. package/dist/tools/history-renderers.d.ts +32 -0
  72. package/dist/tools/history-renderers.d.ts.map +1 -0
  73. package/dist/tools/history-renderers.js +154 -0
  74. package/dist/tools/history-renderers.js.map +1 -0
  75. package/dist/tools/index.d.ts +3 -3
  76. package/dist/tools/index.d.ts.map +1 -1
  77. package/dist/tools/index.js +31 -14
  78. package/dist/tools/index.js.map +1 -1
  79. package/dist/tools/platform-view-contracts.d.ts +4 -4
  80. package/dist/tools/platform-view-contracts.d.ts.map +1 -1
  81. package/dist/tools/platform-view-contracts.js +3 -0
  82. package/dist/tools/platform-view-contracts.js.map +1 -1
  83. package/dist/tools/platform-view-evaluate.d.ts +7 -2
  84. package/dist/tools/platform-view-evaluate.d.ts.map +1 -1
  85. package/dist/tools/platform-view-evaluate.js +44 -130
  86. package/dist/tools/platform-view-evaluate.js.map +1 -1
  87. package/dist/tools/platform-view-module.d.ts +12 -3
  88. package/dist/tools/platform-view-module.d.ts.map +1 -1
  89. package/dist/tools/platform-view-module.js +61 -16
  90. package/dist/tools/platform-view-module.js.map +1 -1
  91. package/dist/tools/platform-view-payload.d.ts +101 -0
  92. package/dist/tools/platform-view-payload.d.ts.map +1 -0
  93. package/dist/tools/platform-view-payload.js +302 -0
  94. package/dist/tools/platform-view-payload.js.map +1 -0
  95. package/dist/tools/platform-view-update-sets.d.ts +129 -0
  96. package/dist/tools/platform-view-update-sets.d.ts.map +1 -0
  97. package/dist/tools/platform-view-update-sets.js +1060 -0
  98. package/dist/tools/platform-view-update-sets.js.map +1 -0
  99. package/dist/tools/query-module.js +1 -1
  100. package/dist/tools/relationships-map.d.ts +59 -0
  101. package/dist/tools/relationships-map.d.ts.map +1 -0
  102. package/dist/tools/relationships-map.js +162 -0
  103. package/dist/tools/relationships-map.js.map +1 -0
  104. package/dist/tools/relationships-renderer.d.ts +22 -0
  105. package/dist/tools/relationships-renderer.d.ts.map +1 -0
  106. package/dist/tools/relationships-renderer.js +90 -0
  107. package/dist/tools/relationships-renderer.js.map +1 -0
  108. package/dist/tools/relationships.d.ts +37 -2
  109. package/dist/tools/relationships.d.ts.map +1 -1
  110. package/dist/tools/relationships.js +602 -183
  111. package/dist/tools/relationships.js.map +1 -1
  112. package/dist/tools/result-envelope.d.ts +314 -15
  113. package/dist/tools/result-envelope.d.ts.map +1 -1
  114. package/dist/tools/result-envelope.js +120 -19
  115. package/dist/tools/result-envelope.js.map +1 -1
  116. package/dist/tools/syslog.d.ts +1 -1
  117. package/dist/tools/table-hierarchy.d.ts +17 -0
  118. package/dist/tools/table-hierarchy.d.ts.map +1 -1
  119. package/dist/tools/table-hierarchy.js +41 -0
  120. package/dist/tools/table-hierarchy.js.map +1 -1
  121. package/dist/version.d.ts +1 -1
  122. package/dist/version.d.ts.map +1 -1
  123. package/dist/version.js +1 -1
  124. package/dist/version.js.map +1 -1
  125. package/docs/CLIENT-SETUP.md +2 -2
  126. package/docs/CROSS-CLIENT-RELEASE-MATRIX.md +2 -2
  127. package/docs/PRODUCTION-SECURITY.md +145 -2
  128. package/docs/RELEASE-VALIDATION.md +2 -2
  129. package/docs/TESTING-OAUTH.md +1 -1
  130. package/package.json +2 -2
  131. package/server.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"table-hierarchy.js","sourceRoot":"","sources":["../../src/tools/table-hierarchy.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;AAqBH,sDAqCC;AAvDD,4DAA2D;AAC3D,0CAA+C;AAE/C,MAAM,UAAU,GAAG,yBAAyB,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACI,KAAK,UAAU,qBAAqB,CACzC,MAA4B,EAC5B,KAAa,EACb,QAAgB,EAChB,YAAqB;IAErB,MAAM,IAAI,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACvC,IAAI,IAAI,KAAK,SAAS;QAAE,MAAM,IAAI,SAAS,CAAC,6CAA6C,CAAC,CAAC;IAC3F,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAC/B,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,CAAC,CAAC,EAAE,EACrC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,MAAM,CACxD,CAAC;IACF,MAAM,SAAS,GAAG,CAAC,IAAI,CAAC,CAAC;IACzB,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,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AAS,kBAAkB,CAAC,SAAkB;IAC5C,IAAI,OAAO,SAAS,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IACpD,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC/C,OAAO,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AACxD,CAAC"}
package/dist/version.d.ts CHANGED
@@ -6,5 +6,5 @@
6
6
  *
7
7
  * @module version
8
8
  */
9
- export declare const VERSION = "2.3.0";
9
+ export declare const VERSION = "2.4.0-rc.1";
10
10
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,OAAO,eAAe,CAAC"}
package/dist/version.js CHANGED
@@ -9,5 +9,5 @@
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.VERSION = void 0;
12
- exports.VERSION = "2.3.0";
12
+ exports.VERSION = "2.4.0-rc.1";
13
13
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEU,QAAA,OAAO,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEU,QAAA,OAAO,GAAG,YAAY,CAAC"}
@@ -488,7 +488,7 @@ runtime and immutable image. See `CROSS-CLIENT-RELEASE-MATRIX.md`.
488
488
 
489
489
  ## 5. Profile selection, results, and audit evidence
490
490
 
491
- All 24 tools require a non-empty `profile`. Missing, empty, unknown, or invalid
491
+ All 26 tools require a non-empty `profile`. Missing, empty, unknown, or invalid
492
492
  names fail before credentials or a ServiceNow client. There is no default,
493
493
  active, current, selected-session, or switch-profile operation. To work across
494
494
  instances, make separate calls and include the intended name each time:
@@ -740,7 +740,7 @@ have been separately authorized. The current official OpenAI flow is:
740
740
  create a developer-mode app, choose **Tunnel** under **Connection**, and
741
741
  select the associated tunnel. Do not enter a public MCP URL or a second
742
742
  Authorization value in the app.
743
- 4. Scan tools and compare the 24 names, schemas, and annotations with the
743
+ 4. Scan tools and compare the 26 names, schemas, and annotations with the
744
744
  frozen release manifest. Keep the app private and draft-only.
745
745
  5. On every use, name the profile in the request. For example, instruct the
746
746
  app to invoke `sn_query` with these exact non-secret arguments:
@@ -3,7 +3,7 @@
3
3
  This is the release contract for the HTTP MCP surface. A release must expose
4
4
  one immutable server artifact at `/mcp` and pass the same contract through both
5
5
  the official Model Context Protocol SDK client and an independent Fetch
6
- JSON-RPC client. The required production catalog contains exactly 24 tools.
6
+ JSON-RPC client. The required production catalog contains exactly 26 tools.
7
7
  User-facing configuration and examples for both clients are in
8
8
  `docs/CLIENT-SETUP.md`.
9
9
 
@@ -18,7 +18,7 @@ transport.
18
18
  | Contract | Required evidence | Blocking evidence |
19
19
  | --- | --- | --- |
20
20
  | One artifact and endpoint | Both clients initialize, list, and invoke the same runtime at `/mcp`; the container check repeats discovery against one image ID | `test/snsdk-55-release-matrix.test.ts`, `scripts/container-validate.mjs` |
21
- | Exact discovery parity | Both clients return the same sorted 24 tool names, input schemas, output schemas, and annotations; every input schema requires non-empty `profile` | `test/snsdk-55-release-matrix.test.ts`, `test/http-cross-client.test.ts`, `scripts/container-validate.mjs` |
21
+ | Exact discovery parity | Both clients return the same sorted 26 tool names, input schemas, output schemas, and annotations; every input schema requires non-empty `profile` | `test/snsdk-55-release-matrix.test.ts`, `test/http-cross-client.test.ts`, `scripts/container-validate.mjs` |
22
22
  | Profile boundary | Missing and unknown profiles fail before configuration or client construction; `sn_profile` succeeds without ServiceNow access or secret disclosure | `test/snsdk-55-release-matrix.test.ts`, `test/http-cross-client.test.ts`, `scripts/container-validate.mjs` |
23
23
  | Selected-instance isolation | Crossed read/write calls from both clients bind only to the selected profile's fake ServiceNow adapter | `test/snsdk-55-release-matrix.test.ts`, `test/execution-context.test.ts` |
24
24
  | Representative read and controlled write | Each client executes `sn_query` and the dedicated append-only incident journal tool against local fakes | `test/snsdk-55-release-matrix.test.ts`, `test/http-cross-client.test.ts` |
@@ -484,8 +484,17 @@ type, and `value` is never a filter, order or group field there.
484
484
  come from one `sys_dictionary` read per credential, kept for an hour (or the
485
485
  profile's metadata-cache TTL, if shorter), and concurrent calls share one
486
486
  read; no table grant is needed. While
487
- ServiceNow refuses or fails that read, every field-policy tool refuses with a
488
- message naming this access.
487
+ ServiceNow refuses or fails that read, every field-policy tool refuses, and
488
+ the refusal names the cause: the instance refused the read (with its HTTP
489
+ status) or returned no rows, the read timed out or returned a server error
490
+ (with its status), it may be cut short, or it failed. A read that timed out
491
+ or returned a server error the client does not already retry (such as 500) is
492
+ tried once more after a short pause (the client itself tries a 502, 503, 504
493
+ or network failure three times), and such a failure is not remembered; a refusal is remembered for 30
494
+ seconds, with its cause. A table that doesn't exist is named as such. A table
495
+ whose parent tables can't all be read from `sys_db_object` (or that is more
496
+ than 12 levels deep) is treated the same way, and the refusal says which. "Access denied by policy" is
497
+ kept for a refusal this server's own policy makes.
489
498
  - **`"fieldTypes": { "dictionary": "not_required" }`** on a profile (or
490
499
  `SN_FIELD_TYPES_DICTIONARY=not_required` for the environment profile) lets
491
500
  those calls run with name-only hiding instead. The server warns at startup
@@ -495,6 +504,53 @@ type, and `value` is never a filter, order or group field there.
495
504
  dictionary type, is not recognised by type. Where a granted table holds such
496
505
  values, narrow the field with field policy.
497
506
 
507
+ ## CMDB relationships
508
+
509
+ `sn_relationships` reads `cmdb_rel_ci` and `cmdb_ci`. Relationship rows are not
510
+ domain separated, and the display values of a row's `parent` and `child`, or a
511
+ dot-walked `parent.name` or `parent.sys_class_name`, are not guaranteed to be
512
+ filtered by the access rules or the domain of the CI they name. So the tool
513
+ shows nothing about a CI from a relationship row:
514
+
515
+ - Each level's newly found CIs are read from `cmdb_ci`, in batches of up to 100
516
+ sys_ids. The instance applies the profile user's ACLs and domain visibility
517
+ to that read, and the profile's field policy for `cmdb_ci` is applied to
518
+ every field shown (`name`, `sys_class_name`), through the same projection,
519
+ redaction and hidden-value checks as `sn_query`. A field the profile cannot
520
+ read is left out.
521
+ - A CI that read does not return is unreadable to this profile. Its
522
+ relationships are not shown and the walk does not go through it. The result
523
+ says only how many relationships were left out; no name, class or other
524
+ attribute of such a CI is returned.
525
+ - If `parent`, `child` or `type` of `cmdb_rel_ci`, or `sys_id` of `cmdb_ci`, is
526
+ not readable under the profile's field policy, the call is refused before
527
+ any request.
528
+ - The start CI follows the same rules.
529
+ - The map output (`map: true`) is built from the same reads, so it shows nothing
530
+ the list does not.
531
+
532
+ The sys_ids of CIs on the other end of a relationship are visible to anyone who
533
+ can read `cmdb_rel_ci`; they are what the tool uses to ask `cmdb_ci` about them.
534
+
535
+ This holds inside `sn_relationships` only. `sn_query`, `sn_get` and
536
+ `sn_aggregate` on `cmdb_rel_ci` return the display values of `parent` and
537
+ `child`, which are not filtered by the access rules or the domain of the CI
538
+ they name. Where which CIs a user may see differs by user or domain:
539
+
540
+ - Bind `cmdb_rel_ci` to `sn_relationships`
541
+ (`servicenow-mcp-setup grant --read cmdb_rel_ci --tools sn_relationships`),
542
+ so the generic read tools cannot read it. On a `"*"` profile, naming the
543
+ table binds it to the listed tools. Keep `cmdb_ci` readable by
544
+ `sn_relationships` too: a CI is shown only if the tool can read it.
545
+ - The relationship type's name is read by a dot-walk of `type` (`type.name`,
546
+ from `cmdb_rel_type`), on the same request. It needs no grant on
547
+ `cmdb_rel_type` and is not subject to a field policy for it; it is
548
+ relationship metadata, not CI data.
549
+ - An integration user that bypasses instance ACLs, or domain separation, can
550
+ read every CI, so the read of `cmdb_ci` filters nothing for it. The rule
551
+ narrows what a user with less access sees; it does not replace that user's
552
+ own limits.
553
+
498
554
  ## Flow views
499
555
 
500
556
  `sn_flow_view` is read-only. It reads 15 tables through the Table API and
@@ -520,6 +576,93 @@ flow read creates a Workflow Studio history record. Approve it on these terms:
520
576
  [docs/FLOW-VIEW.md](FLOW-VIEW.md) lists every table, required field and
521
577
  field-policy switch.
522
578
 
579
+ ## Record history
580
+
581
+ `sn_history` reads one record's audit rows, journal entries and flow runs.
582
+ Approve it on these terms:
583
+
584
+ - `sys_audit` and `sys_journal_field` are granted by name only. Bind them to
585
+ `sn_history` (`servicenow-mcp-setup grant --read ... --tools sn_history`), so
586
+ `sn_query` and `sn_get` cannot read every record's history. Values are shown
587
+ only when the profile may read `sys_db_object` and `sys_dictionary`. A named
588
+ allowlist grants those to `sn_history` too; a `"*"` grant already covers
589
+ them, and on such a profile grant only the two named-only tables, since
590
+ naming a table binds it to the listed tools.
591
+ - Instance field ACLs on a record do not apply to its `sys_audit` rows: a
592
+ field the integration user cannot read on the record can still appear, with
593
+ its old and new values, in the audit history. The server's own field policy
594
+ does apply. Narrow such fields there, or leave `sys_audit` out.
595
+ - Audit entries for journal fields are always left out, so comments and work
596
+ notes come only through `sys_journal_field` and its grant. A field is a
597
+ journal field by its dictionary type only; a custom field that holds notes
598
+ under another type is treated as an ordinary field.
599
+ - Values follow the field's dictionary type and the credential-table list, and
600
+ are withheld when the types cannot be read. The
601
+ `"fieldTypes": { "dictionary": "not_required" }` setting does not show them.
602
+
603
+ [docs/HISTORY.md](HISTORY.md) has the details.
604
+
605
+ ## Platform views
606
+
607
+ `sn_platform_view` reads update sets, upgrade logs and Instance Scan results,
608
+ and evaluates update sets. Approve it on these terms:
609
+
610
+ - Each view reads a fixed set of tables, all or nothing. `sys_update_xml`,
611
+ `sys_upgrade_history_log`, `scan_finding`, `scan_result` and `scan_check` are
612
+ platform tables: a `"*"` field-policy entry narrows them, and their default
613
+ reads leave out the XML, script and matched-code columns.
614
+ - An update set's XML is read only where the profile's own `sys_update_xml`
615
+ entry names `payload`. It is then shown masked: password-typed and
616
+ sensitive-named elements are hidden, credential-like values are masked, and
617
+ changes to credential tables are refused. Masking can miss a secret written
618
+ in another form; grant `payload` only where that is acceptable.
619
+ - The payload view and `evaluate` need the field types. The
620
+ `"fieldTypes": { "dictionary": "not_required" }` setting does not apply to
621
+ them: without the types a payload is withheld and not scanned.
622
+ - The evaluator's result is a heuristic, not an approval.
623
+
624
+ [docs/PLATFORM-VIEW.md](PLATFORM-VIEW.md) has the details.
625
+
626
+ ## Process command-line columns
627
+
628
+ Some CMDB columns hold the command line a process was started with, or its
629
+ arguments: `command`, `parameters` and `key_parameters` on
630
+ `cmdb_running_process`; `running_process_command` and
631
+ `running_process_key_parameters` on `cmdb_ci_appl` (and so on every application
632
+ class); `command` on `cmdb_tcp_connection`, `cmdb_tcp_half`,
633
+ `cmdb_ci_docker_container` and `cmdb_ci_oslv_image`; `command_line` on nine
634
+ `cmdb_ci_appl_*` classes, `cmd_line` on `cmdb_ci_endpoint_mq_mem` and
635
+ `cmdb_ci_endpoint_wmb_depend`, `args` on `cmdb_ci_endpoint_storf`,
636
+ `cmdb_ci_endpoint_xenapp_citrx` and `cmdb_ci_endpoint_app`, and `app_args` on
637
+ `cmdb_ci_appl_citrix_app` (the README lists every table). A `"*"` field entry,
638
+ `"*"` on the table's own entry and the open default of a profile with no field
639
+ policy never cover them, for reads or writes: a profile reads or writes one
640
+ only where its own entry for that table lists it in `readable` or `writable`.
641
+ Name them only for the profiles and tables that need them.
642
+
643
+ - A table that extends a listed table has the same columns and is opened only
644
+ by its own entry. A database view that joins one of these tables, or a table
645
+ with record payload columns, has those columns under the view's prefix for
646
+ that table (`rp_command` for a table joined as `rp`), and is opened only by
647
+ its own entry. The chains and the views' joined tables come from
648
+ `sys_db_object` and `sys_db_view_table`; a table or view they can't be read
649
+ for is refused like any table with unreadable field types.
650
+ - On a profile with `"fieldTypes": { "dictionary": "not_required" }`, a table
651
+ or view whose chain or joined tables can be read is guarded as above. Where
652
+ they can't be read, only exact names apply: the listed tables, the out-of-the-box subclass
653
+ `cmdb_ci_docker_image`, the out-of-the-box views `related_servers`,
654
+ `classified_apps`, `application_on_servers` and `samp_lrb_to_instances_view`
655
+ (with their prefixed columns, listed in the README), and
656
+ `running_process_command` and `running_process_key_parameters` on any table.
657
+ A custom subclass or custom view is covered through its chain or joined
658
+ tables, so where those can't be read under `not_required` only by those two
659
+ names.
660
+ - `sn_history` leaves out the audit rows of these columns even where the
661
+ profile opened them, and refuses them in `fields`.
662
+ - Dotted names (`ref_cmdb_running_process.command`, `parent.command`) are never
663
+ accepted as a field, filter, order or group field by any read tool.
664
+ - `sn_codesearch` and `sn_nl` do not reach these tables.
665
+
523
666
  ## Tables a `"*"` grant does not cover
524
667
 
525
668
  `sys_audit`, `sys_journal_field`, `sys_history_line`, `sys_audit_delete`,
@@ -26,7 +26,7 @@ npm audit --omit=dev --audit-level=moderate
26
26
 
27
27
  The unit and protocol commands are deliberately separate release records even
28
28
  though the complete unit suite contains the focused protocol cases. The
29
- protocol gate includes the all-24-tool missing-profile rejection matrix through
29
+ protocol gate includes the all-26-tool missing-profile rejection matrix through
30
30
  the official SDK and independent Fetch clients, plus the catalog-wide resolved
31
31
  profile/result/audit contract. The profile gate covers encryption,
32
32
  secret-reference resolution, operator administration, and profile isolation.
@@ -68,7 +68,7 @@ bearer header in argv. In the local UI:
68
68
 
69
69
  1. Select Streamable HTTP and enter the exact `MCP_URL` shown by the launcher.
70
70
  2. Enter the bearer directly from the approved secret store in the local UI.
71
- 3. Run `tools/list`; verify exactly 24 tools and required non-empty `profile`
71
+ 3. Run `tools/list`; verify exactly 26 tools and required non-empty `profile`
72
72
  schemas.
73
73
  4. Call `sn_profile` once without `profile` and verify rejection.
74
74
  5. Call it again with the exact `MCP_PROFILE`; verify
@@ -60,7 +60,7 @@ npm run smoke
60
60
  The smoke client uses the official MCP Streamable HTTP client and verifies:
61
61
 
62
62
  - initialization and discovery over `/mcp`;
63
- - exactly 24 tools;
63
+ - exactly 26 tools;
64
64
  - every discovered schema requires a non-empty `profile`;
65
65
  - `sn_profile` returns `structuredContent.profile` without credentials;
66
66
  - a version health check and a bounded incident query return that same resolved
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@onlyflows/servicenow-mcp",
3
3
  "mcpName": "io.github.onlyflowstech/servicenow-mcp",
4
- "version": "2.3.0",
5
- "description": "Governed stdio ServiceNow MCP server for production: 24 tools with per-profile table and field policy, dry-run bulk changes, activity events, multi-instance profiles, CMDB traversal, ATF testing and read-only Flow Designer flow views.",
4
+ "version": "2.4.0-rc.1",
5
+ "description": "Governed stdio ServiceNow MCP server for production: 26 tools with per-profile table and field policy, dry-run bulk changes, activity events, multi-instance profiles, CMDB traversal, ATF testing, read-only Flow Designer flow views, record history and update set, upgrade and scan views.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "bin": {
package/server.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "url": "https://github.com/onlyflowstech/servicenow-mcp",
8
8
  "source": "github"
9
9
  },
10
- "version": "2.3.0",
10
+ "version": "2.4.0-rc.1",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "@onlyflows/servicenow-mcp",
15
- "version": "2.3.0",
15
+ "version": "2.4.0-rc.1",
16
16
  "runtimeHint": "npx",
17
17
  "transport": {
18
18
  "type": "stdio"