@onlyflows/servicenow-mcp 2.3.0-dev.5 → 2.3.0-rc.2

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 CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project are documented here.
5
5
  The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.3.0-rc.2] — 2026-11-16
9
+
10
+ Release candidate for 2.3.0, published to the `next` dist-tag. It contains the
11
+ changes listed under 2.3.0-dev.1 to 2.3.0-dev.5 below and nothing else.
12
+
8
13
  ## [2.3.0-dev.5] — 2026-11-16
9
14
 
10
15
  ### Added
@@ -647,6 +652,126 @@ changes listed under 2.3.0-dev.1 below and nothing else.
647
652
  `\mcp`, which the server's own path check reads as `/mcp`) now gets 400 Bad
648
653
  Request.
649
654
 
655
+ ## [2.2.1] — 2026-11-16
656
+
657
+ ### Changed
658
+
659
+ - **Read tools hide `password`/`password2`-typed fields by dictionary type as
660
+ well as by name.** A field whose internal type is `password`, `password2`,
661
+ `masked` or `encrypted_text` is refused when named, left out of `fields=all`,
662
+ detailed and default reads, `"*"` responses and write echoes, refused as a
663
+ filter, order, aggregate, group-by or ATF step-condition field, and refused
664
+ as a write key, whatever it is called. A `sys_properties` row shows `value`
665
+ only when its `type` is a known non-secret type. The types come from one
666
+ cached `sys_dictionary` read per credential. While they cannot be read,
667
+ field-policy tools refuse with a message naming the access needed, unless the
668
+ profile sets `"fieldTypes": { "dictionary": "not_required" }`, which falls
669
+ back to name-only hiding and is flagged on the policy card. `tools/list` is
670
+ unchanged.
671
+
672
+ - **`sn_atf_author` checks the table, conditions and ACL setting of ATF steps
673
+ when it adds them.** A `record_query`, `record_validation`,
674
+ `field_values_validation` or `open_existing_record` step needs a read grant on
675
+ the table it names, and an `open_new_form` or `set_field_values` step a write
676
+ grant, with the same refusal as any table access (a named-only table such as
677
+ `sys_audit` must be named). The conditions of `record_query`,
678
+ `record_validation` and `field_values_validation` are checked against the
679
+ table's field policy: a field the profile may not read, a dot-walk (`a.b`), a
680
+ condition that is only a pasted step output, and a term the check does not
681
+ recognise are refused, and only the operators that compare a field with a
682
+ literal are allowed (`=`, `!=`, `<`, `<=`, `>`, `>=`, `LIKE`, `NOT LIKE`,
683
+ `STARTSWITH`, `ENDSWITH`, `IN`, `NOT IN`, `ISEMPTY`, `ISNOTEMPTY`, `BETWEEN`),
684
+ so an operator that takes a second field, such as `SAMEAS` or `GT_FIELD`, is
685
+ refused. `enforce_security: false` is refused on `record_query` and
686
+ `record_validation` with a fixed message (leave it out, or pass `true`; it
687
+ stays `true` by default). A refused step refuses the whole call, before any
688
+ write. A condition value, and a `set_field_values` value, may refer to an earlier
689
+ step's output only by record id or sys_id (`record_id`, `first_record`,
690
+ `sys_id`, `user`), and the fields a
691
+ `set_field_values` step sets must be writable on its table, as for `sn_update`.
692
+ The impersonated user's ACLs still apply on top; suites authored in the
693
+ instance are not checked by the server's table grants, and `atf.execute` stays
694
+ opt-in. The README and `docs/PRODUCTION-SECURITY.md` now also say that a
695
+ database view or extension table over one of the six named-only tables is not
696
+ covered by the name list.
697
+ - **A `"*"` write grant does not cover `sys_atf_step`, `sys_variable_value`
698
+ and `sys_element_mapping` for the generic write tools.** These tables hold the
699
+ step types, input values and pill mappings that `sn_atf_author` checks when it
700
+ adds a step. Under `"*"`,
701
+ `sn_atf_author` still writes them, but `sn_create`, `sn_update`, `sn_delete`,
702
+ `sn_batch` and attachment uploads reach them only when the profile names the
703
+ table for write, for example `servicenow-mcp-setup grant --profile <profile>
704
+ --write sys_atf_step --tools sn_update`; a refusal is the usual table-access
705
+ denial. Reads are unchanged, and no other table's access changes.
706
+ `sys_variable_value` and `sys_element_mapping` also hold other variables'
707
+ values and mappings (catalog variables, for example), so a profile that writes
708
+ those with the generic tools must now name them. The policy card lists the
709
+ three tables as outside the wildcard row's write access.
710
+ - **`sys_audit` and `sys_journal_field` are granted by name only: a `"*"` table
711
+ grant does not cover them.** Their rows hold the old and new values of other
712
+ tables' fields, comments and work notes. With `"*"` alone, `sn_query`, `sn_get`,
713
+ `sn_aggregate`, `sn_schema`, `sn_batch` and the other tools refuse them with
714
+ the usual table-access denial. To read one, name it:
715
+ `servicenow-mcp-setup grant --profile <profile> --read sys_audit --tools
716
+ sn_query`. A profile that already names a table is unaffected, and a `"*"`
717
+ grant beside the name still covers everything else. A read that names no
718
+ `fields` returns `sys_id`, `tablename`, `documentkey`, `fieldname`, `user` and
719
+ `sys_created_on` for `sys_audit`, and `sys_id`, `name`, `element_id`, `element`,
720
+ `sys_created_by` and `sys_created_on` for `sys_journal_field`; ask for
721
+ `oldvalue`, `newvalue` or `value` by name. No other table's access changes. The
722
+ policy card and the setup wizard's wildcard note say the same.
723
+ - **Four more tables are granted by name only, and a `"*"` field entry now
724
+ narrows all six.** `sys_history_line`, `sys_audit_delete`, `sys_attachment_doc`
725
+ and `sys_email` join `sys_audit` and `sys_journal_field`: a `"*"` table grant does
726
+ not cover them, for read or write, and a profile reaches one only when
727
+ `tableAccess` names it. Their rows hold history built from audit, deleted
728
+ records, attachment content and email bodies. A refusal is the usual
729
+ table-access denial. A read that names no `fields` leaves out the value
730
+ columns (`old`, `new`, `old_value` and `new_value`; `payload`; `data`; `body`,
731
+ `body_text`, `subject`, `recipients`, `copied`, `blind_copied`, `reply_to`,
732
+ `headers` and `error_string`), so ask for them by name. For field policy
733
+ the six belong to the profile, as the ITSM tables do: once a profile names one,
734
+ its `"*"` field entry narrows it, and an entry for the table itself narrows or
735
+ widens it. The 23 system tables, which a `"*"` field entry never narrows, are
736
+ unchanged. `sn_attach` is unaffected: it uses the Attachment API and never
737
+ reads `sys_attachment_doc`.
738
+ A `relatedTables` list that reaches one of the six under a `"*"` grant still
739
+ stops the profile loading, and the message now names the table and says it
740
+ must be granted by name. `sn_profile` reports these tables with the class
741
+ `named_only`.
742
+ - **`sn_batch` and `sn_query` refuse a `structured_query` filter or order on a
743
+ field the table does not have.** A confirmed `sn_batch` update or delete, its
744
+ dry run and an `sn_query` read stop with a fixed message that names the field
745
+ ("was not found on the table, or is not readable by this user") before any
746
+ record is changed or listed; for `sn_batch` that is before the sample or the
747
+ write. No extra request is made: the fields a filter or order uses are added to
748
+ the read's `sysparm_fields`, looked for in the rows that come back, and left out
749
+ of the result. A field counts as present when any returned row carries it, an
750
+ existing column with no value is still returned, and a read that returns no
751
+ rows is returned as before, since there is nothing to check. A raw encoded
752
+ `query` is not checked; it is only accepted through a policy rule that pins
753
+ the query and its fields. The extra columns add bytes to each fetched row, and
754
+ a filter on a very large text field that is not in `fields` can take a wide
755
+ read past the 1 MiB upstream response limit: the call then says so and asks for
756
+ a lower `limit`.
757
+
758
+ ### Security
759
+
760
+ - **HTTP server dependencies.** `@hono/node-server` moves from 2.1.3 to 2.1.7
761
+ and `hono` (transitive, through the MCP SDK) from 4.13.13 to 4.13.18,
762
+ clearing the advisories that `npm audit --omit=dev` reported:
763
+ GHSA-qv5m-9pm6-hqp3 and GHSA-jpvv-r467-5p4w in `@hono/node-server`, and
764
+ GHSA-4m76-xfj5-7975, GHSA-h7mg-cq63-vhpq, GHSA-3gg2-335m-rxc6,
765
+ GHSA-4h7h-rv7c-7m2v and GHSA-46wx-v44x-9hh2 in `hono`. The same releases
766
+ also carry the fixes for GHSA-7v5p-43qr-wch5 and GHSA-fj57-4f93-cfw6
767
+ (`@hono/node-server`) and GHSA-92p4-j3wq-jmqx, GHSA-39q9-qp46-w8xg and
768
+ GHSA-74fm-fwc7-3fwp (`hono`). The `tools/inspector` lock moves to `hono`
769
+ 4.13.18 and `@hono/node-server` 2.1.8. In the published package, only the
770
+ dormant HTTP transport uses these packages. One behaviour
771
+ change: a request to `/mcp` whose raw path contains a backslash (for example
772
+ `\mcp`, which the server's own path check reads as `/mcp`) now gets 400 Bad
773
+ Request.
774
+
650
775
  ## [2.2.0] — 2026-10-30
651
776
 
652
777
  2.2.0 is the first stable release since 2.1.0. It contains everything
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-dev.5";
9
+ export declare const VERSION = "2.3.0-rc.2";
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,gBAAgB,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-dev.5";
12
+ exports.VERSION = "2.3.0-rc.2";
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,aAAa,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEU,QAAA,OAAO,GAAG,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onlyflows/servicenow-mcp",
3
3
  "mcpName": "io.github.onlyflowstech/servicenow-mcp",
4
- "version": "2.3.0-dev.5",
4
+ "version": "2.3.0-rc.2",
5
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.",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
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-dev.5",
10
+ "version": "2.3.0-rc.2",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "@onlyflows/servicenow-mcp",
15
- "version": "2.3.0-dev.5",
15
+ "version": "2.3.0-rc.2",
16
16
  "runtimeHint": "npx",
17
17
  "transport": {
18
18
  "type": "stdio"