@ctera/n8n-nodes-ctera-ai 0.4.0 → 0.6.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/LICENSE CHANGED
@@ -1,24 +1,24 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 CTERA Networks
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
23
-
24
-
1
+ MIT License
2
+
3
+ Copyright (c) 2025 CTERA Networks
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+
24
+
package/README.md CHANGED
@@ -1,68 +1,68 @@
1
- # n8n-nodes-ctera
2
-
3
- n8n community nodes for CTERA integration - filesystem operations and AI-powered data intelligence.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- cd ~/.n8n/nodes
9
- npm install @ctera/n8n-nodes-ctera
10
- ```
11
-
12
- Restart n8n after installation.
13
-
14
- ## Nodes
15
-
16
- ### CTERA Filesystem
17
-
18
- Perform storage operations on CTERA Portal via MCP:
19
- - **File**: Read, write, copy, move, rename, delete
20
- - **Directory**: List, create, delete, walk, recover
21
- - **Links**: Public sharing links and permalinks
22
- - **Versions**: File version history
23
-
24
- Supports OAuth2 (Entra ID / Azure AD) authentication.
25
-
26
- **[Detailed Documentation →](nodes/CteraFilesystem/README.md)**
27
-
28
- ### CTERA Data Intelligence
29
-
30
- Interact with CTERA AI experts for semantic search and knowledge retrieval:
31
- - **List Experts**: Discover available knowledge bases
32
- - **Semantic Search**: Retrieve text chunks for RAG workflows
33
- - **File Search**: Search files with metadata filters
34
- - **Chat**: Get AI-generated answers
35
-
36
- **[Detailed Documentation →](nodes/CteraAi/README.md)**
37
-
38
- ## Credentials
39
-
40
- | Credential | Used By | Description |
41
- |------------|---------|-------------|
42
- | CTERA Portal OAuth2 API | Filesystem | Entra ID / Azure AD SSO authentication |
43
- | CTERA AI MCP API | Data Intelligence | MCP bearer token authentication |
44
-
45
- ## Development
46
-
47
- ```bash
48
- # Install dependencies
49
- npm install
50
-
51
- # Build
52
- npm run build
53
-
54
- # Run tests
55
- npm test
56
-
57
- # Link for local development
58
- npm link
59
- cd ~/.n8n/nodes && npm link @ctera/n8n-nodes-ctera
60
- ```
61
-
62
- ## Publishing
63
-
64
- See [PUBLISH.md](PUBLISH.md) for npm publishing guidelines.
65
-
66
- ## License
67
-
68
- [MIT](LICENSE)
1
+ # n8n-nodes-ctera
2
+
3
+ n8n community nodes for CTERA integration - filesystem operations and AI-powered data intelligence.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ cd ~/.n8n/nodes
9
+ npm install @ctera/n8n-nodes-ctera
10
+ ```
11
+
12
+ Restart n8n after installation.
13
+
14
+ ## Nodes
15
+
16
+ ### CTERA Filesystem
17
+
18
+ Perform storage operations on CTERA Portal via MCP:
19
+ - **File**: Read, write, copy, move, rename, delete
20
+ - **Directory**: List, create, delete, walk, recover
21
+ - **Links**: Public sharing links and permalinks
22
+ - **Versions**: File version history
23
+
24
+ Supports OAuth2 (Entra ID / Azure AD) authentication.
25
+
26
+ **[Detailed Documentation →](nodes/CteraFilesystem/README.md)**
27
+
28
+ ### CTERA Data Intelligence
29
+
30
+ Interact with CTERA AI experts for semantic search and knowledge retrieval:
31
+ - **List Experts**: Discover available knowledge bases
32
+ - **Semantic Search**: Retrieve text chunks for RAG workflows
33
+ - **File Search**: Search files with metadata filters
34
+ - **Chat**: Get AI-generated answers
35
+
36
+ **[Detailed Documentation →](nodes/CteraAi/README.md)**
37
+
38
+ ## Credentials
39
+
40
+ | Credential | Used By | Description |
41
+ |------------|---------|-------------|
42
+ | CTERA Portal OAuth2 API | Filesystem | Entra ID / Azure AD SSO authentication |
43
+ | CTERA AI MCP API | Data Intelligence | MCP bearer token authentication |
44
+
45
+ ## Development
46
+
47
+ ```bash
48
+ # Install dependencies
49
+ npm install
50
+
51
+ # Build
52
+ npm run build
53
+
54
+ # Run tests
55
+ npm test
56
+
57
+ # Link for local development
58
+ npm link
59
+ cd ~/.n8n/nodes && npm link @ctera/n8n-nodes-ctera
60
+ ```
61
+
62
+ ## Publishing
63
+
64
+ See [PUBLISH.md](PUBLISH.md) for npm publishing guidelines.
65
+
66
+ ## License
67
+
68
+ [MIT](LICENSE)
@@ -207,6 +207,14 @@ class CteraAi {
207
207
  default: false,
208
208
  description: 'Whether to return full markdown body per file',
209
209
  },
