@path58/p58-n8n 0.2.3 → 0.2.5

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,7 +8,7 @@
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 34 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 35 tools organized in tiers:
12
12
 
13
13
  - **Tier 1 (offline):** `validate_workflow`, `list_nodes`, `get_operation_schema`, `suggest_fix`, `check_parameter` — work immediately, no env vars needed
14
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
@@ -40,7 +40,7 @@ Determine which AI client the user is using. Check for config files in this orde
40
40
  | **Claude Desktop** | `~/.config/Claude/claude_desktop_config.json` | Linux |
41
41
  | **Claude Code** | Use `claude mcp add` CLI command | All |
42
42
  | **Cursor** | `~/.cursor/mcp.json` | All |
43
- | **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | All |
43
+ | **Gemini CLI** | `~/.gemini/settings.json` or `~/.gemini/antigravity/mcp_config.json` | All |
44
44
  | **VS Code (Copilot)** | `.vscode/mcp.json` in workspace | All |
45
45
 
46
46
  **Detection method:** Check if these files exist. If multiple exist, ask the user which client they want to configure.
@@ -101,7 +101,7 @@ The API key cannot be auto-discovered. The user must provide it or create one.
101
101
 
102
102
  ## Step 4: Write the Configuration
103
103
 
104
- ### For Claude Desktop / Cursor / Windsurf / VS Code (JSON config)
104
+ ### For Claude Desktop / Cursor / Gemini CLI / VS Code (JSON config)
105
105
 
106
106
  Read the existing config file, then add p58-n8n inside the `mcpServers` object. Do NOT overwrite existing MCP servers.
107
107
 
@@ -159,7 +159,7 @@ The MCP server config is only read at startup. After writing the config:
159
159
  | **Claude Desktop** | Quit completely (Cmd+Q on macOS), then reopen |
160
160
  | **Claude Code** | Exit and restart the CLI session |
161
161
  | **Cursor** | Restart Cursor (Cmd+Shift+P → Reload Window) |
162
- | **Windsurf** | Restart Windsurf |
162
+ | **Gemini CLI** | Exit and restart the CLI session, or use the MCP refresh command |
163
163
 
164
164
  **CRITICAL:** On macOS, closing the window is NOT enough for Claude Desktop. The user must Cmd+Q to fully quit.
165
165
 
@@ -232,4 +232,4 @@ Once installed, the user can ask their AI assistant to:
232
232
 
233
233
  ---
234
234
 
235
- **Package:** `@path58/p58-n8n` | **npm:** https://www.npmjs.com/package/@path58/p58-n8n | **Version:** 0.2.2+
235
+ **Package:** `@path58/p58-n8n` | **npm:** https://www.npmjs.com/package/@path58/p58-n8n | **Version:** 0.2.4+
package/CHANGELOG.md CHANGED
@@ -5,6 +5,38 @@ 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
+ ## [0.2.4] - 2026-03-10
9
+
10
+ ### Added
11
+
12
+ - **Lazy initialization** — MCP server defers tool registration and fixer registry loading until after stdio handshake completes; eliminates cold-start timeouts on strict-timeout clients (Gemini CLI / Antigravity)
13
+ - **`setup_check` tool** — new Tier 7 diagnostic tool that validates server health, n8n connectivity, and database access in a single call; total tools now **35** across 7 tiers
14
+ - **Gemini CLI support** — installation guide and documentation updated with Gemini CLI / Antigravity configuration examples
15
+
16
+ ### Changed
17
+
18
+ - Documentation overhauled for v0.2.4: replaced Windsurf references with Gemini CLI throughout AGENT_INSTALL.md, README.md, and FRIEND_ONBOARDING.md
19
+ - Fixed broken `docs/INSTALLATION.md` links in README (file never existed) — now point to AGENT_INSTALL.md
20
+ - Standardized `N8N_API_URL` environment variable naming across all documentation
21
+ - Updated catalog counts in documentation: 1,545 nodes, 679 credentials, 35 tools
22
+
23
+ ### Fixed
24
+
25
+ - Server initialization no longer blocks the MCP handshake — clients with < 5s timeouts can now connect reliably
26
+ - Startup version banner now correctly reports v0.2.4
27
+ - **Friend & family UX hardening** — 5 catalog tool handlers now return `CATALOG_UNREACHABLE` or `DB_NOT_CONFIGURED` with setup guide URLs instead of opaque "internal error" when database issues occur
28
+ - DB pool auto-sizes for catalog-only users (max 3 connections, no keepAlive) — prevents resource exhaustion for friends without n8n
29
+ - Startup health check confirms database connectivity before accepting tool calls
30
+ - Shutdown race condition eliminated — in-flight request tracker waits up to 5s for active queries before pool disposal
31
+ - `makeDbNotConfiguredResponse` now includes `isError: true` flag so LLMs recognize the error
32
+ - `plan_workflow` description updated to note that `build_workflow` requires n8n API access
33
+
34
+ ## [0.2.3] - 2026-03-09
35
+
36
+ ### Fixed
37
+
38
+ - Internal release — build and bundle pipeline fixes
39
+
8
40
  ## [0.2.2] - 2026-03-09
