@elastic.io/mcp 1.0.1-dev19 → 1.0.1-dev21

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 CHANGED
@@ -12,19 +12,32 @@ Published on npm as `@elastic.io/mcp`.
12
12
 
13
13
  1. **Node.js 22+** — download from [nodejs.org](https://nodejs.org/)
14
14
  2. **A desktop AI client** — install one of the supported clients (see below)
15
- 3. **elastic.io credentials** — your account email and API key
15
+ 3. **elastic.io credentials** — log in to your elastic.io account, go to your profile page, and copy the `curl` command shown there (it looks like `curl https://api.elastic.io/v2/users/me -u your_email:your_api_key`). The setup wizard accepts this command directly — just paste it when prompted.
16
16
 
17
17
  ### One-Command Setup
18
18
 
19
19
  Run this in your terminal — it will detect your installed AI clients and configure them automatically:
20
20
 
21
+ **macOS / Linux:**
21
22
  ```
22
23
  npx -y @elastic.io/mcp setup
23
24
  ```
24
25
 
26
+ **Windows (PowerShell):**
27
+ ```powershell
28
+ npx -y "@elastic.io/mcp" setup
29
+ ```
30
+
31
+ > **Windows notes:**
32
+ > - Always wrap the package name in quotes (`"@elastic.io/mcp"`) — PowerShell misinterprets the `@` symbol without them.
33
+ > - If you get a `PSSecurityException` error, allow script execution for your user first:
34
+ > ```powershell
35
+ > Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
36
+ > ```
37
+
25
38
  Works on macOS, Linux, and Windows. The setup wizard will:
26
39
  1. Check your Node.js version (22+ required)
27
- 2. Ask for your elastic.io email and API key
40
+ 2. Accept the `curl` command from your profile page (or ask for email and API key manually)
28
41
  3. Detect which AI clients are installed on your machine
29
42
  4. Resolve the full path to `node`/`npx` (handles NVM, fnm, Homebrew, etc.)
30
43
  5. Write the MCP config files with correct paths for each client
@@ -112,10 +125,16 @@ By default, documentation and flow sample searches are routed through the elasti
112
125
 
113
126
  To install and configure a local development version:
114
127
 
128
+ **macOS / Linux:**
115
129
  ```
116
130
  npx -y @elastic.io/mcp@dev setup
117
131
  ```
118
132
 
133
+ **Windows (PowerShell):**
134
+ ```powershell
135
+ npx -y "@elastic.io/mcp@dev" setup
136
+ ```
137
+
119
138
  This installs the latest dev build from npm and runs the same setup wizard — it will ask for your credentials, detect installed AI clients, and write the config files pointing to the `@elastic.io/mcp@dev` tag.
120
139
 
121
140
  ### Built-in Safeguards
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAYpE,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAOnG;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,CAqUhE;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,6BAA6B,CAAC;IACzC,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,eAAe,CAA6B;IAEpD,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAInD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAIlD,aAAa,CAAC,SAAS,EAAE,MAAM;IAU/B,kBAAkB,IAAI,MAAM;IAI5B,WAAW,CAAC,SAAS,GAAE,MAAuB;IAgB9C,UAAU;CAMX"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAYpE,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AAOnG;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,CAwVhE;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,6BAA6B,CAAC;IACzC,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,eAAe,CAA6B;IAEpD,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAInD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS;IAIlD,aAAa,CAAC,SAAS,EAAE,MAAM;IAU/B,kBAAkB,IAAI,MAAM;IAI5B,WAAW,CAAC,SAAS,GAAE,MAAuB;IAgB9C,UAAU;CAMX"}
package/dist/server.js CHANGED
@@ -46,6 +46,12 @@ export function createMcpServer(client) {
46
46
  name: 'elastic.io Standardized Actions and Triggers Guide',
47
47
  mimeType: 'text/markdown',
48
48
  description: 'Specifications and usage guidelines for standardized actions and triggers across components.'
49
+ },
50
+ {
51
+ uri: 'elasticio://docs/rest-api-pagination',
52
+ name: 'Implementing Pagination with the REST API Component',
53
+ mimeType: 'text/markdown',
54
+ description: 'How to implement pagination with the REST API component using a recursive Flow Linking pattern, since the HTTP Request action does not support automatic pagination.'
49
55
  }
50
56
  ]
51
57
  };
@@ -81,6 +87,19 @@ export function createMcpServer(client) {
81
87
  ]
82
88
  };
83
89
  }
