@path58/p58-n8n 0.2.12 → 0.2.13

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/AGENT_INSTALL.md CHANGED
@@ -8,10 +8,21 @@
8
8
 
9
9
  ## What is p58-n8n?
10
10
 
11
- p58-n8n is an MCP server that gives LLMs the ability to validate, build, deploy, and manage n8n workflows. It provides 35 tools organized in tiers:
11
+ p58-n8n is an MCP server that gives LLMs the ability to validate, build, deploy, and manage n8n workflows. It provides 12 tools in the default configuration (35 total registered, 11 offline-capable), organized in tiers:
12
12
 
13
- - **Tier 1 (offline):** `validate_workflow`, `list_nodes`, `get_operation_schema`, `suggest_fix`, `check_parameter` work immediately, no env vars needed
14
- - **Tier 2-7 (require n8n):** `build_workflow`, `list_credentials`, `activate_workflow`, `execute_workflow`, `test_workflow`, `plan_workflow`, etc. require connection to user's n8n instance
13
+ - **Public/basic (offline-capable):** planning, node and operation discovery, credential schema discovery, and public-safe validation work immediately from bundled catalog assets
14
+ - **Public/basic + n8n:** build, deploy, test, workflow CRUD, and credential CRUD work against the user's own n8n instance
15
+ - **Friends & Family Full (optional):** an allowlisted `P58_USER_EMAIL` plus `P58_DATABASE_URL` unlocks deeper private Path58 intelligence without changing the MCP tool list
16
+
17
+ ## Runtime Modes
18
+
19
+ Use this mental model when installing:
20
+
21
+ - **Public Local:** no Path58 DB env vars. Uses the local public bundle that ships in npm.
22
+ - **Connected:** the user's own n8n is configured, and `P58_DATABASE_URL` may also be present, but private intelligence is still locked.
23
+ - **Friends & Family Full:** `P58_DATABASE_URL` plus allowlisted `P58_USER_EMAIL` unlock the private Path58 layer.
24
+
25
+ The public npm package does not include raw Path58 `parameters` or `connections`.
15
26
 
16
27
  ---
17
28
 
@@ -19,12 +30,16 @@ p58-n8n is an MCP server that gives LLMs the ability to validate, build, deploy,
19
30
 
20
31
  ```
21
32
  Does the user have n8n running?
22
- ├── YES → Full install (N8N_API_URL + N8N_API_KEY)
23
- All 34 tools work: validate, build, deploy, execute
33
+ ├── YES → Public/basic full journey (N8N_API_URL + N8N_API_KEY)
34
+ Plan, build, validate, deploy, test, and manage workflows
24
35
 
25
- └── NO / DON'T KNOW → Minimal install (no env vars)
26
- Tier 1 tools only: validate, list, check params
27
- User can add n8n config later
36
+ └── NO / DON'T KNOW → Public Local install (no env vars)
37
+ Planning, discovery, credential schema lookup,
38
+ and public-safe validation work immediately
39
+
40
+ Does the user also have Friends & Family access?
41
+ └── YES → Add P58_DATABASE_URL + allowlisted P58_USER_EMAIL
42
+ to unlock private Path58 intelligence
28
43
  ```
29
44
 
30
45
  ---
@@ -167,6 +182,24 @@ Read the existing config file, then add p58-n8n inside the `mcpServers` object.
167
182
  }
168
183
  ```
169
184
 
185
+ **Friends & Family Full (optional private layer):**
186
+ ```json
187
+ {
188
+ "mcpServers": {
189
+ "p58-n8n": {
190
+ "command": "npx",
191
+ "args": ["-y", "@path58/p58-n8n"],
192
+ "env": {
193
+ "N8N_API_URL": "http://localhost:5678/api/v1",
194
+ "N8N_API_KEY": "<paste-api-key-here>",
195
+ "P58_DATABASE_URL": "<friend-and-family-db-url>",
196
+ "P58_USER_EMAIL": "friend@example.com"
197
+ }
198
+ }
199
+ }
200
+ }
201
+ ```
202
+
170
203
  ### For Claude Code (CLI)
171
204
 
172
205
  **Full config:**
@@ -184,6 +217,16 @@ claude mcp add p58-n8n \
184
217
  claude mcp add p58-n8n -- npx -y @path58/p58-n8n
185
218
  ```
186
219
 
