@jupiterone/jupiterone-mcp 0.2.1 → 0.3.0

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 (74) hide show
  1. package/dist/client/graphql/mutations.d.ts +0 -4
  2. package/dist/client/graphql/mutations.d.ts.map +1 -1
  3. package/dist/client/graphql/mutations.js +1 -78
  4. package/dist/client/graphql/mutations.js.map +1 -1
  5. package/dist/client/graphql/queries.d.ts +3 -3
  6. package/dist/client/graphql/queries.d.ts.map +1 -1
  7. package/dist/client/graphql/queries.js +3 -0
  8. package/dist/client/graphql/queries.js.map +1 -1
  9. package/dist/client/jupiterone-client.d.ts +0 -21
  10. package/dist/client/jupiterone-client.d.ts.map +1 -1
  11. package/dist/client/jupiterone-client.js +2 -20
  12. package/dist/client/jupiterone-client.js.map +1 -1
  13. package/dist/client/sanitize-error.d.ts +30 -0
  14. package/dist/client/sanitize-error.d.ts.map +1 -0
  15. package/dist/client/sanitize-error.js +63 -0
  16. package/dist/client/sanitize-error.js.map +1 -0
  17. package/dist/client/services/j1ql-service.d.ts +0 -5
  18. package/dist/client/services/j1ql-service.d.ts.map +1 -1
  19. package/dist/client/services/j1ql-service.js +0 -8
  20. package/dist/client/services/j1ql-service.js.map +1 -1
  21. package/dist/client/services/rule-service.d.ts +1 -15
  22. package/dist/client/services/rule-service.d.ts.map +1 -1
  23. package/dist/client/services/rule-service.js +0 -21
  24. package/dist/client/services/rule-service.js.map +1 -1
  25. package/dist/generated/description-map.d.ts.map +1 -1
  26. package/dist/generated/description-map.js +4 -9
  27. package/dist/generated/description-map.js.map +1 -1
  28. package/dist/server/mcp-server.d.ts +14 -7
  29. package/dist/server/mcp-server.d.ts.map +1 -1
  30. package/dist/server/mcp-server.js +73 -1694
  31. package/dist/server/mcp-server.js.map +1 -1
  32. package/dist/server/tools/account.d.ts +3 -0
  33. package/dist/server/tools/account.d.ts.map +1 -0
  34. package/dist/server/tools/account.js +29 -0
  35. package/dist/server/tools/account.js.map +1 -0
  36. package/dist/server/tools/alerts.d.ts +3 -0
  37. package/dist/server/tools/alerts.d.ts.map +1 -0
  38. package/dist/server/tools/alerts.js +60 -0
  39. package/dist/server/tools/alerts.js.map +1 -0
  40. package/dist/server/tools/dashboards.d.ts +3 -0
  41. package/dist/server/tools/dashboards.d.ts.map +1 -0
  42. package/dist/server/tools/dashboards.js +224 -0
  43. package/dist/server/tools/dashboards.js.map +1 -0
  44. package/dist/server/tools/errors.d.ts +23 -0
  45. package/dist/server/tools/errors.d.ts.map +1 -0
  46. package/dist/server/tools/errors.js +64 -0
  47. package/dist/server/tools/errors.js.map +1 -0
  48. package/dist/server/tools/index.d.ts +4 -0
  49. package/dist/server/tools/index.d.ts.map +1 -0
  50. package/dist/server/tools/index.js +19 -0
  51. package/dist/server/tools/index.js.map +1 -0
  52. package/dist/server/tools/integrations.d.ts +3 -0
  53. package/dist/server/tools/integrations.d.ts.map +1 -0
  54. package/dist/server/tools/integrations.js +244 -0
  55. package/dist/server/tools/integrations.js.map +1 -0
  56. package/dist/server/tools/j1ql.d.ts +3 -0
  57. package/dist/server/tools/j1ql.d.ts.map +1 -0
  58. package/dist/server/tools/j1ql.js +69 -0
  59. package/dist/server/tools/j1ql.js.map +1 -0
  60. package/dist/server/tools/rules.d.ts +3 -0
  61. package/dist/server/tools/rules.d.ts.map +1 -0
  62. package/dist/server/tools/rules.js +536 -0
  63. package/dist/server/tools/rules.js.map +1 -0
  64. package/dist/server/tools/telemetry.d.ts +18 -0
  65. package/dist/server/tools/telemetry.d.ts.map +1 -0
  66. package/dist/server/tools/telemetry.js +12 -0
  67. package/dist/server/tools/telemetry.js.map +1 -0
  68. package/dist/server/tools/types.d.ts +42 -0
  69. package/dist/server/tools/types.d.ts.map +1 -0
  70. package/dist/server/tools/types.js +16 -0
  71. package/dist/server/tools/types.js.map +1 -0
  72. package/dist/types/jupiterone.d.ts +0 -32
  73. package/dist/types/jupiterone.d.ts.map +1 -1
  74. package/package.json +7 -4