90
+ if (uri === 'elasticio://docs/rest-api-pagination') {
91
+ const filePath = resolveFromRoot('resources/docs/rest-api-pagination.md');
92
+ const text = fs.readFileSync(filePath, 'utf8');
93
+ return {
94
+ contents: [
95
+ {
96
+ uri,
97
+ mimeType: 'text/markdown',
98
+ text
99
+ }
100
+ ]
101
+ };
102
+ }
84
103
  throw new Error(`Resource not found: ${uri}`);
85
104
  });
86
105
  // eslint-disable-next-line @typescript-eslint/require-await
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAI7C;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAC,MAAqB;IACnD,MAAM,SAAS,GAAG,IAAI,SAAS,CAC7B;QACE,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE,OAAO;KACjB,EACD;QACE,YAAY,EAAE;YACZ,KAAK,EAAE,EAAE;YACT,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,EAAE;SACZ;QACD,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,uCAAuC,CAAC,EAAE,MAAM,CAAC;KAChG,CACF,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IAEhC,4DAA4D;IAC5D,MAAM,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QAC1D,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,iBAA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AC;QACd,IAAI,IAAI,CAAC,eAAe,IAAI,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,KAAK,UAAU,EAAE,CAAC;YAC7E,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;QAC/B,CAAC;IACH,CAAC;IAED,UAAU;QACR,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YACzB,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;YACpC,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QACnC,CAAC;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic.io/mcp",
3
- "version": "1.0.1-dev19",
3
+ "version": "1.0.1-dev21",
4
4
  "description": "elastic.io Model Context Protocol (MCP) Server",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -0,0 +1,58 @@
1
+ # Implementing Pagination with the REST API Component
2
+
3
+ The REST API component's `HTTP Request (Axios Library)` action does not provide automatic pagination or automatically retrieve subsequent pages. To retrieve all available records, implement pagination logic directly in your integration flow using a recursive flow execution pattern.
4
+
5
+ The pagination mechanism depends on the target REST API. It may provide a next-page URL, a cursor, a page number, an offset, or another pagination parameter. Always follow the pagination mechanism documented by the target API.
6
+
7
+ ## 1. Flow Linking: Receive pagination parameters
8
+
9
+ Configure a Flow Linking trigger to receive the input required to execute a paginated request.
10
+
11
+ The input should contain the initial request URL or parameters for the first execution. For subsequent executions, it should contain the pagination information extracted from the previous response.
12
+
13
+ ## 2. REST API: HTTP Request (Axios Library)
14
+
15
+ Configure the REST API component with the `HTTP Request (Axios Library)` action to execute the HTTP request.
16
+
17
+ - Set the HTTP method, URL, headers, authentication, and other required request parameters.
18
+ - Use the initial URL or pagination parameters received from the Flow Linking trigger.
19
+ - Execute the request and retrieve the response.
20
+
21
+ The action provides the HTTP status code, response headers (`HTTPHeaders`), and response body (`responseBody`), unless the response is configured to be downloaded as an attachment.
22
+
23
+ ## 3. Filter or Router: Check whether another page is available
24
+
25
+ Inspect the response body and, if applicable, the response headers to determine whether more records are available.
26
+
27
+ Use the pagination mechanism supported by the target API. For example:
28
+
29
+ - **Next-page URL**: Check whether the response contains a next-page URL or link.
30
+ - **Cursor-based pagination**: Check whether the response contains a continuation cursor or token.
31
+ - **Offset-based pagination**: Check whether the API indicates that additional records are available and calculate the next offset.
32
+ - **Page-based pagination**: Check whether another page exists and increment the page number.
33
+
34
+ If another page is available, continue to the next step. Otherwise, stop pagination because the last page has been reached.
35
+
36
+ ## 4. Flow Linking: Trigger the next execution
37
+
38
+ If another page is available, use Flow Linking to trigger the same flow again.
39
+
40
+ Pass the pagination information extracted from the previous response, such as the next-page URL, cursor, offset, or page number.
41
+
42
+ The next execution must use this information to configure the subsequent REST API request.
43
+
44
+ ## 5. Repeat until all pages are retrieved
45
+
46
+ Repeat the request and pagination-checking steps until the target API indicates that no more pages are available.
47
+
48
+ Ensure that all retrieved records are processed or stored as required by the integration flow. If necessary, use additional steps to aggregate records from multiple responses.
49
+
50
+ ## Important considerations
51
+
52
+ - Do not assume that all REST APIs use the same pagination mechanism or response structure.
53
+ - Use the pagination parameters and continuation indicators documented by the target API.
54
+ - Do not construct or modify pagination URLs when the API provides a complete next-page URL. Follow the returned URL as specified by the API.
55
+ - Ensure that the pagination condition correctly identifies the last page to prevent unnecessary requests or infinite execution loops.
56
+ - Consider API rate limits and execution constraints when implementing recursive requests. Configure appropriate delays between requests when necessary.
57
+
58
+ This approach allows you to retrieve all available records from REST APIs that use pagination, even when automatic pagination is not supported by the REST API component.
@@ -64,14 +64,15 @@ You MUST NOT do any of the following. These are the most frequent errors:
64
64
  - The verification is asynchronous; `init_verify_credentials` returns an `executionId` immediately. You must subsequently call `get_scheduled_execution_result` with this `executionId` to check the verification status. If the returned status is 'pending', wait 2-3 seconds and call `get_scheduled_execution_result` again.
