@path58/p58-n8n 0.2.0 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@ 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.2] - 2026-03-09
9
+
10
+ ### Fixed
11
+
12
+ - ANSI color escape codes from logger no longer corrupt the MCP JSON-RPC stream on stdout
13
+ - `console.log` redirected to `console.error` at bundle entry — logger output goes to stderr (diagnostics), not stdout (protocol channel)
14
+ - ANSI escape codes stripped from stderr output when not connected to a TTY, preventing parse errors in Claude Desktop and other MCP hosts
15
+
16
+ ## [0.2.1] - 2026-03-09
17
+
18
+ ### Fixed
19
+
20
+ - Server startup message now correctly reports v0.2.1 (was showing v0.1.0)
21
+ - Server startup now logs tool count: `p58-n8n v0.2.1 running on stdio (34 tools registered)`
22
+
8
23
  ## [0.2.0] - 2026-03-08
9
24
 
10
25
  ### Added
@@ -83,6 +98,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
83
98
  - npm package published as `@path58/p58-n8n`
84
99
  - ESM module support with shebang for direct `npx` execution
85
100
 
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
86
103
  [0.2.0]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.2.0
87
104
  [0.1.1]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.1.1
88
105
  [0.1.0]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.1.0
package/README.md CHANGED
@@ -37,7 +37,10 @@ claude mcp add p58-n8n -- npx -y @path58/p58-n8n
37
37
  "mcpServers": {
38
38
  "p58-n8n": {
39
39
  "command": "npx",
40
- "args": ["-y", "@path58/p58-n8n"]
40
+ "args": ["-y", "@path58/p58-n8n"],
41
+ "env": {
42
+ "P58_DATABASE_URL": "your-supabase-connection-string"
43
+ }
41
44
  }
42
45
  }
43
46
  }
@@ -1,4 +1,24 @@
1
1
  #!/usr/bin/env node
2
+
3
+ // ── MCP stdio transport protection ──────────────────────────────────
4
+ // Redirect console.log → stderr (stdout is JSON-RPC channel)
5
+ var __origLog = console.log.bind(console);
6
+ console.log = function() { console.error.apply(console, arguments); };
7
+
8
+ // Strip ANSI escape codes when stderr is not a TTY
9
+ if (!process.stderr.isTTY) {
10
+ var __origStderrWrite = process.stderr.write.bind(process.stderr);
11
+ process.stderr.write = function(chunk, enc, cb) {
12
+ if (typeof chunk === 'string') {
13
+ chunk = chunk.replace(/\x1b\[[0-9;]*m/g, '');
14
+ } else if (Buffer.isBuffer(chunk)) {
15
+ chunk = Buffer.from(chunk.toString().replace(/\x1b\[[0-9;]*m/g, ''));
16
+ }
17
+ return __origStderrWrite(chunk, enc, cb);
18
+ };
19
+ }
20
+ // ── End MCP stdio transport protection ──────────────────────────────
21
+
2
22
  "use strict";
3
23
  var __create = Object.create;
4
24
  var __defProp = Object.defineProperty;
@@ -18421,7 +18441,7 @@ var import_types22 = require("@modelcontextprotocol/sdk/types.js");
18421
18441
  var config = {
18422
18442
  // Server identity
18423
18443
  SERVER_NAME: "p58-n8n",
18424
- SERVER_VERSION: "0.1.0",
18444
+ SERVER_VERSION: "0.2.2",
18425
18445
  // Database configuration (from environment)
18426
18446
  SUPABASE_URL: process.env.SUPABASE_URL,
18427
18447
  SUPABASE_KEY: process.env.SUPABASE_KEY,
@@ -44395,7 +44415,8 @@ server.setRequestHandler(import_types22.CallToolRequestSchema, async (request) =
44395
44415
  async function main() {
44396
44416
  const transport = new import_stdio.StdioServerTransport();
44397
44417
  await server.connect(transport);
44398
- console.error(`${config.SERVER_NAME} v${config.SERVER_VERSION} running on stdio`);
44418
+ const toolCount = getRegisteredTools().length;
44419
+ console.error(`${config.SERVER_NAME} v${config.SERVER_VERSION} running on stdio (${toolCount} tools registered)`);
44399
44420
  registerShutdownHandlers(config.SERVER_NAME);
44400
44421
  warmCredentialCache().catch((e) => console.error("Credential cache warm-up failed:", e));
44401
44422
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@path58/p58-n8n",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "The smartest and fastest n8n MCP server — validate, fix, and discover workflows inside your LLM",
5
5
  "keywords": [
6
6
  "mcp",