@jupiterone/jupiterone-mcp 2.4.3 → 2.5.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 (83) hide show
  1. package/README.md +22 -0
  2. package/dist/client/graphql/mutations.d.ts +3 -0
  3. package/dist/client/graphql/mutations.d.ts.map +1 -1
  4. package/dist/client/graphql/mutations.js +20 -1
  5. package/dist/client/graphql/mutations.js.map +1 -1
  6. package/dist/client/graphql/queries.d.ts +27 -0
  7. package/dist/client/graphql/queries.d.ts.map +1 -1
  8. package/dist/client/graphql/queries.js +186 -1
  9. package/dist/client/graphql/queries.js.map +1 -1
  10. package/dist/client/jupiterone-client.d.ts +26 -1
  11. package/dist/client/jupiterone-client.d.ts.map +1 -1
  12. package/dist/client/jupiterone-client.js +44 -3
  13. package/dist/client/jupiterone-client.js.map +1 -1
  14. package/dist/client/sanitize-error.d.ts +2 -0
  15. package/dist/client/sanitize-error.d.ts.map +1 -1
  16. package/dist/client/sanitize-error.js +9 -1
  17. package/dist/client/sanitize-error.js.map +1 -1
  18. package/dist/client/services/compliance-service.d.ts +61 -0
  19. package/dist/client/services/compliance-service.d.ts.map +1 -0
  20. package/dist/client/services/compliance-service.js +246 -0
  21. package/dist/client/services/compliance-service.js.map +1 -0
  22. package/dist/client/services/rule-service.d.ts +4 -6
  23. package/dist/client/services/rule-service.d.ts.map +1 -1
  24. package/dist/client/services/rule-service.js +6 -21
  25. package/dist/client/services/rule-service.js.map +1 -1
  26. package/dist/generated/description-map.d.ts.map +1 -1
  27. package/dist/generated/description-map.js +736 -4
  28. package/dist/generated/description-map.js.map +1 -1
  29. package/dist/server/mcp-server.d.ts.map +1 -1
  30. package/dist/server/mcp-server.js +1 -0
  31. package/dist/server/mcp-server.js.map +1 -1
  32. package/dist/server/tools/account.d.ts.map +1 -1
  33. package/dist/server/tools/account.js +4 -4
  34. package/dist/server/tools/account.js.map +1 -1
  35. package/dist/server/tools/compliance/attestations.d.ts +3 -0
  36. package/dist/server/tools/compliance/attestations.d.ts.map +1 -0
  37. package/dist/server/tools/compliance/attestations.js +560 -0
  38. package/dist/server/tools/compliance/attestations.js.map +1 -0
  39. package/dist/server/tools/compliance/controls.d.ts +40 -0
  40. package/dist/server/tools/compliance/controls.d.ts.map +1 -0
  41. package/dist/server/tools/compliance/controls.js +865 -0
  42. package/dist/server/tools/compliance/controls.js.map +1 -0
  43. package/dist/server/tools/compliance/index.d.ts +21 -0
  44. package/dist/server/tools/compliance/index.d.ts.map +1 -0
  45. package/dist/server/tools/compliance/index.js +45 -0
  46. package/dist/server/tools/compliance/index.js.map +1 -0
  47. package/dist/server/tools/compliance/schemas.d.ts +365 -0
  48. package/dist/server/tools/compliance/schemas.d.ts.map +1 -0
  49. package/dist/server/tools/compliance/schemas.js +292 -0
  50. package/dist/server/tools/compliance/schemas.js.map +1 -0
  51. package/dist/server/tools/compliance/shared.d.ts +141 -0
  52. package/dist/server/tools/compliance/shared.d.ts.map +1 -0
  53. package/dist/server/tools/compliance/shared.js +231 -0
  54. package/dist/server/tools/compliance/shared.js.map +1 -0
  55. package/dist/server/tools/compliance/summary.d.ts +11 -0
  56. package/dist/server/tools/compliance/summary.d.ts.map +1 -0
  57. package/dist/server/tools/compliance/summary.js +897 -0
  58. package/dist/server/tools/compliance/summary.js.map +1 -0
  59. package/dist/server/tools/errors.d.ts +17 -1
  60. package/dist/server/tools/errors.d.ts.map +1 -1
  61. package/dist/server/tools/errors.js +59 -4
  62. package/dist/server/tools/errors.js.map +1 -1
  63. package/dist/server/tools/index.d.ts.map +1 -1
  64. package/dist/server/tools/index.js +2 -0
  65. package/dist/server/tools/index.js.map +1 -1
  66. package/dist/server/tools/rules.d.ts +35 -1
  67. package/dist/server/tools/rules.d.ts.map +1 -1
  68. package/dist/server/tools/rules.js +252 -9
  69. package/dist/server/tools/rules.js.map +1 -1
  70. package/dist/server/tools/threat.js +1 -1
  71. package/dist/server/tools/threat.js.map +1 -1
  72. package/dist/server/tools/usage.d.ts +6 -0
  73. package/dist/server/tools/usage.d.ts.map +1 -1
  74. package/dist/server/tools/usage.js +257 -6
  75. package/dist/server/tools/usage.js.map +1 -1
  76. package/dist/types/jupiterone.d.ts +247 -0
  77. package/dist/types/jupiterone.d.ts.map +1 -1
  78. package/dist/utils/expires-on.d.ts +24 -0
  79. package/dist/utils/expires-on.d.ts.map +1 -0
  80. package/dist/utils/expires-on.js +79 -0
  81. package/dist/utils/expires-on.js.map +1 -0
  82. package/node_modules/dtrace-provider/build/Makefile +1 -1
  83. package/package.json +1 -1