220
+ **Friends & Family Full (optional private layer):**
221
+ ```bash
222
+ claude mcp add p58-n8n \
223
+ -e N8N_API_URL=http://localhost:5678/api/v1 \
224
+ -e N8N_API_KEY=<paste-api-key-here> \
225
+ -e P58_DATABASE_URL=<friend-and-family-db-url> \
226
+ -e P58_USER_EMAIL=friend@example.com \
227
+ -- npx -y @path58/p58-n8n
228
+ ```
229
+
187
230
  ---
188
231
 
189
232
  ## Step 5: Restart the Client
@@ -231,6 +274,8 @@ Ask: "List my n8n credentials"
231
274
  | `N8N_API_KEY` | For Tier 2-7 tools | n8n API authentication key | n8n → Settings → API Keys |
232
275
  | `N8N_USER_EMAIL` | For `test_credential` | n8n login email (REST session auth) | Same email you use to log into n8n UI |
233
276
  | `N8N_USER_PASSWORD` | For `test_credential` | n8n login password (REST session auth) | Same password you use to log into n8n UI |
277
+ | `P58_DATABASE_URL` | Optional | Friends & Family private intelligence connection | Provided directly by Path58 |
278
+ | `P58_USER_EMAIL` | Optional with `P58_DATABASE_URL` | Allowlist identity for unlocking private intelligence | Must match the allowlisted email |
234
279
 
235
280
  > **Note:** `N8N_API_BASE_URL` is accepted as a fallback for `N8N_API_URL`. If neither is set, defaults to `http://localhost:5678/api/v1`.
236
281
 
@@ -271,4 +316,4 @@ Once installed, the user can ask their AI assistant to:
271
316
 
272
317
  ---
273
318
 