9
41
 
10
42
  ### Fixed
@@ -98,8 +130,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
98
130
  - npm package published as `@path58/p58-n8n`
99
131
  - ESM module support with shebang for direct `npx` execution
100
132
 
101
- [0.2.2]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.2.2
102
- [0.2.1]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.2.1
103
- [0.2.0]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.2.0
104
- [0.1.1]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.1.1
105
- [0.1.0]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.1.0
133
+ [0.2.4]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.2.4
134
+ [0.2.3]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.2.3
135
+ [0.2.2]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.2.2
136
+ [0.2.1]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.2.1
137
+ [0.2.0]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.2.0
138
+ [0.1.1]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.1.1
139
+ [0.1.0]: https://github.com/tsvika58/p58-n8n/releases/tag/v0.1.0
package/README.md CHANGED
@@ -4,11 +4,11 @@
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@path58/p58-n8n)](https://www.npmjs.com/package/@path58/p58-n8n)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
7
- [![Tests](https://github.com/tsvika58/n8n-workflow-validator/actions/workflows/ci.yml/badge.svg)](https://github.com/tsvika58/n8n-workflow-validator/actions/workflows/ci.yml)
7
+ [![Tests](https://github.com/tsvika58/p58-n8n/actions/workflows/ci.yml/badge.svg)](https://github.com/tsvika58/p58-n8n/actions/workflows/ci.yml)
8
8
 
9
9
  p58-n8n is an MCP server that gives your AI assistant deep knowledge of n8n — **1,545 nodes**, **12,619 operations**, **38,005 parameter rules** — so it can plan, build, validate, fix, and deploy workflows correctly. No manual iteration. No broken JSON.
10
10
 
11
- > **🤖 AI Agent?** If you are an LLM assistant and a user asked you to install this MCP server, **stop here and read [`AGENT_INSTALL.md`](https://github.com/tsvika58/n8n-workflow-validator/blob/main/AGENT_INSTALL.md)** — it has the complete autonomous installation guide with client detection, n8n auto-discovery, config templates for all clients, and verification steps. Everything you need to install p58-n8n without asking the user unnecessary questions.
11
+ > **🤖 AI Agent?** If you are an LLM assistant and a user asked you to install this MCP server, **stop here and read [`AGENT_INSTALL.md`](https://github.com/tsvika58/p58-n8n/blob/main/AGENT_INSTALL.md)** — it has the complete autonomous installation guide with client detection, n8n auto-discovery, config templates for all clients, and verification steps. Everything you need to install p58-n8n without asking the user unnecessary questions.
12
12
 
13
13
  ---
14
14
 
@@ -58,9 +58,9 @@ Config file location: `~/Library/Application Support/Claude/claude_desktop_confi
58
58
 
59
59
  > **Note:** Validation tools (`validate_workflow`, `list_nodes`, etc.) work immediately without any env vars. The `N8N_API_URL` and `N8N_API_KEY` are only needed for deploy, execute, and credential tools.
60
60
 
61
- **Cursor / Windsurf** — see [docs/INSTALLATION.md](docs/INSTALLATION.md) for full multi-client setup.
61
+ **Cursor / Gemini CLI** — same JSON format, add to your client's MCP config file. See [AGENT_INSTALL.md](https://github.com/tsvika58/p58-n8n/blob/main/AGENT_INSTALL.md) for all supported clients.
62
62
 
63
- **LLM-assisted setup** — if you're an AI agent helping a user install p58-n8n, read [AGENT_INSTALL.md](https://github.com/tsvika58/n8n-workflow-validator/blob/main/AGENT_INSTALL.md) for the autonomous installation guide.
63
+ **LLM-assisted setup** — if you're an AI agent helping a user install p58-n8n, read [AGENT_INSTALL.md](https://github.com/tsvika58/p58-n8n/blob/main/AGENT_INSTALL.md) for the autonomous installation guide.
64
64
 
65
65
  ### 3. Try it
66
66
 
@@ -126,7 +126,7 @@ p58-n8n uses 80% less token context than n8n-mcp by serving structured catalog d
126
126
 
127
127
  ---
128
128
 
129
- ## 34 Tools in 7 Tiers
129
+ ## 35 Tools in 7 Tiers
130
130
 
131
131
  ### Tier 1 — Validation & Analysis
132
132
 
@@ -196,6 +196,7 @@ p58-n8n uses 80% less token context than n8n-mcp by serving structured catalog d
196
196
  | Tool | What it does |
197
197
  |------|-------------|
198
198
  | `collect_config` | Detect missing node configuration from your live n8n instance (covers 2,494 known gaps) |
199
+ | `setup_check` | Diagnostic report — server version, n8n connectivity, credential count, tool availability |
199
200
 
200
201
  Full reference with input/output schemas: [docs/TOOLS.md](docs/TOOLS.md)
201
202
 
@@ -235,11 +236,11 @@ p58-n8n will: call `get_credential_schema` for Slack → `create_credential` wit
235
236
 
236
237
  ## Installation
237
238
 
238
- See [docs/INSTALLATION.md](docs/INSTALLATION.md) for full setup instructions:
239
+ See [AGENT_INSTALL.md](https://github.com/tsvika58/p58-n8n/blob/main/AGENT_INSTALL.md) for full setup instructions:
239
240
 
240
241
  - Claude Desktop (macOS, Windows, Linux)
241
242
  - Claude Code (one-command setup)
242
- - Cursor and Windsurf
243
+ - Cursor and Gemini CLI
243
244
  - Global install vs npx
244
245
  - Troubleshooting
245
246
 
@@ -274,7 +275,7 @@ MIT — see [LICENSE](LICENSE) for details.
274
275
 
275
276
  p58-n8n is in **soft launch** (friends & family). Issues and feedback welcome:
276
277
 
277
- - **Bugs:** [GitHub Issues](https://github.com/tsvika58/n8n-workflow-validator/issues)
278
+ - **Bugs:** [GitHub Issues](https://github.com/tsvika58/p58-n8n/issues)
278
279
  - **Email:** tvagman@gmail.com
279
280
 
280
281
  ---
@@ -284,7 +285,7 @@ p58-n8n is in **soft launch** (friends & family). Issues and feedback welcome:
284
285
  p58-n8n runs as a local stdio MCP server. No cloud services required for basic use.
285
286
 
286
287
  ```
287
- AI Client (Claude / Cursor / Windsurf)
288
+ AI Client (Claude / Cursor / Gemini CLI)
288
289
  ↕ MCP Protocol (stdio)
289
290
  p58-n8n Server
290
291
  ├── Validation Engine (L1-L6, ~1.4s)
@@ -18436,7 +18436,6 @@ var init_cached_catalog_adapter = __esm({
18436
18436
  // dist/mcp/server.js
18437
18437
  var server_exports = {};
18438
18438
  __export(server_exports, {
18439
- TIER_1_TOOLS: () => TIER_1_TOOLS,
18440
18439
  logStartupSummary: () => logStartupSummary
18441
18440
  });
18442
18441
  module.exports = __toCommonJS(server_exports);
@@ -44561,22 +44560,12 @@ function registerShutdownHandlers(serverName, deps) {
44561
44560
  }
44562
44561
 
44563
44562
  // dist/mcp/server.js
44564
- var TIER_1_TOOLS = /* @__PURE__ */ new Set([
44565
- "validate_workflow",
44566
- "get_operation_schema",
44567
- "check_parameter",
44568
- "suggest_fix",
44569
- "list_operations",
44570
- "list_nodes",
44571
- "get_node_info",
44572
- "find_similar_pattern"
44573
- ]);
44574
44563
  var SETUP_GUIDE_URL3 = "https://github.com/tsvika58/n8n-workflow-validator/blob/main/docs/AGENT_INSTALL.md";
44575
44564
  function logStartupSummary(n8nConnected) {
44576
44565
  const apiKey = process.env.N8N_API_KEY;
44577
44566
  const n8nUrl = process.env.N8N_API_URL ?? process.env.N8N_API_BASE_URL ?? "http://localhost:5678/api/v1";
44578
44567
  const totalTools = getRegisteredTools().length;
44579
- const tier1Count = TIER_1_TOOLS.size;
44568
+ const tier1Count = OFFLINE_TOOLS.size;
44580
44569
  const tier27Count = totalTools - tier1Count;
44581
44570
  let n8nStatus;
44582
44571
  if (!apiKey) {
@@ -44639,7 +44628,6 @@ main().catch((error) => {
44639
44628
  });
44640
44629
  // Annotate the CommonJS export names for ESM import in node:
44641
44630
  0 && (module.exports = {
44642
- TIER_1_TOOLS,
44643
44631
  logStartupSummary
44644
44632
  });
44645
44633
  /*! Bundled license information:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@path58/p58-n8n",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "The smartest and fastest n8n MCP server — validate, fix, and discover workflows inside your LLM",
5
5
  "keywords": [
6
6
  "mcp",
@@ -13,10 +13,10 @@
13
13
  ],
14
14
  "author": "Path58",
15
15
  "license": "MIT",
16
- "homepage": "https://github.com/tsvika58/n8n-workflow-validator#readme",
16
+ "homepage": "https://github.com/tsvika58/p58-n8n#readme",
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "git+https://github.com/tsvika58/n8n-workflow-validator.git"
19
+ "url": "git+https://github.com/tsvika58/p58-n8n.git"
20
20
  },
21
21
  "bin": {
22
22
  "p58-n8n": "dist/mcp/server.bundle.cjs"