@path58/p58-n8n 0.2.1 → 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 +9 -0
- package/README.md +4 -1
- package/dist/mcp/server.bundle.cjs +21 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ 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
|
+
|
|
8
16
|
## [0.2.1] - 2026-03-09
|
|
9
17
|
|
|
10
18
|
### Fixed
|
|
@@ -90,6 +98,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
90
98
|
- npm package published as `@path58/p58-n8n`
|
|
91
99
|
- ESM module support with shebang for direct `npx` execution
|
|
92
100
|
|
|
101
|
+
[0.2.2]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.2.2
|
|
93
102
|
[0.2.1]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.2.1
|
|
94
103
|
[0.2.0]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.2.0
|
|
95
104
|
[0.1.1]: https://github.com/tsvika58/n8n-workflow-validator/releases/tag/v0.1.1
|
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.2.
|
|
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,
|