@@ -828,13 +828,6 @@ Based on confirmed working examples, use this template:
828
828
  This format ensures reliable rule creation and helps avoid common pitfalls encountered during rule development.
829
829
  After creating a rule, you should include the rule's url in your message to the user.
830
830
  `,
831
- "create-j1ql-from-natural-language.md": `# JupiterOne Natural Language to J1QL Converter
832
-
833
- **Purpose**: Converts natural language queries into JupiterOne Query Language (J1QL) syntax using AI-powered translation.
834
- Unless the user gives a specific query to run, this should always be used for determing a query to use for any (but not exclusively) of the following:
835
- - Queries for rules
836
- - Queries for widgets
837
- - Queries to answer a user's question regarding their data in jupiterone`,
838
831
  "evaluate-rule.md": `# Evaluate Rule Tool
839
832
 
840
833
  Manually trigger the evaluation of a JupiterOne alert rule. This tool forces an immediate evaluation of the rule's conditions and returns the results.
@@ -851,7 +844,7 @@ Evaluate a specific rule:
851
844
  \`\`\``,
852
845
  "execute-j1ql-query.md": `# JupiterOne J1QL Query Executor
853
846
 
854
- **Purpose**: Executes JupiterOne Query Language (J1QL) queries against your JupiterOne data and returns the results. This tool is used to directly run J1QL queries that have been created, either manually or through the natural language converter.
847
+ **Purpose**: Executes JupiterOne Query Language (J1QL) queries against your JupiterOne data and returns the results. This tool is used to directly run J1QL queries.
855
848
 
856
849
  ## Recommended Query Development Workflow
857
850
 
@@ -1316,7 +1309,7 @@ Get all dashboards:
1316
1309
  Get all available integration definitions in your JupiterOne account. This tool returns a list of integration definitions that can be used to create integration instances. Integration definitions define the types of integrations available (like AWS, Azure, GitHub, etc.) and their configuration requirements. If a user is needing a specific integration instance id for something such as a rule action, you will want to start here and then use the \`get-integration-instances\` tool. Each integration definition will have a Name and a Title field, you should use this to identify which definition is correct for what the user is looking for. As an example, if the user wants to send a slack notification as a part of a rule action, you would want to pull all of the integration definitions and find any that have Slack in the name and/or title. If there are multiple, then clarify the differences to the user and allow them to guide you on which one is correct.
1317
1310
 
1318
1311
  ## Parameters
1319
- - \`cursor\` (optional): Pagination cursor to get the next page of results. Use the \`endCursor\` from a previous response's \`pageInfo\`. When you are needing to find a specific type of integration, you will want to query all of the available pages until there are no more left to query so you can select from the entire list.
1312
+ - \`cursor\` (optional): Pagination cursor to get the next page of results. The response includes a \`pageInfo\`; when \`pageInfo.hasNextPage\` is true, call again with \`cursor\` set to \`pageInfo.endCursor\`, and stop once it is false. When you need a specific type of integration, page through the full list so you can select from all definitions.
1320
1313
  - \`includeConfig\` (optional): Whether to include configuration fields in the response. When true, returns detailed configuration schemas for each integration type. Typically this should be false or omitted entirely.
1321
1314
 
1322
1315
  ## Example Usage
@@ -1364,6 +1357,7 @@ Get all integration instances in your JupiterOne account. This tool returns a li
1364
1357
  ## Parameters
1365
1358
  - \`definitionId\` (optional): Filter instances by a specific integration definition ID. Use this to get only instances of a particular integration type.
1366
1359
  - \`limit\` (optional): Maximum number of instances to return (between 1 and 1000).
1360
+ - \`cursor\` (optional): Pagination cursor. The response includes a \`pageInfo\` object; when \`pageInfo.hasNextPage\` is true, call this tool again with \`cursor\` set to \`pageInfo.endCursor\` to fetch the next page.
1367
1361
 
1368
1362
  ## Example Usage
1369
1363
  Get all integration instances:
@@ -1418,6 +1412,7 @@ List integration job execution history. This tool returns information about inte
1418
1412
  - \`integrationInstanceIds\` (optional): Array of instance IDs to filter jobs
1419
1413
  - \`status\` (optional): Filter by job status (PENDING, RUNNING, COMPLETED, FAILED, CANCELLED)
1420
1414
  - \`size\` (optional): Maximum number of jobs to return (1-1000)
1415
+ - \`cursor\` (optional): Pagination cursor. The response includes a \`pageInfo\` object; when \`pageInfo.hasNextPage\` is true, call this tool again with \`cursor\` set to \`pageInfo.endCursor\` to fetch the next page.
1421
1416
 
1422
1417
  ## Example Usage
1423
1418
  Get all integration jobs:
@@ -1 +1 @@
1
- {"version":3,"file":"description-map.js","sourceRoot":"","sources":["../../src/generated/description-map.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAC9B,QAAA,cAAc,GAA2B;IACpD,4BAA4B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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/sdk/server/mcp.js';
2
2
  import { JupiterOneConfig } from '../types/jupiterone.js';
3
+ import { type ToolTelemetry } from './tools/telemetry.js';
4
+ export interface JupiterOneMcpServerOptions {
5
+ /** Sink for per-call telemetry. Defaults to a stderr writer (stdio-safe). */
6
+ telemetry?: ToolTelemetry;
7
+ }
3
8
  export declare class JupiterOneMcpServer {
4
9
  server: McpServer;
5
10
  private client;
6
11
  private validator;
7
12
  private hasEnvironmentAccount;
8
- constructor(config: JupiterOneConfig);
9
- private registerTool;
10
- private setupTools;
11
- private validateQueries;
12
- private validateWidgetQueries;
13
- private createValidationErrorResponse;
14
- private createQueryErrorResponse;
13
+ private telemetry;
14
+ constructor(config: JupiterOneConfig, options?: JupiterOneMcpServerOptions);
15
+ /**
16
+ * Single registration chokepoint: injects the per-request `accountId` parameter when no env
17
+ * account is configured, then wraps every handler with account-scoped client cloning, sanitized
18
+ * error formatting (C2), and per-call telemetry (O1).
19
+ */
20
+ private register;
21
+ private invoke;
15
22
  start(): Promise<void>;
16
23
  stop(): Promise<void>;
17
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../../src/server/mcp-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAIpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAa1D,qBAAa,mBAAmB;IACvB,MAAM,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,qBAAqB,CAAU;gBAE3B,MAAM,EAAE,gBAAgB;IAWpC,OAAO,CAAC,YAAY;IAkDpB,OAAO,CAAC,UAAU;YAg0DJ,eAAe;YAsBf,qBAAqB;IAQnC,OAAO,CAAC,6BAA6B;IAkBrC,OAAO,CAAC,wBAAwB;IAc1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,IAAI,IAAI,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