@sonisoft/now-sdk-ext-mcp 4.7.1 → 4.8.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.
- package/README.md +150 -62
- package/dist/common/annotations.d.ts.map +1 -1
- package/dist/common/annotations.js +2 -0
- package/dist/common/annotations.js.map +1 -1
- package/dist/common/connection.d.ts.map +1 -1
- package/dist/common/connection.js +6 -2
- package/dist/common/connection.js.map +1 -1
- package/dist/common/logging.d.ts.map +1 -1
- package/dist/common/logging.js +19 -1
- package/dist/common/logging.js.map +1 -1
- package/dist/config/tool-packages.d.ts.map +1 -1
- package/dist/config/tool-packages.js +4 -0
- package/dist/config/tool-packages.js.map +1 -1
- package/dist/tools/behavior.d.ts +6 -0
- package/dist/tools/behavior.d.ts.map +1 -0
- package/dist/tools/behavior.js +78 -0
- package/dist/tools/behavior.js.map +1 -0
- package/dist/tools/registry.d.ts.map +1 -1
- package/dist/tools/registry.js +3 -0
- package/dist/tools/registry.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,19 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
An MCP (Model Context Protocol) server that enables AI assistants to interact directly with ServiceNow instances — executing background scripts, querying data, running ATF tests, tailing logs, and more.
|
|
4
4
|
|
|
5
|
-
Built on [`@modelcontextprotocol/sdk`](https://github.com/modelcontextprotocol/typescript-sdk) and [`@sonisoft/now-sdk-ext-core`](https://
|
|
5
|
+
Built on [`@modelcontextprotocol/sdk`](https://github.com/modelcontextprotocol/typescript-sdk) and [`@sonisoft/now-sdk-ext-core`](https://github.com/sonisoft-cnanda/now-sdk-ext-core).
|
|
6
|
+
|
|
7
|
+
Use [table behavior discovery](#table-behavior-discovery) to inspect automation, field requirements, and related artifact details. Available in MCP **4.8.0**, using core **6.4.1**.
|
|
6
8
|
|
|
7
9
|
## Quick Start
|
|
8
10
|
|
|
9
11
|
### Prerequisites
|
|
10
12
|
|
|
11
|
-
- **Node.js** >=
|
|
13
|
+
- **Node.js** >= 26
|
|
12
14
|
- **ServiceNow CLI credentials** configured via `now-sdk auth --add`
|
|
13
15
|
|
|
14
|
-
###
|
|
16
|
+
### Use the Published Package
|
|
17
|
+
|
|
18
|
+
Configure your MCP client to launch `npx --yes @sonisoft/now-sdk-ext-mcp`:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"mcpServers": {
|
|
23
|
+
"servicenow": {
|
|
24
|
+
"command": "npx",
|
|
25
|
+
"args": ["--yes", "@sonisoft/now-sdk-ext-mcp"],
|
|
26
|
+
"env": {
|
|
27
|
+
"SN_AUTH_ALIAS": "dev",
|
|
28
|
+
"MCP_TOOL_PACKAGE": "readonly"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The `readonly` package includes schema and behavior discovery. Omit `MCP_TOOL_PACKAGE` for all tools, or select a [tool package](TOOLS.md#tool-packages) for your workflow.
|
|
36
|
+
|
|
37
|
+
### Build from Source
|
|
15
38
|
|
|
16
39
|
```bash
|
|
17
|
-
git clone
|
|
40
|
+
git clone https://github.com/sonisoft-cnanda/now-sdk-ext-mcp.git
|
|
18
41
|
cd now-sdk-ext-mcp
|
|
19
42
|
npm install
|
|
20
43
|
npm run build
|
|
@@ -25,10 +48,11 @@ npm run build
|
|
|
25
48
|
This server uses the same credential store as the ServiceNow CLI. If you haven't already, configure your instance credentials:
|
|
26
49
|
|
|
27
50
|
```bash
|
|
28
|
-
|
|
51
|
+
npm install -g @servicenow/sdk
|
|
52
|
+
now-sdk auth --add https://dev12345.service-now.com --alias dev --type oauth
|
|
29
53
|
```
|
|
30
54
|
|
|
31
|
-
This stores credentials locally
|
|
55
|
+
This stores credentials locally. For clients that cannot unlock the OS keyring, import credentials into `@sonisoft/sn-credstore` and set `SN_CRED_STORE_ENABLE=1` in the server environment; see [credential storage](CLAUDE.md#credential-storage).
|
|
32
56
|
|
|
33
57
|
> **Breaking Change in v2.0.0 (ServiceNow SDK 4.3.0)**
|
|
34
58
|
>
|
|
@@ -43,7 +67,7 @@ This stores credentials locally so the MCP server can authenticate without promp
|
|
|
43
67
|
> npm install -g @servicenow/sdk@4.3.0
|
|
44
68
|
>
|
|
45
69
|
> # 2. Re-add each instance alias
|
|
46
|
-
> now-sdk auth --add
|
|
70
|
+
> now-sdk auth --add https://dev12345.service-now.com --alias dev --type oauth
|
|
47
71
|
>
|
|
48
72
|
> # 3. Verify your aliases work
|
|
49
73
|
> now-sdk auth --list
|
|
@@ -110,7 +134,7 @@ Add to your `.vscode/mcp.json` or Cursor MCP settings:
|
|
|
110
134
|
|
|
111
135
|
### Claude Code
|
|
112
136
|
|
|
113
|
-
Add to your
|
|
137
|
+
Add to your project-level `.mcp.json`:
|
|
114
138
|
|
|
115
139
|
```json
|
|
116
140
|
{
|
|
@@ -155,13 +179,93 @@ Once connected, you can talk to your AI assistant naturally:
|
|
|
155
179
|
|
|
156
180
|
> "Query the sys_user table for users with the admin role on prod"
|
|
157
181
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
3. Return the results in a readable format
|
|
182
|
+
> "Inspect change_request behavior on dev. Identify transition requirements and flow conditions needed for Change Management ATF coverage."
|
|
183
|
+
|
|
184
|
+
The assistant selects the appropriate tools, supplies the instance alias, and interprets their results. Schema tools describe fields; behavior tools retrieve automation configuration and dependencies. Script execution is available when the task calls for server-side JavaScript.
|
|
162
185
|
|
|
163
186
|
The `instance` parameter can be passed explicitly per-request or defaulted via the `SN_AUTH_ALIAS` environment variable, so if you only work with one instance you can set-and-forget.
|
|
164
187
|
|
|
188
|
+
## Table Behavior Discovery
|
|
189
|
+
|
|
190
|
+
Use `discover_table_behavior` to inventory configuration affecting a table and `get_behavior_details` to retrieve known artifacts without rescanning. Both tools are read-only and available in the `full`, `readonly`, `developer`, and `flow_developer` packages.
|
|
191
|
+
|
|
192
|
+
| Category | Functional context |
|
|
193
|
+
| --- | --- |
|
|
194
|
+
| `business_rules` | Before/after/async timing, operation flags, order, conditions and scripts |
|
|
195
|
+
| `ui_actions` | Form/list/workspace placement, roles, conditions and scripts |
|
|
196
|
+
| `client_scripts` | Client events, target fields, views and inherited applicability |
|
|
197
|
+
| `ui_policies` | Conditions and mandatory, visible or read-only field actions |
|
|
198
|
+
| `data_policies` | Server field requirements and enforcement settings |
|
|
199
|
+
| `workflows` | Legacy workflow versions, start conditions, activities and transitions |
|
|
200
|
+
| `flows` | Record triggers, conditions and optional current flow definitions |
|
|
201
|
+
| `state_models` | State fields, transition gates and required fields in supported generic layouts |
|
|
202
|
+
|
|
203
|
+
Pass these **tool arguments** to `discover_table_behavior` for a compact inventory:
|
|
204
|
+
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"instance": "dev",
|
|
208
|
+
"table": "change_request"
|
|
209
|
+
}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Defaults: active configuration, applicable ancestors, all eight categories, 50 items per category and a 65,536-byte JSON budget. Summaries include conditions and declarative field actions. Request scripts, definitions and dependencies in the first call when needed:
|
|
213
|
+
|
|
214
|
+
```json
|
|
215
|
+
{
|
|
216
|
+
"instance": "dev",
|
|
217
|
+
"table": "change_request",
|
|
218
|
+
"categories": ["business_rules", "flows", "state_models"],
|
|
219
|
+
"details": ["scripts", "definitions", "dependencies"],
|
|
220
|
+
"dependency_depth": 1,
|
|
221
|
+
"max_bytes": 262144
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
For known artifacts, pass 1–50 `references` to `get_behavior_details`. Replace example IDs with real source IDs. Reference objects preserve the core API's camelCase keys even though tool options use snake_case:
|
|
226
|
+
|
|
227
|
+
```json
|
|
228
|
+
{
|
|
229
|
+
"instance": "dev",
|
|
230
|
+
"references": [
|
|
231
|
+
{
|
|
232
|
+
"kind": "flows",
|
|
233
|
+
"sourceTable": "sys_hub_flow",
|
|
234
|
+
"sysId": "0123456789abcdef0123456789abcdef"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"details": ["definitions", "dependencies"],
|
|
238
|
+
"dependency_depth": 1,
|
|
239
|
+
"max_bytes": 262144
|
|
240
|
+
}
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
References from discovery can be passed through unchanged. Flow discovery can return trigger references; a known flow ID uses `kind: "flows"` and `sourceTable: "sys_hub_flow"`. Detail retrieval also supports subflows, actions, Script Includes and decision tables.
|
|
244
|
+
|
|
245
|
+
**Controls and continuation:**
|
|
246
|
+
|
|
247
|
+
- Filter discovery with `categories`, metadata `name`, or up to 50 `sys_ids`. Use `include_inherited: false` for direct table associations and `include_inactive: true` for inactive/draft candidates where available.
|
|
248
|
+
- `limit` accepts 1–200 items per category. `max_bytes` accepts 4,096–1,048,576 bytes on either tool.
|
|
249
|
+
- `dependency_depth` defaults to 0; 1 requires `details` containing `dependencies` and expands at most 50 unique dependency references. `scope` selects the transaction scope for flow definition reads.
|
|
250
|
+
- Pass each category's `nextCursor` in `cursors`, retaining the original table, filters and detail selection. For example, after a `business_rules`-only inventory:
|
|
251
|
+
|
|
252
|
+
```json
|
|
253
|
+
{
|
|
254
|
+
"instance": "dev",
|
|
255
|
+
"table": "change_request",
|
|
256
|
+
"categories": ["business_rules"],
|
|
257
|
+
"cursors": {
|
|
258
|
+
"business_rules": "<nextCursor from the previous response>"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
Both tools return the core result in `structuredContent` and a short text summary. Discovery includes category `status` (`complete`, `partial`, `unavailable`, or `failed`), `items`, `warnings` and optional `nextCursor`. Detail batches include `remainingReferences`. Oversized details are omitted whole with `omittedDetails` and warnings; increase the budget or narrow the batch. Empty pages can still need continuation, and empty results only describe the account's accessible configuration.
|
|
264
|
+
|
|
265
|
+
**Change Management ATF workflow:** combine schema fields and choices with behavior conditions, required fields, state transitions, approval steps and dependent artifacts. Keep UI behavior separate from server enforcement. Preserve source references and runtime/design provenance: current flow definitions can differ from the version associated with runtime trigger metadata. Conditions are not evaluated and execution order is not predicted. Validate the resulting test assumptions with ATF results, logs and flow contexts.
|
|
266
|
+
|
|
267
|
+
Live behavior validation used an Australia instance; Zurich validation remains outstanding. See the [behavior guide](docs/table-behavior.md), [tool parameters](TOOLS.md#discover_table_behavior), and [core API reference](https://github.com/sonisoft-cnanda/now-sdk-ext-core/blob/main/docs/TableBehaviorDiscovery.md).
|
|
268
|
+
|
|
165
269
|
## Available Tools
|
|
166
270
|
|
|
167
271
|
See **[TOOLS.md](TOOLS.md)** for the full list of available tools with parameters and examples.
|
|
@@ -171,6 +275,9 @@ See **[TOOLS.md](TOOLS.md)** for the full list of available tools with parameter
|
|
|
171
275
|
| Variable | Default | Description |
|
|
172
276
|
|----------|---------|-------------|
|
|
173
277
|
| `SN_AUTH_ALIAS` | _(none)_ | Default ServiceNow auth alias. Used when a tool call doesn't specify an `instance` parameter. |
|
|
278
|
+
| `MCP_TOOL_PACKAGE` | `full` | Tool package or comma-separated union; see [tool packages](TOOLS.md#tool-packages). |
|
|
279
|
+
| `SN_CRED_STORE_ENABLE` | _(unset)_ | Set to `1` to use the imported headless credential store; see [credential storage](CLAUDE.md#credential-storage). |
|
|
280
|
+
| `NEX_LOG_LEVEL` | `info` | Diagnostic log level; logs go to stderr. See [debugging](#debugging) for file logging. |
|
|
174
281
|
|
|
175
282
|
## Development
|
|
176
283
|
|
|
@@ -179,8 +286,10 @@ See **[TOOLS.md](TOOLS.md)** for the full list of available tools with parameter
|
|
|
179
286
|
```
|
|
180
287
|
src/
|
|
181
288
|
├── index.ts # Server entry point — registers tools, starts stdio transport
|
|
182
|
-
├── tools/ #
|
|
183
|
-
│ └──
|
|
289
|
+
├── tools/ # Tool implementations and registry.ts
|
|
290
|
+
│ └── behavior.ts # Discovery and batched behavior detail tools
|
|
291
|
+
├── config/tool-packages.ts # Role package definitions
|
|
292
|
+
├── resources/ # Read-only servicenow:// resources
|
|
184
293
|
└── common/
|
|
185
294
|
└── connection.ts # ServiceNow connection manager (credential resolution + caching)
|
|
186
295
|
|
|
@@ -207,52 +316,16 @@ test/
|
|
|
207
316
|
|
|
208
317
|
### Adding a New Tool
|
|
209
318
|
|
|
210
|
-
1.
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
import { z } from "zod";
|
|
217
|
-
import { getServiceNowInstance } from "../common/connection.js";
|
|
218
|
-
|
|
219
|
-
export function registerQueryTableTool(server: McpServer): void {
|
|
220
|
-
server.registerTool(
|
|
221
|
-
"query_table",
|
|
222
|
-
{
|
|
223
|
-
title: "Query Table",
|
|
224
|
-
description: "Query records from a ServiceNow table.",
|
|
225
|
-
inputSchema: {
|
|
226
|
-
instance: z.string().optional().describe("ServiceNow instance auth alias"),
|
|
227
|
-
table: z.string().describe("Table name to query"),
|
|
228
|
-
// ... more params
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
async ({ instance, table }) => {
|
|
232
|
-
const snInstance = await getServiceNowInstance(instance);
|
|
233
|
-
// ... use core library to query
|
|
234
|
-
return {
|
|
235
|
-
content: [{ type: "text" as const, text: "results here" }],
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
3. Register it in `src/index.ts`:
|
|
243
|
-
|
|
244
|
-
```typescript
|
|
245
|
-
import { registerQueryTableTool } from "./tools/query-table.js";
|
|
246
|
-
|
|
247
|
-
registerQueryTableTool(server);
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
4. Add tests in `test/unit/tools/` following the existing pattern.
|
|
251
|
-
5. Document the tool in [`TOOLS.md`](TOOLS.md).
|
|
319
|
+
1. Add a registration function under `src/tools/`; [behavior.ts](src/tools/behavior.ts) demonstrates input validation, structured output and error handling.
|
|
320
|
+
2. Route ServiceNow calls through `withConnectionRetry` and delegate reusable behavior to core.
|
|
321
|
+
3. Add the tool to `TOOL_REGISTRY` in [registry.ts](src/tools/registry.ts) and classify its effects in [annotations.ts](src/common/annotations.ts). Registration rejects unclassified tools.
|
|
322
|
+
4. Add it to relevant role packages in [tool-packages.ts](src/config/tool-packages.ts). The full package uses the registry; the readonly package uses annotations.
|
|
323
|
+
5. Test listing and invocation through the MCP client in `test/unit/tools/`, and cover package membership where relevant.
|
|
324
|
+
6. Document parameters and examples in [TOOLS.md](TOOLS.md) and update user-facing README guidance.
|
|
252
325
|
|
|
253
326
|
### Testing Approach
|
|
254
327
|
|
|
255
|
-
|
|
328
|
+
Tool tests use the MCP SDK's `InMemoryTransport` for linked client/server pairs and exercise JSON-RPC, schema validation and handler dispatch without ServiceNow calls. Logging tests also spawn the real server to verify stdout purity, stderr redaction and shutdown flushing.
|
|
256
329
|
|
|
257
330
|
- **Unit tests** (`test/unit/`): Mock external dependencies (`@sonisoft/now-sdk-ext-core`, `@servicenow/sdk-cli`) using `jest.unstable_mockModule()` for ESM compatibility. Test tool behavior through the MCP client.
|
|
258
331
|
- **Integration tests** (`test/integration/`): Verify the MCP protocol lifecycle (handshake, tool listing, sequential calls) without mocking.
|
|
@@ -261,8 +334,8 @@ Tests use the MCP SDK's `InMemoryTransport` to create linked client+server pairs
|
|
|
261
334
|
|
|
262
335
|
This MCP server wraps the same core library used by the CLI:
|
|
263
336
|
|
|
264
|
-
- **Core library**: [`@sonisoft/now-sdk-ext-core`](
|
|
265
|
-
- **CLI**: [`@sonisoft/now-sdk-ext-cli`](
|
|
337
|
+
- **Core library**: [`@sonisoft/now-sdk-ext-core`](https://github.com/sonisoft-cnanda/now-sdk-ext-core) — all ServiceNow communication (auth, HTTP, WebSocket, script execution, ATF, syslog)
|
|
338
|
+
- **CLI**: [`@sonisoft/now-sdk-ext-cli`](https://github.com/sonisoft-cnanda/now-sdk-ext-cli) — the `nex` CLI that wraps the core library with oclif
|
|
266
339
|
|
|
267
340
|
When adding new MCP tools, reference the corresponding CLI command in `now-sdk-ext-cli/src/commands/` for the expected behavior and data flow.
|
|
268
341
|
|
|
@@ -303,7 +376,7 @@ There are three layers of testing for this project:
|
|
|
303
376
|
|
|
304
377
|
#### 1. Automated Tests (Jest)
|
|
305
378
|
|
|
306
|
-
|
|
379
|
+
Protocol tests use `InMemoryTransport`; logging checks also launch the real server. Automated tests do not require ServiceNow credentials or call a live instance.
|
|
307
380
|
|
|
308
381
|
```bash
|
|
309
382
|
npm test # Unit tests (default, fast)
|
|
@@ -425,7 +498,7 @@ printf '%s\n%s\n%s\n' \
|
|
|
425
498
|
|
|
426
499
|
Since stdout is reserved for JSON-RPC, **never use `console.log()` in server code** — it corrupts the protocol stream. Use these approaches instead:
|
|
427
500
|
|
|
428
|
-
-
|
|
501
|
+
- **Shared logger** — use `getLogger()` from `src/common/logging.ts`. It sends diagnostics to stderr and redacts structured metadata and recognized credential patterns. Avoid raw `console.error()` with errors or session data.
|
|
429
502
|
- **MCP Inspector** — run the server under the inspector to see all JSON-RPC messages and stderr output in real time.
|
|
430
503
|
- **File logging** — off by default. This server's working directory is chosen by whoever launched it, so it writes no files unless asked. Configure with environment variables:
|
|
431
504
|
|
|
@@ -437,7 +510,7 @@ Since stdout is reserved for JSON-RPC, **never use `console.log()` in server cod
|
|
|
437
510
|
| `NEX_POLICY_DENY` | `write`, `execute`, or `all` — refuses matching instance changes. Malformed values **fail closed** |
|
|
438
511
|
| `NEX_POLICY_ALLOW` | Grants verbs. Inert while changes are permitted by default |
|
|
439
512
|
|
|
440
|
-
Diagnostics always go to **stderr**, never stdout — stdout carries JSON-RPC.
|
|
513
|
+
Diagnostics always go to **stderr**, never stdout — stdout carries JSON-RPC. SDK diagnostics use the same redacting logger. Redaction covers structured credential fields and recognized message patterns; never interpolate arbitrary secrets into log messages. SIGINT and SIGTERM wait for log flushing within a two-second shutdown bound. Core 6.4.1 also waits for the underlying file stream to finish pending writes.
|
|
441
514
|
|
|
442
515
|
### Code Conventions
|
|
443
516
|
|
|
@@ -451,3 +524,18 @@ Since stdout is reserved for JSON-RPC, **never use `console.log()` in server cod
|
|
|
451
524
|
## License
|
|
452
525
|
|
|
453
526
|
MIT
|
|
527
|
+
|
|
528
|
+
## OAuth renewal
|
|
529
|
+
|
|
530
|
+
Alias-bound connections provide core with a credential resolver. Core can refresh
|
|
531
|
+
OAuth and rebuild session cookies during long-running operations; the 30-minute
|
|
532
|
+
connection cache is not an authentication lifetime.
|
|
533
|
+
|
|
534
|
+
Core owns authentication retries. MCP does not retry `NEX_AUTH_*` or
|
|
535
|
+
`NEX_SESSION_*` errors again. Writes and stateful sessions require an explicit safe
|
|
536
|
+
restart after expiry. Rejected refresh credentials require a new login; temporary
|
|
537
|
+
store/network failures do not establish that interactive reauthentication is needed.
|
|
538
|
+
|
|
539
|
+
When upgrading a shared store, stop all clients first, upgrade every client
|
|
540
|
+
(including standalone `now-sdk-x`) to sn-credstore 1.1.1 or later, then restart.
|
|
541
|
+
The new lock protocol cannot safely run alongside older clients.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../src/common/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,MAAM,WAAW,eAAe;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,SAAS,IAAI,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAoCD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../src/common/annotations.ts"],"names":[],"mappings":"AAAA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3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/common/connection.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAEnB,MAAM,4BAA4B,CAAC;AA+BpC;;;;;;;;;;;GAWG;AACH,wBAAsB,qBAAqB,CACzC,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/common/connection.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAEnB,MAAM,4BAA4B,CAAC;AA+BpC;;;;;;;;;;;GAWG;AACH,wBAAsB,qBAAqB,CACzC,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,kBAAkB,CAAC,CAiD7B;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAKtD;AAED,0EAA0E;AAC1E,4EAA4E;AAC5E,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AAEjE;;;;;GAKG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAiBD;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,GACpE,OAAO,CAIT;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,EACzC,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,SAAS,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,OAAO,CAAC,CAAC,CAAC,GACtD,OAAO,CAAC,CAAC,CAAC,CAeZ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveSessionCredentials } from "@sonisoft/now-sdk-ext-core";
|
|
2
2
|
import { ServiceNowInstance, } from "@sonisoft/now-sdk-ext-core";
|
|
3
3
|
import { getLogger } from "./logging.js";
|
|
4
4
|
const log = getLogger("connection");
|
|
@@ -41,7 +41,7 @@ export async function getServiceNowInstance(authAlias) {
|
|
|
41
41
|
log.debug("Cache TTL expired, refreshing session", { alias: resolvedAlias });
|
|
42
42
|
instanceCache.delete(resolvedAlias);
|
|
43
43
|
}
|
|
44
|
-
const credential = await
|
|
44
|
+
const credential = await resolveSessionCredentials(resolvedAlias);
|
|
45
45
|
if (!credential) {
|
|
46
46
|
// The previous text told users to run "snc configure", which is not a
|
|
47
47
|
// command this SDK has ever shipped — so the one actionable line in the
|
|
@@ -64,6 +64,7 @@ export async function getServiceNowInstance(authAlias) {
|
|
|
64
64
|
const snSettings = {
|
|
65
65
|
alias: resolvedAlias,
|
|
66
66
|
credential,
|
|
67
|
+
credentialProvider: () => resolveSessionCredentials(resolvedAlias),
|
|
67
68
|
};
|
|
68
69
|
const instance = new ServiceNowInstance(snSettings);
|
|
69
70
|
instanceCache.set(resolvedAlias, {
|
|
@@ -102,6 +103,9 @@ const RETRYABLE_PATTERNS = /ECONNREFUSED|ECONNRESET|ETIMEDOUT|EPIPE|socket hang
|
|
|
102
103
|
function isRetryableError(error) {
|
|
103
104
|
if (!error)
|
|
104
105
|
return false;
|
|
106
|
+
if (typeof error === "object" && "code" in error &&
|
|
107
|
+
typeof error.code === "string" && /^(NEX_AUTH_|NEX_SESSION_)/.test(error.code))
|
|
108
|
+
return false;
|
|
105
109
|
const msg = error instanceof Error ? error.message : String(error);
|
|
106
110
|
return RETRYABLE_PATTERNS.test(msg);
|
|
107
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/common/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/common/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EACL,kBAA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AAS,CAAC,aAAa,CAAC,CAAC;QACxC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/common/logging.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/common/logging.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,EAAiC,MAAM,4BAA4B,CAAC;AAKnF;;;;;;GAMG;AACH,wBAAgB,WAAW,IAAI,IAAI,CA2BlC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9C"}
|
package/dist/common/logging.js
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* stdout is the JSON-RPC transport. Everything here goes to stderr, and nothing in this
|
|
16
16
|
* process may ever write to fd 1.
|
|
17
17
|
*/
|
|
18
|
-
import { Logger, configureLogging } from "@sonisoft/now-sdk-ext-core";
|
|
18
|
+
import { Logger, configureLogging, redactValue } from "@sonisoft/now-sdk-ext-core";
|
|
19
|
+
import { logger as sdkLogger } from "@servicenow/sdk-cli/dist/logger/index.js";
|
|
19
20
|
let configured = false;
|
|
20
21
|
/**
|
|
21
22
|
* Configures process-wide logging. Call once, before anything constructs a manager.
|
|
@@ -38,6 +39,23 @@ export function initLogging() {
|
|
|
38
39
|
// File logging stays off unless NEX_LOG_FILE/NEX_LOG_DIR asks for it. Core
|
|
39
40
|
// resolves those; naming them here would override an operator's NEX_LOG_FILE=0.
|
|
40
41
|
});
|
|
42
|
+
const sdkLog = getLogger("ServiceNow SDK");
|
|
43
|
+
sdkLogger.setLevel("silent");
|
|
44
|
+
for (const level of ["info", "warn", "error", "debug"]) {
|
|
45
|
+
sdkLogger[level] = (...args) => {
|
|
46
|
+
const message = args.map(arg => {
|
|
47
|
+
if (typeof arg === "string")
|
|
48
|
+
return arg;
|
|
49
|
+
try {
|
|
50
|
+
return JSON.stringify(redactValue(arg)) ?? String(arg);
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return "[unserializable]";
|
|
54
|
+
}
|
|
55
|
+
}).join(" ");
|
|
56
|
+
sdkLog[level](message || "ServiceNow SDK");
|
|
57
|
+
};
|
|
58
|
+
}
|
|
41
59
|
}
|
|
42
60
|
/**
|
|
43
61
|
* Returns a named logger.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/common/logging.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/common/logging.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAE/E,IAAI,UAAU,GAAG,KAAK,CAAC;AAEvB;;;;;;GAMG;AACH,MAAM,UAAU,WAAW;IACvB,IAAI,UAAU,EAAE,CAAC;QACb,OAAO;IACX,CAAC;IACD,UAAU,GAAG,IAAI,CAAC;IAElB,gBAAgB,CAAC;QACb,+EAA+E;QAC/E,+EAA+E;QAC/E,+EAA+E;QAC/E,kEAAkE;QAClE,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,EAAE,IAAI,MAAM;QACzD,2EAA2E;QAC3E,gFAAgF;KACnF,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC3C,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC7B,KAAK,MAAM,KAAK,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAU,EAAE,CAAC;QAC9D,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAe,EAAQ,EAAE;YAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBAC3B,IAAI,OAAO,GAAG,KAAK,QAAQ;oBAAE,OAAO,GAAG,CAAC;gBACxC,IAAI,CAAC;oBAAC,OAAO,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;gBAAC,CAAC;gBAC/D,MAAM,CAAC;oBAAC,OAAO,kBAAkB,CAAC;gBAAC,CAAC;YACxC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACb,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,IAAI,gBAAgB,CAAC,CAAC;QAC/C,CAAC,CAAC;IACN,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,SAAS,CAAC,IAAY;IAClC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-packages.d.ts","sourceRoot":"","sources":["../../src/config/tool-packages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,WAAW;IACxB,4EAA4E;IAC5E,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,KAAK,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"tool-packages.d.ts","sourceRoot":"","sources":["../../src/config/tool-packages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,WAAW;IACxB,4EAA4E;IAC5E,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,KAAK,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAsLrD,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,eAAe,SAAS,CAAC"}
|
|
@@ -48,6 +48,8 @@ export const TOOL_PACKAGES = {
|
|
|
48
48
|
"aggregate_query",
|
|
49
49
|
"aggregate_grouped",
|
|
50
50
|
"discover_table_schema",
|
|
51
|
+
"discover_table_behavior",
|
|
52
|
+
"get_behavior_details",
|
|
51
53
|
"explain_field",
|
|
52
54
|
"lookup_table",
|
|
53
55
|
"lookup_columns",
|
|
@@ -185,6 +187,8 @@ export const TOOL_PACKAGES = {
|
|
|
185
187
|
"query_table",
|
|
186
188
|
"query_syslog",
|
|
187
189
|
"discover_table_schema",
|
|
190
|
+
"discover_table_behavior",
|
|
191
|
+
"get_behavior_details",
|
|
188
192
|
"lookup_table",
|
|
189
193
|
"get_current_scope",
|
|
190
194
|
"set_current_scope",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-packages.js","sourceRoot":"","sources":["../../src/config/tool-packages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AASH,MAAM,CAAC,MAAM,aAAa,GAAgC;IACtD,IAAI,EAAE;QACF,WAAW,EAAE,yDAAyD;QACtE,KAAK,EAAE,CAAC,GAAG,CAAC;KACf;IAED,QAAQ,EAAE;QACN,WAAW,EACP,2EAA2E;YAC3E,4EAA4E;YAC5E,2EAA2E;QAC/E,+EAA+E;QAC/E,KAAK,EAAE,CAAC,WAAW,CAAC;KACvB;IAED,SAAS,EAAE;QACP,WAAW,EACP,uEAAuE;YAC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tB,kBAAkB;YAClB,kBAAkB;SACrB;KACJ;IAED,cAAc,EAAE;QACZ,WAAW,EACP,oEAAoE;YACpE,8BAA8B;QAClC,KAAK,EAAE;YACH,WAAW;YACX,aAAa;YACb,gBAAgB;YAChB,kBAAkB;YAClB,wBAAwB;YACxB,kBAAkB;YAClB,mBAAmB;YACnB,wBAAwB;YACxB,oBAAoB;YACpB,kBAAkB;YAClB,yBAAyB;YACzB,cAAc;YACd,yBAAyB;YACzB,kBAAkB;YAClB,gBAAgB;YAChB,eAAe;YACf,aAAa;YACb,iBAAiB;YACjB,uBAAuB;YACvB,qBAAqB;YACrB,6BAA6B;YAC7B,uBAAuB;YACvB,uBAAuB;YACvB,oBAAoB;YACpB,iBAAiB;YACjB,uBAAuB;YACvB,kBAAkB;SACrB;KACJ;IAED,cAAc,EAAE;QACZ,WAAW,EACP,uEAAuE;YACvE,uDAAuD;QAC3D,KAAK,EAAE;YACH,cAAc;YACd,iBAAiB;YACjB,gBAAgB;YAChB,WAAW;YACX,WAAW;YACX,aAAa;YACb,yBAAyB;YACzB,kBAAkB;YAClB,gBAAgB;YAChB,4BAA4B;YAC5B,eAAe;YACf,aAAa;YACb,cAAc;YACd,uBAAuB;YACvB,cAAc;YACd,mBAAmB;YACnB,mBAAmB;YACnB,kBAAkB;SACrB;KACJ;CACJ,CAAC;AAEF,mEAAmE;AACnE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"tool-packages.js","sourceRoot":"","sources":["../../src/config/tool-packages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AASH,MAAM,CAAC,MAAM,aAAa,GAAgC;IACtD,IAAI,EAAE;QACF,WAAW,EAAE,yDAAyD;QACtE,KAAK,EAAE,CAAC,GAAG,CAAC;KACf;IAED,QAAQ,EAAE;QACN,WAAW,EACP,2EAA2E;YAC3E,4EAA4E;YAC5E,2EAA2E;QAC/E,+EAA+E;QAC/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,kBAAkB;YAClB,WAAW;YACX,YAAY;YACZ,aAAa;YACb,aAAa;YACb,aAAa;YACb,mBAAmB;YACnB,mBAAmB;YACnB,sBAAsB;YACtB,kBAAkB;YAClB,kBAAkB;SACrB;KACJ;IAED,cAAc,EAAE;QACZ,WAAW,EACP,oEAAoE;YACpE,8BAA8B;QAClC,KAAK,EAAE;YACH,WAAW;YACX,aAAa;YACb,gBAAgB;YAChB,kBAAkB;YAClB,wBAAwB;YACxB,kBAAkB;YAClB,mBAAmB;YACnB,wBAAwB;YACxB,oBAAoB;YACpB,kBAAkB;YAClB,yBAAyB;YACzB,cAAc;YACd,yBAAyB;YACzB,kBAAkB;YAClB,gBAAgB;YAChB,eAAe;YACf,aAAa;YACb,iBAAiB;YACjB,uBAAuB;YACvB,qBAAqB;YACrB,6BAA6B;YAC7B,uBAAuB;YACvB,uBAAuB;YACvB,oBAAoB;YACpB,iBAAiB;YACjB,uBAAuB;YACvB,kBAAkB;SACrB;KACJ;IAED,cAAc,EAAE;QACZ,WAAW,EACP,uEAAuE;YACvE,uDAAuD;QAC3D,KAAK,EAAE;YACH,cAAc;YACd,iBAAiB;YACjB,gBAAgB;YAChB,WAAW;YACX,WAAW;YACX,aAAa;YACb,yBAAyB;YACzB,kBAAkB;YAClB,gBAAgB;YAChB,4BAA4B;YAC5B,eAAe;YACf,aAAa;YACb,cAAc;YACd,uBAAuB;YACvB,yBAAyB;YACzB,sBAAsB;YACtB,cAAc;YACd,mBAAmB;YACnB,mBAAmB;YACnB,kBAAkB;SACrB;KACJ;CACJ,CAAC;AAEF,mEAAmE;AACnE,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
/** Register read-only discovery with optional immediate detail expansion. */
|
|
3
|
+
export declare function registerDiscoverTableBehaviorTool(server: McpServer): void;
|
|
4
|
+
/** Register batched retrieval of known artifacts without inventory scanning. */
|
|
5
|
+
export declare function registerGetBehaviorDetailsTool(server: McpServer): void;
|
|
6
|
+
//# sourceMappingURL=behavior.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"behavior.d.ts","sourceRoot":"","sources":["../../src/tools/behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AA8BpE,6EAA6E;AAC7E,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAyBzE;AAED,gFAAgF;AAChF,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAsBtE"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { BEHAVIOR_CATEGORIES, TableBehaviorDiscovery } from "@sonisoft/now-sdk-ext-core";
|
|
3
|
+
import { withConnectionRetry } from "../common/connection.js";
|
|
4
|
+
import { annotationsFor } from "../common/annotations.js";
|
|
5
|
+
const controls = {
|
|
6
|
+
instance: z.string().optional().describe("Instance auth alias; defaults to SN_AUTH_ALIAS."),
|
|
7
|
+
details: z.array(z.enum(["scripts", "definitions", "dependencies"])).optional().describe("Include requested details in this call. Default: compact configuration without script bodies or full definitions."),
|
|
8
|
+
dependency_depth: z.union([z.literal(0), z.literal(1)]).optional().describe("Expand one dependency level; requires details containing dependencies. Default 0."),
|
|
9
|
+
max_bytes: z.number().int().min(4096).max(1048576).optional().describe("JSON response budget, default 65536 bytes. Oversized detail is omitted whole with a retrieval reference."),
|
|
10
|
+
scope: z.string().optional().describe("Transaction scope for flow design-definition reads."),
|
|
11
|
+
};
|
|
12
|
+
function output(result) {
|
|
13
|
+
const items = "categories" in result ? result.categories.flatMap(section => section.items) : result.items;
|
|
14
|
+
const count = items.length;
|
|
15
|
+
const partial = "categories" in result ? result.categories.filter(section => section.status !== "complete").map(section => section.category) : [];
|
|
16
|
+
const remaining = "remainingReferences" in result ? result.remainingReferences.length : 0;
|
|
17
|
+
const hasWarnings = result.warnings.length || [...items, ...result.dependencies].some(item => item.warnings.length);
|
|
18
|
+
return {
|
|
19
|
+
structuredContent: { ...result },
|
|
20
|
+
content: [{ type: "text", text: `${count} configured behavior item(s). Details and source references are in structuredContent. Conditions were not evaluated.${partial.length ? ` Incomplete categories: ${partial.join(", ")}; inspect warnings and nextCursor.` : ""}${remaining ? ` Incomplete batch: ${remaining} reference(s) remain. Retry remainingReferences with a larger max_bytes or smaller batch.` : ""}${hasWarnings ? " Inspect warnings for omissions or failed reads." : ""}` }],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function failure(error) {
|
|
24
|
+
return { isError: true, content: [{ type: "text", text: `Behavior discovery failed: ${error instanceof Error ? error.message : "Unknown error"}` }] };
|
|
25
|
+
}
|
|
26
|
+
/** Register read-only discovery with optional immediate detail expansion. */
|
|
27
|
+
export function registerDiscoverTableBehaviorTool(server) {
|
|
28
|
+
server.registerTool("discover_table_behavior", {
|
|
29
|
+
title: "Discover Table Behavior",
|
|
30
|
+
annotations: annotationsFor("discover_table_behavior"),
|
|
31
|
+
description: "Discover configuration affecting a table: business rules, UI actions, client scripts, UI policies and field actions, server data policies, workflows, flow triggers and generic state models. Defaults to active behavior and applicable ancestors. Returns conditions, timing, provenance and completeness; configuration is not a prediction that anything will execute. Select categories and request scripts/definitions/dependencies immediately when already needed. Flow runtime triggers and design-time definitions are labeled separately. Follow per-category cursors with the same filters; use get_behavior_details for known references or a targeted batch. Empty results describe this account's visibility only.",
|
|
32
|
+
inputSchema: {
|
|
33
|
+
...controls,
|
|
34
|
+
table: z.string().regex(/^[a-zA-Z][a-zA-Z0-9_]*$/).describe("Target table, e.g. incident or change_request."),
|
|
35
|
+
categories: z.array(z.enum(BEHAVIOR_CATEGORIES)).min(1).optional().describe("Categories to inspect; default all eight."),
|
|
36
|
+
include_inherited: z.boolean().optional().describe("Include applicable ancestor behavior; default true."),
|
|
37
|
+
include_inactive: z.boolean().optional().describe("Include inactive/draft candidates where discoverable; default false."),
|
|
38
|
+
name: z.string().optional().describe("Metadata name contains this text."),
|
|
39
|
+
sys_ids: z.array(z.string().regex(/^[a-f0-9]{32}$/i)).max(50).optional().describe("Filter by metadata source sys_ids. For known flow IDs prefer get_behavior_details."),
|
|
40
|
+
limit: z.number().int().min(1).max(200).optional().describe("Items per category; default 50."),
|
|
41
|
+
cursors: z.record(z.enum(BEHAVIOR_CATEGORIES), z.string()).optional().describe("Per-category continuation tokens; retain original filters."),
|
|
42
|
+
},
|
|
43
|
+
}, async ({ instance, table, categories, include_inherited, include_inactive, name, sys_ids, limit, cursors, details, dependency_depth, max_bytes, scope }) => {
|
|
44
|
+
try {
|
|
45
|
+
return output(await withConnectionRetry(instance, sn => new TableBehaviorDiscovery(sn).discoverTableBehavior(table, {
|
|
46
|
+
categories, includeInherited: include_inherited, includeInactive: include_inactive, name, sysIds: sys_ids, limit, cursors,
|
|
47
|
+
details, dependencyDepth: dependency_depth, maxBytes: max_bytes, scope,
|
|
48
|
+
})));
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
return failure(error);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/** Register batched retrieval of known artifacts without inventory scanning. */
|
|
56
|
+
export function registerGetBehaviorDetailsTool(server) {
|
|
57
|
+
server.registerTool("get_behavior_details", {
|
|
58
|
+
title: "Get Behavior Details",
|
|
59
|
+
annotations: annotationsFor("get_behavior_details"),
|
|
60
|
+
description: "Read up to 50 known behavior references in one call without rediscovering a table. Pass references from discover_table_behavior or known kind/sourceTable/sysId values. Add details to request scripts, definitions and dependencies immediately; default is compact metadata. Flows accept sourceTable sys_hub_flow with kind flows; subflows, actions, Script Includes and decision tables can also be retrieved. Optional one-level dependency expansion is bounded and labels unresolved calls. Inaccessible and oversized details have explicit warnings and recovery references. This reads configuration only.",
|
|
61
|
+
inputSchema: {
|
|
62
|
+
...controls,
|
|
63
|
+
references: z.array(z.object({
|
|
64
|
+
kind: z.enum([...BEHAVIOR_CATEGORIES, "subflow", "action", "script_include", "decision_table"]),
|
|
65
|
+
sourceTable: z.string().regex(/^[a-zA-Z][a-zA-Z0-9_]*$/).describe("Source metadata table from discovery, e.g. sys_script or sys_hub_flow. Core validates allowed kind/table pairs."),
|
|
66
|
+
sysId: z.string().regex(/^[a-f0-9]{32}$/i),
|
|
67
|
+
})).min(1).max(50),
|
|
68
|
+
},
|
|
69
|
+
}, async ({ instance, references, details, dependency_depth, max_bytes, scope }) => {
|
|
70
|
+
try {
|
|
71
|
+
return output(await withConnectionRetry(instance, sn => new TableBehaviorDiscovery(sn).getBehaviorDetails(references.map(ref => ({ kind: ref.kind, sourceTable: ref.sourceTable, sysId: ref.sysId })), { details, dependencyDepth: dependency_depth, maxBytes: max_bytes, scope })));
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
return failure(error);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=behavior.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"behavior.js","sourceRoot":"","sources":["../../src/tools/behavior.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAwD,MAAM,4BAA4B,CAAC;AAC/I,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,QAAQ,GAAG;IACf,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;IAC3F,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAA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AAE,KAAK,EAAE,EAAE,EAAE;QACjF,IAAI,CAAC;YACH,OAAO,MAAM,CAAC,MAAM,mBAAmB,CAAC,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,sBAAsB,CAAC,EAAE,CAAC,CAAC,kBAAkB,CACvG,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,EAC3F,EAAE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,CAC3E,CAAC,CAAC,CAAC;QACN,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAAC,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;QAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAgJpE,gDAAgD;AAChD,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC;AAExD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAoHvD,CAAC;AAEF,yDAAyD;AACzD,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC"}
|
package/dist/tools/registry.js
CHANGED
|
@@ -20,6 +20,7 @@ import { registerGetAppDetailsTool, registerInstallFromAppRepoTool, registerInst
|
|
|
20
20
|
import { registerRunAtfTestSuiteTool, registerRunAtfTestTool, } from "../tools/atf.js";
|
|
21
21
|
import { registerGetAttachmentInfoTool, registerListAttachmentsTool, registerUploadAttachmentTool, } from "../tools/attachment.js";
|
|
22
22
|
import { registerBatchCreateRecordsTool, registerBatchUpdateRecordsTool, } from "../tools/batch.js";
|
|
23
|
+
import { registerDiscoverTableBehaviorTool, registerGetBehaviorDetailsTool } from "../tools/behavior.js";
|
|
23
24
|
import { registerGetCatalogCategoryTool, registerGetCatalogItemTool, registerListCatalogCategoriesTool, registerListCatalogItemVariablesTool, registerListCatalogItemsTool, registerSubmitCatalogRequestTool, } from "../tools/catalog.js";
|
|
24
25
|
import { registerGetCmdbRelationshipsTool, registerTraverseCmdbGraphTool, } from "../tools/cmdb.js";
|
|
25
26
|
import { registerAddCodeSearchTableTool, registerCodeSearchTool, registerListCodeSearchGroupsTool, registerListCodeSearchTablesTool, } from "../tools/codesearch.js";
|
|
@@ -81,6 +82,8 @@ export const TOOL_REGISTRY = {
|
|
|
81
82
|
code_search: registerCodeSearchTool,
|
|
82
83
|
list_code_search_groups: registerListCodeSearchGroupsTool,
|
|
83
84
|
list_code_search_tables: registerListCodeSearchTablesTool,
|
|
85
|
+
discover_table_behavior: registerDiscoverTableBehaviorTool,
|
|
86
|
+
get_behavior_details: registerGetBehaviorDetailsTool,
|
|
84
87
|
// ---- discovery
|
|
85
88
|
list_instance_tables: registerListInstanceTablesTool,
|
|
86
89
|
list_plugins: registerListPluginsTool,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/tools/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC1B,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,yBAAyB,EACzB,8BAA8B,EAC9B,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;IACvC,gBAAgB,EAAE,2BAA2B;IAC7C,aAAa;IACb,iBAAiB,EAAE,2BAA2B;IAC9C,gBAAgB,EAAE,0BAA0B;IAC5C,iBAAiB,EAAE,2BAA2B;IAC9C,kBAAkB;IAClB,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,sBAAsB;IACnC,YAAY;IACZ,gBAAgB,EAAE,0BAA0B;IAC5C,cAAc,EAAE,yBAAyB;IACzC,WAAW,EAAE,sBAAsB;IACnC,cAAc,EAAE,yBAAyB;IACzC,SAAS,EAAE,oBAAoB;IAC/B,gBAAgB,EAAE,2BAA2B;IAC7C,iBAAiB;IACjB,gBAAgB,EAAE,0BAA0B;IAC5C,iBAAiB,EAAE,2BAA2B;IAC9C,sBAAsB,EAAE,+BAA+B;IACvD,kBAAkB,EAAE,4BAA4B;IAChD,gBAAgB,EAAE,0BAA0B;IAC5C,uBAAuB,EAAE,gCAAgC;IACzD,sBAAsB,EAAE,+BAA+B;IACvD,gBAAgB;IAChB,eAAe,EAAE,0BAA0B;IAC3C,kBAAkB;IAClB,iBAAiB,EAAE,2BAA2B;IAC9C,kBAAkB,EAAE,4BAA4B;CACjD,CAAC;AAEF,yDAAyD;AACzD,MAAM,UAAU,YAAY;IACxB,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AACtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonisoft/now-sdk-ext-mcp",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.1",
|
|
4
4
|
"description": "MCP server for interacting with ServiceNow instances via @sonisoft/now-sdk-ext-core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"servicenow",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@servicenow/sdk-cli": "4.9.2",
|
|
49
49
|
"@servicenow/sdk-cli-core": "3.0.3",
|
|
50
50
|
"@servicenow/sdk-core": "4.9.2",
|
|
51
|
-
"@sonisoft/now-sdk-ext-core": "^6.1
|
|
52
|
-
"@sonisoft/sn-credstore": "1.1.
|
|
51
|
+
"@sonisoft/now-sdk-ext-core": "^6.5.1",
|
|
52
|
+
"@sonisoft/sn-credstore": "1.1.1",
|
|
53
53
|
"zod": "^3.23.8"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|