@path58/p58-n8n 0.2.9 → 0.2.10
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 +6 -0
- package/dist/mcp/server.bundle.cjs +2 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ 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.10] - 2026-03-11
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **Webhook URL construction bug** — `extractWebhookPath` incorrectly prefixed `{workflowId}/{encodedNodeName}/` to the webhook path, producing URLs like `/webhook/4aDOC5YlrPOTUTgm/webhook/langchain-test-029` instead of `/webhook/langchain-test-029`. This caused 404 errors on every webhook-triggered `test_workflow` and `execute_workflow` call. n8n production webhooks listen at `/webhook/{path}` with no prefix.
|
|
13
|
+
|
|
8
14
|
## [0.2.9] - 2026-03-11
|
|
9
15
|
|
|
10
16
|
### Fixed
|
|
@@ -18473,7 +18473,7 @@ var import_types22 = require("@modelcontextprotocol/sdk/types.js");
|
|
|
18473
18473
|
var config = {
|
|
18474
18474
|
// Server identity
|
|
18475
18475
|
SERVER_NAME: "p58-n8n",
|
|
18476
|
-
SERVER_VERSION: "0.2.
|
|
18476
|
+
SERVER_VERSION: "0.2.10",
|
|
18477
18477
|
// Database configuration (from environment)
|
|
18478
18478
|
SUPABASE_URL: process.env.SUPABASE_URL,
|
|
18479
18479
|
SUPABASE_KEY: process.env.SUPABASE_KEY,
|
|
@@ -37464,16 +37464,7 @@ function extractWebhookPath(workflow) {
|
|
|
37464
37464
|
if (!trigger)
|
|
37465
37465
|
return null;
|
|
37466
37466
|
const params = trigger.parameters ?? {};
|
|
37467
|
-
|
|
37468
|
-
if (!shortPath)
|
|
37469
|
-
return null;
|
|
37470
|
-
const wfId = workflow.id;
|
|
37471
|
-
const nodeName = trigger.name ?? "Webhook";
|
|
37472
|
-
if (wfId) {
|
|
37473
|
-
const encodedNodeName = encodeURIComponent(String(nodeName).toLowerCase());
|
|
37474
|
-
return `${wfId}/${encodedNodeName}/${shortPath}`;
|
|
37475
|
-
}
|
|
37476
|
-
return shortPath;
|
|
37467
|
+
return typeof params.path === "string" && params.path.length > 0 && params.path || typeof params.webhookId === "string" && params.webhookId.length > 0 && params.webhookId || typeof trigger.webhookId === "string" && trigger.webhookId.length > 0 && trigger.webhookId || null;
|
|
37477
37468
|
}
|
|
37478
37469
|
function buildN8nHostUrl() {
|
|
37479
37470
|
const apiBase = process.env.N8N_API_BASE_URL ?? process.env.N8N_API_URL ?? "http://localhost:5678/api/v1";
|