@@ -0,0 +1,231 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ownerEmail = exports.DEADLINE_PASSED = exports.MAX_CANDIDATES = exports.MAX_CONTROL_SEARCH_PAGES = exports.CONTROL_SEARCH_PAGE_LIMIT = exports.MAX_OU_NAMESPACES = exports.DEFAULT_CONTROL_PAGE_LIMIT = exports.MAX_FAILING_CONTROL_PAGES = exports.FAILING_CONTROLS_PAGE_LIMIT = exports.DEFAULT_EXPIRING_WITHIN_DAYS = exports.EVALUATION_FAILURE_TAG = exports.EVALUATION_PAGE_LIMIT = exports.EVALUATION_WINDOW_MS = exports.SUMMARY_READ_DEADLINE_MS = exports.WRITE_READ_DEADLINE_MS = exports.GET_CONTROL_DEADLINE_MS = exports.READ_FANOUT_DEADLINE_MS = exports.MAX_EXPIRED_ATTESTATIONS = exports.STATS_CHUNK_SIZE = exports.MAX_REQUIREMENT_LOOKUPS = exports.MAX_EVALUATION_LOOKUPS = exports.MAX_NAMED_CONTROLS = exports.CONTROL_ID_FORBIDDEN = exports.ACCESS_DENIED_HINT = void 0;
4
+ exports.isNotFound = isNotFound;
5
+ exports.degradeOnAccessDenied = degradeOnAccessDenied;
6
+ exports.withDeadline = withDeadline;
7
+ exports.timed = timed;
8
+ exports.readSubdomain = readSubdomain;
9
+ exports.subdomainBy = subdomainBy;
10
+ exports.frameworkUrl = frameworkUrl;
11
+ exports.controlUrl = controlUrl;
12
+ exports.refusal = refusal;
13
+ exports.validationError = validationError;
14
+ exports.toIso = toIso;
15
+ exports.projectAttestation = projectAttestation;
16
+ exports.frameworkNameMap = frameworkNameMap;
17
+ exports.namesFor = namesFor;
18
+ exports.walkControls = walkControls;
19
+ const zod_1 = require("zod");
20
+ const sanitize_error_js_1 = require("../../../client/sanitize-error.js");
21
+ const appUrl_js_1 = require("../../../utils/appUrl.js");
22
+ const expires_on_js_1 = require("../../../utils/expires-on.js");
23
+ const errors_js_1 = require("../errors.js");
24
+ /**
25
+ * What every compliance tool shares: the time budgets and caps, deadline and timing helpers,
26
+ * refusals, app links, date helpers and the access-denied hint.
27
+ */
28
+ // Written for the reason-led access-denied frame, which already leads with the backend's own
29
+ // sentence ("Feature access not allowed to CCM", "Live controls limit reached …"), so this does not
30
+ // restate it.
31
+ exports.ACCESS_DENIED_HINT = "The compliance tools also need the account's Compliance (CCM) feature and control read " +
32
+ "permission; attestation writes need edit permission on the control's resource group, and " +
33
+ 'listing attestations without a controlId needs CCM read-admin. If the message names a feature ' +
34
+ 'or a limit, that is the cause — ask an account admin rather than re-authenticating.';
35
+ /** The characters the API rejects in a control id since apps PR #782 relaxed it (2026-10-13). */
36
+ exports.CONTROL_ID_FORBIDDEN = /['"\\]/;
37
+ /** Controls the summary names in its one graph read; the rest keep a null name. */
38
+ exports.MAX_NAMED_CONTROLS = 100;
39
+ /** Control tests whose latest evaluation `get-control` looks up; later tests are `skipped`. */
40
+ exports.MAX_EVALUATION_LOOKUPS = 10;
41
+ /** Failing controls whose requirements a summary drill reads; the rest are counted as skipped. */
42
+ exports.MAX_REQUIREMENT_LOOKUPS = 50;
43
+ /** Frameworks per scorecard-counts read; the summary issues every chunk at once. */
44
+ exports.STATS_CHUNK_SIZE = 10;
45
+ /** Expired attestations a summary lists, most recently expired first; past it, it says so. */
46
+ exports.MAX_EXPIRED_ATTESTATIONS = 50;
47
+ /**
48
+ * get-control's evaluation lookups: the time they get once the control read returns, the read-side
49
+ * diagnosis budget (`DIAGNOSIS_BUDGET_MS`, value-probe.ts). A lookup still running at the deadline
50
+ * is abandoned as skipped.
51
+ */
52
+ exports.READ_FANOUT_DEADLINE_MS = 20_000;
53
+ /**
54
+ * The latest get-control's evaluation lookups may run, from request start, so the handler returns
55
+ * inside the remote's 55 s abort. Counted from request start alone, the lookup budget went to the
56
+ * control read: one read took 37.7 s on j1dev and every lookup was skipped (2026-10-14).
57
+ */
58
+ exports.GET_CONTROL_DEADLINE_MS = 45_000;
59
+ /**
60
+ * The latest an attestation write's read of its control may run, from request start. On j1dev
61
+ * every create and revoke that hit the remote's 55 s abort had in fact been written, and the caller
62
+ * saw an error for a write that landed (2026-10-15); past this the write answers without the read.
63
+ */
64
+ exports.WRITE_READ_DEADLINE_MS = 45_000;
65
+ /**
66
+ * Race deadline, from request start, for the summary's decoration reads: the drill's requirement
67
+ * lookups, its no-data count, and the expiring attestations' names and framework scope. At 20 s
68
+ * every one of four drills on j1dev skipped every lookup (2026-10-14): the framework list took
69
+ * 3.9–4.3 s and the failing-controls read 10.6–19.3 s before any lookup ran. The remote aborts at
70
+ * 55 s, and the one unraced read, the stats, took 29 s at worst on dev's 63 frameworks and runs in
71
+ * parallel with these.
72
+ */
73
+ exports.SUMMARY_READ_DEADLINE_MS = 35_000;
74
+ /** A daily-polled test fits in one page either way the backend sorts. */
75
+ exports.EVALUATION_WINDOW_MS = 30 * expires_on_js_1.DAY_MS;
76
+ exports.EVALUATION_PAGE_LIMIT = 50;
77
+ exports.EVALUATION_FAILURE_TAG = 'EVALUATION_FAILURE';
78
+ exports.DEFAULT_EXPIRING_WITHIN_DAYS = 30;
79
+ exports.FAILING_CONTROLS_PAGE_LIMIT = 250;
80
+ exports.MAX_FAILING_CONTROL_PAGES = 2;
81
+ exports.DEFAULT_CONTROL_PAGE_LIMIT = 50;
82
+ exports.MAX_OU_NAMESPACES = 10;
83
+ exports.CONTROL_SEARCH_PAGE_LIMIT = 50;
84
+ exports.MAX_CONTROL_SEARCH_PAGES = 4;
85
+ /**
86
+ * Candidates an `ambiguous` outcome returns. A short name matches hundreds of controls or units,
87
+ * and past a couple of dozen the list stops helping the caller choose; `candidateCount` keeps the
88
+ * total.
89
+ */
90
+ exports.MAX_CANDIDATES = 25;
91
+ /**
92
+ * The gateway's not-found rejection. Narrow on purpose: anything else is a real failure and must
93
+ * reach the generic envelope, not read as an absence.
94
+ */
95
+ function isNotFound(error) {
96
+ return (error instanceof sanitize_error_js_1.JupiterOneApiError &&
97
+ (error.code === 'NOT_FOUND' || /not found/i.test(error.message)));
98
+ }
99
+ /**
100
+ * The one condition under which a compliance sub-call degrades instead of failing the tool: a
101
+ * refusal of the attestations read, which needs more permission than the rest of the response.
102
+ * `'unavailable'` means "could not read", never "none".
103
+ */
104
+ function degradeOnAccessDenied(error) {
105
+ if ((0, errors_js_1.accessDeniedStatus)(error) !== null)
106
+ return 'unavailable';
107
+ throw error;
108
+ }
109
+ exports.DEADLINE_PASSED = Symbol('deadline-passed');
110
+ /** Settle with the promise, or with DEADLINE_PASSED at `deadlineAt`, whichever comes first. */
111
+ async function withDeadline(promise, deadlineAt) {
112
+ let timer;
113
+ const deadline = new Promise((resolve) => {
114
+ timer = setTimeout(() => resolve(exports.DEADLINE_PASSED), Math.max(0, deadlineAt - Date.now()));
115
+ });
116
+ try {
117
+ return await Promise.race([promise, deadline]);
118
+ }
119
+ finally {
120
+ clearTimeout(timer);
121
+ }
122
+ }
123
+ async function timed(timings, phase, work) {
124
+ const started = Date.now();
125
+ try {
126
+ return await work();
127
+ }
128
+ finally {
129
+ timings[phase] = Date.now() - started;
130
+ }
131
+ }
132
+ /**
133
+ * The account subdomain app links are built on, read once per call alongside the other reads. A
134
+ * failed read gives every link `''`, constructAppUrl's own "no link", rather than failing a read
135
+ * whose answer does not depend on its links.
136
+ */
137
+ async function readSubdomain(client, timings = {}) {
138
+ try {
139
+ return (await timed(timings, 'account', () => client.getAccountInfo())).subdomain;
140
+ }
141
+ catch (error) {
142
+ console.error('Error reading the account subdomain for app links:', error);
143
+ return undefined;
144
+ }
145
+ }
146
+ /** The account subdomain, or none when its read is not back by `deadlineAt`. */
147
+ async function subdomainBy(read, deadlineAt) {
148
+ const settled = await withDeadline(read, deadlineAt);
149
+ return settled === exports.DEADLINE_PASSED ? undefined : settled;
150
+ }
151
+ /**
152
+ * CCM's app pages, at the routes the web app serves (`artifacts/app/src/views/controls`). The route
153
+ * loaders pass the id straight to the CCM API, so these ids work as given; they are encoded because
154
+ * UPLOAD and JSON control ids can carry spaces (`ccm_c_JSON_A.5.1 Policies`).
155
+ */
156
+ function frameworkUrl(frameworkId, subdomain) {
157
+ return (0, appUrl_js_1.constructAppUrl)(`controls/frameworks/${encodeURIComponent(frameworkId)}`, subdomain);
158
+ }
159
+ function controlUrl(controlId, subdomain) {
160
+ return controlId
161
+ ? (0, appUrl_js_1.constructAppUrl)(`controls/controls/${encodeURIComponent(controlId)}`, subdomain)
162
+ : '';
163
+ }
164
+ /**
165
+ * An error result whose text leads with its outcome word. Hosts that show an error's text alone
166
+ * never see `structuredContent`, and the tester reported twice that refusals carried no visible
167
+ * outcome (2026-10-14).
168
+ */
169
+ function refusal(outcome, text, details = {}) {
170
+ return {
171
+ content: [{ type: 'text', text: `${outcome}: ${text}` }],
172
+ isError: true,
173
+ structuredContent: { outcome, ...details },
174
+ };
175
+ }
176
+ /** A cross-field input failure the schema cannot express. Nothing was called. */
177
+ function validationError(text) {
178
+ return refusal('invalid_input', text);
179
+ }
180
+ /** An API timestamp (epoch ms as a number or a digit string, or a date string) as ISO 8601. */
181
+ function toIso(value) {
182
+ if (value === null || value === undefined || value === '')
183
+ return null;
184
+ const ms = typeof value === 'number' ? value : /^\d+$/.test(value) ? Number(value) : Date.parse(value);
185
+ return Number.isFinite(ms) && Math.abs(ms) <= expires_on_js_1.MAX_DATE_MS ? new Date(ms).toISOString() : null;
186
+ }
187
+ function projectAttestation(attestation) {
188
+ return {
189
+ id: attestation.id,
190
+ subject: attestation.subject,
191
+ description: attestation.description,
192
+ state: attestation.state,
193
+ expiresOn: attestation.expiresOn,
194
+ expiresOnIso: toIso(attestation.expiresOn),
195
+ owner: attestation.owner,
196
+ author: attestation.author,
197
+ documentLink: attestation.documentLink,
198
+ createdOn: attestation.createdOn,
199
+ controlId: attestation.controlId,
200
+ };
201
+ }
202
+ function frameworkNameMap(frameworks) {
203
+ return new Map(frameworks.map((framework) => [framework.id, framework.name]));
204
+ }
205
+ function namesFor(ids, names) {
206
+ return (ids ?? []).map((id) => names.get(id) ?? null);
207
+ }
208
+ /**
209
+ * Up to `maxPages` pages of controls matching `filter`. `complete` is false when the cap stopped
210
+ * the walk with pages left. A page that claims a successor without a cursor cannot be followed:
211
+ * re-requesting with no cursor would return the first page again as if it were the next.
212
+ */
213
+ async function walkControls(client, filter, page) {
214
+ const items = [];
215
+ let cursor;
216
+ for (let read = 0; read < page.maxPages; read++) {
217
+ const result = await client.listControls({ limit: page.limit, cursor, filter });
218
+ items.push(...result.items);
219
+ if (!result.pageInfo.hasNextPage)
220
+ return { items, complete: true };
221
+ if (!result.pageInfo.endCursor) {
222
+ throw new Error('Invalid response structure from JupiterOne API: ' +
223
+ 'controls reports another page without an endCursor');
224
+ }
225
+ cursor = result.pageInfo.endCursor;
226
+ }
227
+ return { items, complete: false };
228
+ }
229
+ const ownerEmail = () => zod_1.z.email();
230
+ exports.ownerEmail = ownerEmail;
231
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/server/tools/compliance/shared.ts"],"names":[],"mappings":";;;AA2FA,gCAKC;AAOD,sDAGC;AAKD,oCAaC;AASD,sBAWC;AAOD,sCAUC;AAGD,kCAMC;AAOD,oCAEC;AAED,gCAOC;AAOD,0BAUC;AAGD,0CAEC;AAGD,sBAKC;AAED,gDAcC;AAED,4CAEC;AAED,4BAEC;AAOD,oCAoBC;AA7QD,6BAAwB;AAExB,yEAAuE;AAOvE,wDAA2D;AAC3D,gEAAmE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,UAAU,GAAG,GAAG,EAAE,CAAC,OAAC,CAAC,KAAK,EAAE,CAAC;AAA7B,QAAA,UAAU,cAAmB"}
@@ -0,0 +1,11 @@
1
+ import { type ToolDefinition } from '../types.js';
2
+ /**
3
+ * Rows per page of a graph query. The query service refuses a larger LIMIT: on ECS 186 both drill
4
+ * queries at LIMIT 1000 failed with `"limit" must be a value between 1 and 250`, and every drill
5
+ * fell back to the API (2026-10-15).
6
+ */
7
+ export declare const GRAPH_PAGE_SIZE = 250;
8
+ /** Pages a drill query follows its cursor through: up to 1,000 rows. Past it, it is cut short. */
9
+ export declare const GRAPH_MAX_PAGES = 4;
10
+ export declare const summaryTools: ToolDefinition[];
11
+ //# sourceMappingURL=summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summary.d.ts","sourceRoot":"","sources":["../../../../src/server/tools/compliance/summary.ts"],"names":[],"mappings":"AAaA,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AA6UzE;;;;GAIG;AACH,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,kGAAkG;AAClG,eAAO,MAAM,eAAe,IAAI,CAAC;AAg0BjC,eAAO,MAAM,YAAY,EAAE,cAAc,EAqDxC,CAAC"}