274
- **Package:** `@path58/p58-n8n` | **npm:** https://www.npmjs.com/package/@path58/p58-n8n | **Version:** 0.2.6+
319
+ **Package:** `@path58/p58-n8n` | **npm:** https://www.npmjs.com/package/@path58/p58-n8n | **Version:** 0.2.13+
package/CHANGELOG.md CHANGED
@@ -5,7 +5,29 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- <<<<<<< HEAD
8
+ ## [Unreleased]
9
+
10
+ ## [0.2.13] - 2026-03-28
11
+
12
+ ### Added
13
+
14
+ - **Public catalog bundle** — `src/data/public-catalog/` now ships in the npm tarball, giving every user immediate access to 1,545 nodes, 12,619 operations, 679 credential types, 1,209 credential fields, and 4,629 node-credential relationships — no Path58 database required.
15
+
16
+ ### Fixed
17
+
18
+ - **Circuit breaker false positives** — `isAuthOrConnectionError()` matched bare `'timeout'`, causing pool-acquisition and statement timeouts to be misclassified as infrastructure failures. Narrowed to `'connection timeout'` and `'connect etimedout'` only. Supabase logs confirmed zero actual DB errors during trips.
19
+ - **MCP pool exhaustion** — Default pool size for catalog-only (MCP) mode reduced from 3→1. MCP tools are request/response and don't need concurrent connections. With `max=3`, just 5 orphaned processes exhausted the `mcp_user` 15-slot limit.
20
+ - **Stale comment** — `validatorQuery` JSDoc said "3 failures / 2 min" but actual thresholds are 10 failures / 60s cooldown.
21
+ - **`SETUP_GUIDE_URL` in n8n-guard** — Fixed URL pointing to `docs/AGENT_INSTALL.md` (which doesn't exist); now correctly points to `AGENT_INSTALL.md` at repo root.
22
+
23
+ ### Changed
24
+
25
+ - **`mcp_user` CONNECTION LIMIT** — Raised from 15→30 via `ALTER ROLE`. Combined with pool `max=1`, supports up to 30 orphaned MCP processes before hitting the limit.
26
+
27
+ ### Performance
28
+
29
+ - **Benchmark parity verified** — 100% pass rate across all three model tiers (Haiku 4.5, Sonnet 4.6, Opus 4.6) in competitive 25-prompt shootout. p58 Haiku: $0.24/pass vs n8n-mcp $6.02/pass.
30
+
9
31
  ## [0.2.11] - 2026-03-11
10
32
 
11
33
  ### Added
@@ -187,6 +209,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
187
209
  - npm package published as `@path58/p58-n8n`
188
210
  - ESM module support with shebang for direct `npx` execution
189
211
 
212
+ [0.2.13]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.2.13
190
213
  [0.2.7]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.2.7
191
214
  [0.2.6]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.2.6
192
215
  [0.2.5]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.2.5
package/LICENSE CHANGED
@@ -1,21 +1,96 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Path58
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.
1
+ License text copyright (c) 2023 MariaDB plc, All Rights Reserved.
2
+ "Business Source License" is a trademark of MariaDB plc.
3
+
4
+ Parameters
5
+
6
+ Licensor: Path58 (Tsvi Vagman)
7
+ Licensed Work: p58-n8n
8
+ The Licensed Work is (c) 2026 Path58
9
+ Additional Use Grant: You may use the Licensed Work for any purpose,
10
+ including production use, EXCEPT for providing a
11
+ commercial n8n workflow automation MCP server product
12
+ that competes with Path58's offerings.
13
+
14
+ Change Date: 2028-03-28
15
+
16
+ Change License: MIT License
17
+
18
+ For information about alternative licensing arrangements for the Software,
19
+ please visit: https://path58.com
20
+
21
+ Notice
22
+
23
+ The Business Source License (this document, or the "License") is not an Open
24
+ Source license. However, the Licensed Work will eventually be made available
25
+ under an Open Source License, as stated in this License.
26
+
27
+ -----------------------------------------------------------------------------
28
+
29
+ Business Source License 1.1
30
+
31
+ Terms
32
+
33
+ The Licensor hereby grants you the right to copy, modify, create derivative
34
+ works, redistribute, and make non-production use of the Licensed Work. The
35
+ Licensor may make an Additional Use Grant, above, permitting limited
36
+ production use.
37
+
38
+ Effective on the Change Date, or the fourth anniversary of the first publicly
39
+ available distribution of a specific version of the Licensed Work under this
40
+ License, whichever comes first, the Licensor hereby grants you rights under
41
+ the terms of the Change License, and the rights granted in the paragraph
42
+ above terminate.
43
+
44
+ If your use of the Licensed Work does not comply with the requirements
45
+ currently in effect as described in this License, you must purchase a
46
+ commercial license from the Licensor, its affiliated entities, or authorized
47
+ resellers, or you must refrain from using the Licensed Work.
48
+
49
+ All copies of the original and modified Licensed Work, and derivative works
50
+ of the Licensed Work, are subject to this License. This License applies
51
+ separately for each version of the Licensed Work and the Change Date may vary
52
+ for each version of the Licensed Work released by Licensor.
53
+
54
+ You must conspicuously display this License on each original or modified copy
55
+ of the Licensed Work. If you receive the Licensed Work in original or
56
+ modified form from a third party, the terms and conditions set forth in this
57
+ License apply to your use of that work.
58
+
59
+ Any use of the Licensed Work in violation of this License will automatically
60
+ terminate your rights under this License for the current and all other
61
+ versions of the Licensed Work.
62
+
63
+ This License does not grant you any right in any trademark or logo of
64
+ Licensor or its affiliates (provided that you may use a trademark or logo of
65
+ Licensor as expressly required by this License).
66
+
67
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
68
+ AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
69
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
70
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
71
+ TITLE.
72
+
73
+ MariaDB hereby grants you permission to use this License's text to license
74
+ your works, and to refer to it using the trademark "Business Source License",
75
+ as long as you comply with the Covenants of Licensor below.
76
+
77
+ Covenants of Licensor
78
+
79
+ In consideration of the right to use this License's text and the "Business
80
+ Source License" name and trademark, Licensor covenants to MariaDB, and to all
81
+ other recipients of the licensed work to be provided by Licensor:
82
+
83
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
84
+ or a license that is compatible with GPL Version 2.0 or a later version,
85
+ where "compatible" means that software provided under the Change License can
86
+ be included in a program with software provided under GPL Version 2.0 or a
87
+ later version. Licensor may specify additional Change Licenses without
88
+ limitation.
89
+
90
+ 2. To either: (a) specify an additional grant of rights to use that does not
91
+ impose any additional restriction on the right granted in this License, as
92
+ the Additional Use Grant; or (b) insert the text "None".
93
+
94
+ 3. To specify a Change Date.
95
+
96
+ 4. Not to modify this License in any other way.