210
+ {
211
+ displayName: 'Path Prefix',
212
+ name: 'path_prefix',
213
+ type: 'string',
214
+ default: '',
215
+ placeholder: '/Documents/Engineering',
216
+ description: 'Filter results to files within this directory path. Matches files at the exact path and all subfolders. Example: "/Documents/2024" matches both "/Documents/2024/report.pdf" and "/Documents/2024/Q1/summary.pdf"',
217
+ },
210
218
  ],
211
219
  },
212
220
  ],
@@ -270,6 +278,9 @@ class CteraAi {
270
278
  if (fileSearchOptions.include_markdown !== undefined) {
271
279
  params.include_markdown = fileSearchOptions.include_markdown;
272
280
  }
281
+ if (fileSearchOptions.path_prefix) {
282
+ params.path_prefix = fileSearchOptions.path_prefix;
283
+ }
273
284
  }
274
285
  else if (operation === 'chat') {
275
286
  toolName = 'expert_chat';
@@ -1,13 +1,13 @@
1
- <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#ub91fxv4ea)" transform="scale(1.15) translate(-1.8, -1.8)">
3
- <path d="M20 0H4a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4z" fill="#4F5CE5"/>
4
- <path d="M20.373 15.297a8.941 8.941 0 0 1-2.01 3.066A8.98 8.98 0 0 1 12 21a8.883 8.883 0 0 1-3.297-.627 8.942 8.942 0 0 1-3.066-2.01A8.981 8.981 0 0 1 3 12c0-1.163.22-2.277.627-3.297a8.943 8.943 0 0 1 2.01-3.066A8.982 8.982 0 0 1 12 3c1.163 0 2.277.22 3.297.627a8.943 8.943 0 0 1 3.066 2.01l-1.65 1.65A6.668 6.668 0 0 0 12 5.333a6.663 6.663 0 0 0-4.713 1.953A6.668 6.668 0 0 0 5.333 12a6.664 6.664 0 0 0 1.953 4.713A6.668 6.668 0 0 0 12 18.667a6.662 6.662 0 0 0 4.713-1.953 6.667 6.667 0 0 0 1.49-2.27l2.17.853z" fill="#fff" stroke="#4F5CE5" stroke-width=".667" stroke-miterlimit="10"/>
5
- <path d="M18.203 14.443a6.668 6.668 0 0 1-3.543 3.67 6.608 6.608 0 0 1-2.66.554 6.669 6.669 0 0 1-6.113-4.007A6.607 6.607 0 0 1 5.333 12 6.668 6.668 0 0 1 9.34 5.887 6.607 6.607 0 0 1 12 5.333a6.667 6.667 0 0 1 4.713 1.953L14.71 9.29A3.818 3.818 0 0 0 12 8.167c-.543 0-1.06.113-1.53.316A3.85 3.85 0 0 0 8.167 12c0 .543.113 1.06.316 1.53a3.847 3.847 0 0 0 5.047 1.987 3.848 3.848 0 0 0 2.037-2.114l2.636 1.04z" fill="#fff" stroke="#4F5CE5" stroke-width=".667" stroke-miterlimit="10"/>
6
- <path d="M13.874 12c0 .13-.08.247-.204.292l-1.006.372-.37 1.007a.31.31 0 0 1-.584 0l-.373-1.007-1.007-.371a.31.31 0 0 1 0-.583l1.007-.373.37-1.008a.31.31 0 0 1 .584 0l.373 1.008 1.007.37a.308.308 0 0 1 .203.293z" fill="#fff"/>
7
- </g>
8
- <defs>
9
- <clipPath id="ub91fxv4ea">
10
- <path fill="#fff" d="M0 0h24v24H0z"/>
11
- </clipPath>
12
- </defs>
13
- </svg>
1
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#ub91fxv4ea)" transform="scale(1.15) translate(-1.8, -1.8)">
3
+ <path d="M20 0H4a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4z" fill="#4F5CE5"/>
4
+ <path d="M20.373 15.297a8.941 8.941 0 0 1-2.01 3.066A8.98 8.98 0 0 1 12 21a8.883 8.883 0 0 1-3.297-.627 8.942 8.942 0 0 1-3.066-2.01A8.981 8.981 0 0 1 3 12c0-1.163.22-2.277.627-3.297a8.943 8.943 0 0 1 2.01-3.066A8.982 8.982 0 0 1 12 3c1.163 0 2.277.22 3.297.627a8.943 8.943 0 0 1 3.066 2.01l-1.65 1.65A6.668 6.668 0 0 0 12 5.333a6.663 6.663 0 0 0-4.713 1.953A6.668 6.668 0 0 0 5.333 12a6.664 6.664 0 0 0 1.953 4.713A6.668 6.668 0 0 0 12 18.667a6.662 6.662 0 0 0 4.713-1.953 6.667 6.667 0 0 0 1.49-2.27l2.17.853z" fill="#fff" stroke="#4F5CE5" stroke-width=".667" stroke-miterlimit="10"/>
5
+ <path d="M18.203 14.443a6.668 6.668 0 0 1-3.543 3.67 6.608 6.608 0 0 1-2.66.554 6.669 6.669 0 0 1-6.113-4.007A6.607 6.607 0 0 1 5.333 12 6.668 6.668 0 0 1 9.34 5.887 6.607 6.607 0 0 1 12 5.333a6.667 6.667 0 0 1 4.713 1.953L14.71 9.29A3.818 3.818 0 0 0 12 8.167c-.543 0-1.06.113-1.53.316A3.85 3.85 0 0 0 8.167 12c0 .543.113 1.06.316 1.53a3.847 3.847 0 0 0 5.047 1.987 3.848 3.848 0 0 0 2.037-2.114l2.636 1.04z" fill="#fff" stroke="#4F5CE5" stroke-width=".667" stroke-miterlimit="10"/>
6
+ <path d="M13.874 12c0 .13-.08.247-.204.292l-1.006.372-.37 1.007a.31.31 0 0 1-.584 0l-.373-1.007-1.007-.371a.31.31 0 0 1 0-.583l1.007-.373.37-1.008a.31.31 0 0 1 .584 0l.373 1.008 1.007.37a.308.308 0 0 1 .203.293z" fill="#fff"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="ub91fxv4ea">
10
+ <path fill="#fff" d="M0 0h24v24H0z"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
@@ -361,10 +361,8 @@ class CteraFilesystem {
361
361
  async execute() {
362
362
  const items = this.getInputData();
363
363
  const returnData = [];
364
- // Get OAuth2 credentials
364
+ // Get OAuth2 credentials - token refresh is handled automatically by httpRequestWithAuthentication
365
365
  const oauth2Credentials = await this.getCredentials('cteraPortalOAuth2Api');
366
- const oauthTokenData = oauth2Credentials.oauthTokenData;
367
- const bearerToken = oauthTokenData === null || oauthTokenData === void 0 ? void 0 : oauthTokenData.access_token;
368
366
  const mcpServerUrl = `${oauth2Credentials.portalUrl.replace(/\/$/, '')}/_SRV/MCP`;
369
367
  const allowUnauthorizedCerts = oauth2Credentials.allowUnauthorizedCerts;
370
368
  for (let i = 0; i < items.length; i++) {
@@ -494,15 +492,15 @@ class CteraFilesystem {
494
492
  },
495
493
  id: i + 1,
496
494
  };
497
- // Make HTTP request to MCP server
498
- const response = await this.helpers.httpRequest({
495
+ // Make HTTP request to MCP server using authenticated helper
496
+ // This automatically handles OAuth2 token refresh when tokens expire
497
+ const response = await this.helpers.httpRequestWithAuthentication.call(this, 'cteraPortalOAuth2Api', {
499
498
  method: 'POST',
500
499
  url: `${mcpServerUrl}/mcp/`,
501
500
  headers: {
502
501
  'Content-Type': 'application/json',
503
- Authorization: `Bearer ${bearerToken}`,
504
502
  },
505
- body: JSON.stringify(requestBody),
503
+ body: requestBody,
506
504
  skipSslCertificateValidation: allowUnauthorizedCerts,
507
505
  });
508
506
  // Parse response
@@ -1,13 +1,13 @@
1
- <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#ub91fxv4ea)" transform="scale(1.15) translate(-1.8, -1.8)">
3
- <path d="M20 0H4a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4z" fill="#4F5CE5"/>
4
- <path d="M20.373 15.297a8.941 8.941 0 0 1-2.01 3.066A8.98 8.98 0 0 1 12 21a8.883 8.883 0 0 1-3.297-.627 8.942 8.942 0 0 1-3.066-2.01A8.981 8.981 0 0 1 3 12c0-1.163.22-2.277.627-3.297a8.943 8.943 0 0 1 2.01-3.066A8.982 8.982 0 0 1 12 3c1.163 0 2.277.22 3.297.627a8.943 8.943 0 0 1 3.066 2.01l-1.65 1.65A6.668 6.668 0 0 0 12 5.333a6.663 6.663 0 0 0-4.713 1.953A6.668 6.668 0 0 0 5.333 12a6.664 6.664 0 0 0 1.953 4.713A6.668 6.668 0 0 0 12 18.667a6.662 6.662 0 0 0 4.713-1.953 6.667 6.667 0 0 0 1.49-2.27l2.17.853z" fill="#fff" stroke="#4F5CE5" stroke-width=".667" stroke-miterlimit="10"/>
5
- <path d="M18.203 14.443a6.668 6.668 0 0 1-3.543 3.67 6.608 6.608 0 0 1-2.66.554 6.669 6.669 0 0 1-6.113-4.007A6.607 6.607 0 0 1 5.333 12 6.668 6.668 0 0 1 9.34 5.887 6.607 6.607 0 0 1 12 5.333a6.667 6.667 0 0 1 4.713 1.953L14.71 9.29A3.818 3.818 0 0 0 12 8.167c-.543 0-1.06.113-1.53.316A3.85 3.85 0 0 0 8.167 12c0 .543.113 1.06.316 1.53a3.847 3.847 0 0 0 5.047 1.987 3.848 3.848 0 0 0 2.037-2.114l2.636 1.04z" fill="#fff" stroke="#4F5CE5" stroke-width=".667" stroke-miterlimit="10"/>
6
- <path d="M13.874 12c0 .13-.08.247-.204.292l-1.006.372-.37 1.007a.31.31 0 0 1-.584 0l-.373-1.007-1.007-.371a.31.31 0 0 1 0-.583l1.007-.373.37-1.008a.31.31 0 0 1 .584 0l.373 1.008 1.007.37a.308.308 0 0 1 .203.293z" fill="#fff"/>
7
- </g>
8
- <defs>
9
- <clipPath id="ub91fxv4ea">
10
- <path fill="#fff" d="M0 0h24v24H0z"/>
11
- </clipPath>
12
- </defs>
13
- </svg>
1
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#ub91fxv4ea)" transform="scale(1.15) translate(-1.8, -1.8)">
3
+ <path d="M20 0H4a4 4 0 0 0-4 4v16a4 4 0 0 0 4 4h16a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4z" fill="#4F5CE5"/>
4
+ <path d="M20.373 15.297a8.941 8.941 0 0 1-2.01 3.066A8.98 8.98 0 0 1 12 21a8.883 8.883 0 0 1-3.297-.627 8.942 8.942 0 0 1-3.066-2.01A8.981 8.981 0 0 1 3 12c0-1.163.22-2.277.627-3.297a8.943 8.943 0 0 1 2.01-3.066A8.982 8.982 0 0 1 12 3c1.163 0 2.277.22 3.297.627a8.943 8.943 0 0 1 3.066 2.01l-1.65 1.65A6.668 6.668 0 0 0 12 5.333a6.663 6.663 0 0 0-4.713 1.953A6.668 6.668 0 0 0 5.333 12a6.664 6.664 0 0 0 1.953 4.713A6.668 6.668 0 0 0 12 18.667a6.662 6.662 0 0 0 4.713-1.953 6.667 6.667 0 0 0 1.49-2.27l2.17.853z" fill="#fff" stroke="#4F5CE5" stroke-width=".667" stroke-miterlimit="10"/>
5
+ <path d="M18.203 14.443a6.668 6.668 0 0 1-3.543 3.67 6.608 6.608 0 0 1-2.66.554 6.669 6.669 0 0 1-6.113-4.007A6.607 6.607 0 0 1 5.333 12 6.668 6.668 0 0 1 9.34 5.887 6.607 6.607 0 0 1 12 5.333a6.667 6.667 0 0 1 4.713 1.953L14.71 9.29A3.818 3.818 0 0 0 12 8.167c-.543 0-1.06.113-1.53.316A3.85 3.85 0 0 0 8.167 12c0 .543.113 1.06.316 1.53a3.847 3.847 0 0 0 5.047 1.987 3.848 3.848 0 0 0 2.037-2.114l2.636 1.04z" fill="#fff" stroke="#4F5CE5" stroke-width=".667" stroke-miterlimit="10"/>
6
+ <path d="M13.874 12c0 .13-.08.247-.204.292l-1.006.372-.37 1.007a.31.31 0 0 1-.584 0l-.373-1.007-1.007-.371a.31.31 0 0 1 0-.583l1.007-.373.37-1.008a.31.31 0 0 1 .584 0l.373 1.008 1.007.37a.308.308 0 0 1 .203.293z" fill="#fff"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="ub91fxv4ea">
10
+ <path fill="#fff" d="M0 0h24v24H0z"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
- module.exports = {
2
- ...require('./dist/nodes/CteraAi/CteraAi.node'),
3
- ...require('./dist/credentials/CteraAiMcpApi.credentials'),
4
- };
5
-
6
-
7
-
8
-
9
-
10
-
1
+ module.exports = {
2
+ ...require('./dist/nodes/CteraAi/CteraAi.node'),
3
+ ...require('./dist/credentials/CteraAiMcpApi.credentials'),
4
+ };
5
+
6
+
7
+
8
+
9
+
10
+
package/package.json CHANGED
@@ -1,71 +1,71 @@
1
- {
2
- "name": "@ctera/n8n-nodes-ctera-ai",
3
- "version": "0.4.0",
4
- "description": "n8n community nodes for CTERA Portal - includes AI/RAG integration and filesystem operations via MCP",
5
- "keywords": [
6
- "n8n-community-node-package",
7
- "n8n",
8
- "ctera",
9
- "ai",
10
- "mcp",
11
- "rag",
12
- "filesystem",
13
- "storage",
14
- "file-management"
15
- ],
16
- "license": "MIT",
17
- "homepage": "https://github.com/ctera/ctera-n8n-nodes",
18
- "author": {
19
- "name": "CTERA Networks",
20
- "email": "support@ctera.com"
21
- },
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/ctera/ctera-n8n-nodes.git"
25
- },
26
- "publishConfig": {
27
- "access": "public"
28
- },
29
- "main": "index.js",
30
- "scripts": {
31
- "build": "tsc && gulp build:icons",
32
- "dev": "tsc --watch",
33
- "format": "prettier nodes credentials --write",
34
- "lint": "eslint \"nodes/**/*.ts\" \"credentials/**/*.ts\" package.json",
35
- "lintfix": "eslint \"nodes/**/*.ts\" \"credentials/**/*.ts\" package.json --fix",
36
- "prepublishOnly": "npm run build && npm run lint",
37
- "test": "jest",
38
- "test:watch": "jest --watch",
39
- "test:coverage": "jest --coverage"
40
- },
41
- "files": [
42
- "dist"
43
- ],
44
- "n8n": {
45
- "n8nNodesApiVersion": 1,
46
- "credentials": [
47
- "dist/credentials/CteraAiMcpApi.credentials.js",
48
- "dist/credentials/CteraPortalOAuth2Api.credentials.js"
49
- ],
50
- "nodes": [
51
- "dist/nodes/CteraAi/CteraAi.node.js",
52
- "dist/nodes/CteraFilesystem/CteraFilesystem.node.js"
53
- ]
54
- },
55
- "devDependencies": {
56
- "@types/jest": "^29.5.12",
57
- "@typescript-eslint/eslint-plugin": "^5.62.0",
58
- "@typescript-eslint/parser": "^5.59.0",
59
- "eslint": "^8.40.0",
60
- "eslint-plugin-n8n-nodes-base": "^1.12.0",
61
- "gulp": "^5.0.1",
62
- "jest": "^29.7.0",
63
- "n8n-workflow": "^1.0.0",
64
- "prettier": "^2.8.8",
65
- "ts-jest": "^29.1.2",
66
- "typescript": "^5.0.4"
67
- },
68
- "peerDependencies": {
69
- "n8n-workflow": "^1.0.0"
70
- }
71
- }
1
+ {
2
+ "name": "@ctera/n8n-nodes-ctera-ai",
3
+ "version": "0.6.0",
4
+ "description": "n8n community nodes for CTERA Portal - includes AI/RAG integration and filesystem operations via MCP",
5
+ "keywords": [
6
+ "n8n-community-node-package",
7
+ "n8n",
8
+ "ctera",
9
+ "ai",
10
+ "mcp",
11
+ "rag",
12
+ "filesystem",
13
+ "storage",
14
+ "file-management"
15
+ ],
16
+ "license": "MIT",
17
+ "homepage": "https://github.com/ctera/ctera-n8n-nodes",
18
+ "author": {
19
+ "name": "CTERA Networks",
20
+ "email": "support@ctera.com"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/ctera/ctera-n8n-nodes.git"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "main": "index.js",
30
+ "scripts": {
31
+ "build": "tsc && gulp build:icons",
32
+ "dev": "tsc --watch",
33
+ "format": "prettier nodes credentials --write",
34
+ "lint": "eslint \"nodes/**/*.ts\" \"credentials/**/*.ts\" package.json",
35
+ "lintfix": "eslint \"nodes/**/*.ts\" \"credentials/**/*.ts\" package.json --fix",
36
+ "prepublishOnly": "npm run build && npm run lint",
37
+ "test": "jest",
38
+ "test:watch": "jest --watch",
39
+ "test:coverage": "jest --coverage"
40
+ },
41
+ "files": [
42
+ "dist"
43
+ ],
44
+ "n8n": {
45
+ "n8nNodesApiVersion": 1,
46
+ "credentials": [
47
+ "dist/credentials/CteraAiMcpApi.credentials.js",
48
+ "dist/credentials/CteraPortalOAuth2Api.credentials.js"
49
+ ],
50
+ "nodes": [
51
+ "dist/nodes/CteraAi/CteraAi.node.js",
52
+ "dist/nodes/CteraFilesystem/CteraFilesystem.node.js"
53
+ ]
54
+ },
55
+ "devDependencies": {
56
+ "@types/jest": "^29.5.12",
57
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
58
+ "@typescript-eslint/parser": "^5.59.0",
59
+ "eslint": "^8.40.0",
60
+ "eslint-plugin-n8n-nodes-base": "^1.12.0",
61
+ "gulp": "^5.0.1",
62
+ "jest": "^29.7.0",
63
+ "n8n-workflow": "^1.0.0",
64
+ "prettier": "^2.8.8",
65
+ "ts-jest": "^29.1.2",
66
+ "typescript": "^5.0.4"
67
+ },
68
+ "peerDependencies": {
69
+ "n8n-workflow": "^1.0.0"
70
+ }
71
+ }
@@ -1,7 +0,0 @@
1
- import { ICredentialType, INodeProperties } from 'n8n-workflow';
2
- export declare class CteraFilesystemApi implements ICredentialType {
3
- name: string;
4
- displayName: string;
5
- documentationUrl: string;
6
- properties: INodeProperties[];
7
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CteraFilesystemApi = void 0;
4
- class CteraFilesystemApi {
5
- constructor() {
6
- this.name = 'cteraFilesystemApi';
7
- this.displayName = 'CTERA Filesystem API';
8
- this.documentationUrl = 'https://github.com/ctera/ctera-n8n-nodes#readme';
9
- this.properties = [
10
- {
11
- displayName: 'MCP Server URL',
12
- name: 'serverUrl',
13
- type: 'string',
14
- default: '',
15
- required: true,
16
- placeholder: 'https://mcp.your-domain.com',
17
- description: 'The base URL of your CTERA MCP server (e.g., https://mcp.example.com)',
18
- },
19
- {
20
- displayName: 'Bearer Token (JWT)',
21
- name: 'bearerToken',
22
- type: 'string',
23
- typeOptions: {
24
- password: true,
25
- },
26
- default: '',
27
- required: true,
28
- description: 'Portal JWT token for authentication. Generate via Portal Settings → API Tokens, or using: curl -k "https://&lt;portal&gt;/api/tokens/generate?oid=&lt;oid&gt;&email=&lt;email&gt;"',
29
- },
30
- {
31
- displayName: 'Ignore SSL Issues',
32
- name: 'allowUnauthorizedCerts',
33
- type: 'boolean',
34
- default: false,
35
- description: 'Whether to connect even if SSL certificate validation fails (use for self-signed certificates)',
36
- },
37
- ];
38
- }
39
- }
40
- exports.CteraFilesystemApi = CteraFilesystemApi;