@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.
- package/dist/client/graphql/mutations.d.ts +0 -4
- package/dist/client/graphql/mutations.d.ts.map +1 -1
- package/dist/client/graphql/mutations.js +1 -78
- package/dist/client/graphql/mutations.js.map +1 -1
- package/dist/client/graphql/queries.d.ts +3 -3
- package/dist/client/graphql/queries.d.ts.map +1 -1
- package/dist/client/graphql/queries.js +3 -0
- package/dist/client/graphql/queries.js.map +1 -1
- package/dist/client/jupiterone-client.d.ts +0 -21
- package/dist/client/jupiterone-client.d.ts.map +1 -1
- package/dist/client/jupiterone-client.js +2 -20
- package/dist/client/jupiterone-client.js.map +1 -1
- package/dist/client/sanitize-error.d.ts +30 -0
- package/dist/client/sanitize-error.d.ts.map +1 -0
- package/dist/client/sanitize-error.js +63 -0
- package/dist/client/sanitize-error.js.map +1 -0
- package/dist/client/services/j1ql-service.d.ts +0 -5
- package/dist/client/services/j1ql-service.d.ts.map +1 -1
- package/dist/client/services/j1ql-service.js +0 -8
- package/dist/client/services/j1ql-service.js.map +1 -1
- package/dist/client/services/rule-service.d.ts +1 -15
- package/dist/client/services/rule-service.d.ts.map +1 -1
- package/dist/client/services/rule-service.js +0 -21
- package/dist/client/services/rule-service.js.map +1 -1
- package/dist/generated/description-map.d.ts.map +1 -1
- package/dist/generated/description-map.js +4 -9
- package/dist/generated/description-map.js.map +1 -1
- package/dist/server/mcp-server.d.ts +14 -7
- package/dist/server/mcp-server.d.ts.map +1 -1
- package/dist/server/mcp-server.js +73 -1694
- package/dist/server/mcp-server.js.map +1 -1
- package/dist/server/tools/account.d.ts +3 -0
- package/dist/server/tools/account.d.ts.map +1 -0
- package/dist/server/tools/account.js +29 -0
- package/dist/server/tools/account.js.map +1 -0
- package/dist/server/tools/alerts.d.ts +3 -0
- package/dist/server/tools/alerts.d.ts.map +1 -0
- package/dist/server/tools/alerts.js +60 -0
- package/dist/server/tools/alerts.js.map +1 -0
- package/dist/server/tools/dashboards.d.ts +3 -0
- package/dist/server/tools/dashboards.d.ts.map +1 -0
- package/dist/server/tools/dashboards.js +224 -0
- package/dist/server/tools/dashboards.js.map +1 -0
- package/dist/server/tools/errors.d.ts +23 -0
- package/dist/server/tools/errors.d.ts.map +1 -0
- package/dist/server/tools/errors.js +64 -0
- package/dist/server/tools/errors.js.map +1 -0
- package/dist/server/tools/index.d.ts +4 -0
- package/dist/server/tools/index.d.ts.map +1 -0
- package/dist/server/tools/index.js +19 -0
- package/dist/server/tools/index.js.map +1 -0
- package/dist/server/tools/integrations.d.ts +3 -0
- package/dist/server/tools/integrations.d.ts.map +1 -0
- package/dist/server/tools/integrations.js +244 -0
- package/dist/server/tools/integrations.js.map +1 -0
- package/dist/server/tools/j1ql.d.ts +3 -0
- package/dist/server/tools/j1ql.d.ts.map +1 -0
- package/dist/server/tools/j1ql.js +69 -0
- package/dist/server/tools/j1ql.js.map +1 -0
- package/dist/server/tools/rules.d.ts +3 -0
- package/dist/server/tools/rules.d.ts.map +1 -0
- package/dist/server/tools/rules.js +536 -0
- package/dist/server/tools/rules.js.map +1 -0
- package/dist/server/tools/telemetry.d.ts +18 -0
- package/dist/server/tools/telemetry.d.ts.map +1 -0
- package/dist/server/tools/telemetry.js +12 -0
- package/dist/server/tools/telemetry.js.map +1 -0
- package/dist/server/tools/types.d.ts +42 -0
- package/dist/server/tools/types.d.ts.map +1 -0
- package/dist/server/tools/types.js +16 -0
- package/dist/server/tools/types.js.map +1 -0
- package/dist/types/jupiterone.d.ts +0 -32
- package/dist/types/jupiterone.d.ts.map +1 -1
- 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
|
|
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.
|
|
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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'./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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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;
|
|
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;AAO1D,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAoB3E,MAAM,WAAW,0BAA0B;IACzC,6EAA6E;IAC7E,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,qBAAa,mBAAmB;IACvB,MAAM,EAAE,SAAS,CAAC;IACzB,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,qBAAqB,CAAU;IACvC,OAAO,CAAC,SAAS,CAAgB;gBAErB,MAAM,EAAE,gBAAgB,EAAE,OAAO,GAAE,0BAA+B;IAe9E;;;;OAIG;IACH,OAAO,CAAC,QAAQ;YA0BF,MAAM;IAiDd,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5B"}
|