65
65
  13. **API Reference & Swagger**: The official elastic.io REST API OpenAPI/Swagger documentation is hosted at `https://api.elastic.io/docs/v2`. If you need to verify exact API schemas, JSON payload formats, endpoint paths, or query parameters, you should refer to this URL.
66
66
  14. **Code Component Restriction (CRITICAL)**: The Node.js Code component (`elasticio/code`) must ONLY be used when the user explicitly requests custom code logic or when no suitable connector component exists for the task. You are strictly PROHIBITED from substituting real connector components (Salesforce, Shopify, Stripe, PostgreSQL, etc.) with code components that simulate their behavior. If a user asks to integrate with a specific system (e.g., "sync Salesforce to Shopify"), you MUST discover and use the actual platform connectors for those systems, including proper credential/secret setup. If credentials are missing, STOP and ask the user to provide or create them — do NOT fall back to a code component that simulates the connector.
67
- 15. **Guided Flow Creation (CRITICAL)**: When creating a new flow, you MUST follow an interactive, step-by-step approach. Do NOT attempt to build the entire flow in a single tool call. Instead:
67
+ 15. **REST API Pagination (CRITICAL)**: The REST API component's `HTTP Request (Axios Library)` action does NOT support automatic pagination. When a user needs to paginate through REST API results (e.g., OData `@odata.nextLink`, cursor-based, offset-based, or page-number-based pagination), you MUST proactively suggest the recursive Flow Linking pattern described in `elasticio://docs/rest-api-pagination`. Read this resource and walk the user through building a self-calling flow that uses Flow Linking to pass pagination parameters back to itself. Do NOT suggest using the Code component to implement pagination loops — the standard pattern uses only visual connectors (Flow Linking trigger, REST API action, Filter/Router).
68
+ 16. **Guided Flow Creation (CRITICAL)**: When creating a new flow, you MUST follow an interactive, step-by-step approach. Do NOT attempt to build the entire flow in a single tool call. Instead:
68
69
  - **Step 1**: Ask the user what systems they want to connect and what the flow should do.
69
70
  - **Step 2**: For EACH step in the flow, discover the appropriate component, present options if multiple exist, and wait for user confirmation.
70
71
  - **Step 3**: For EACH component that requires credentials/secrets, check if they exist in the workspace. If not, STOP and guide the user through credential creation.
71
72
  - **Step 4**: For EACH component with dynamic select models or dynamic metadata, resolve them interactively — present the options to the user and let them choose (e.g., "Which Salesforce object type? Account, Contact, Lead...").
72
73
  - **Step 5**: Only after ALL steps are confirmed and configured, construct and submit the final flow payload.
73
74
  - At every decision point, STOP and ask the user. Never guess or assume. The goal is to guide the user like a wizard — one question at a time until every detail is resolved.
74
- 16. **Dedicated Tools First with Fallback / Escape Hatch (CRITICAL)**:
75
+ 17. **Dedicated Tools First with Fallback / Escape Hatch (CRITICAL)**:
75
76
  - **Primary Choice**: Always prioritize using dedicated, specialized tools (`list_flows`, `get_flow`, `create_flow`, `update_flow_draft`, `update_flow`, `list_workspaces`, `list_components`, `list_credentials`, `list_secrets`, `get_logs`, etc.). Dedicated tools manage platform state machines, draft revisions, discovery state, graph validation, and health checks.
76
77
  - **Escape Hatch / Fallback**: You may use `execute_raw_api_request` ONLY in the following situations:
77
78
  1. When the desired operation or API endpoint is not supported by any dedicated MCP tool (e.g. edge-case endpoints like `/flows/{id}/errors`, custom admin/user endpoints).