n8n-nodes-agnicwallet 1.0.8 → 1.0.9
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.
|
@@ -5,19 +5,18 @@ const n8n_workflow_1 = require("n8n-workflow");
|
|
|
5
5
|
const index_js_1 = require("@modelcontextprotocol/sdk/client/index.js");
|
|
6
6
|
const streamableHttp_js_1 = require("@modelcontextprotocol/sdk/client/streamableHttp.js");
|
|
7
7
|
const tools_1 = require("@langchain/core/tools");
|
|
8
|
+
const agents_1 = require("langchain/agents");
|
|
8
9
|
const zod_1 = require("zod");
|
|
9
10
|
const json_schema_to_zod_1 = require("@n8n/json-schema-to-zod");
|
|
10
11
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
12
|
+
* Toolkit class that wraps MCP tools for n8n AI Agent
|
|
13
|
+
* Extends Toolkit from langchain/agents for proper instanceof checks
|
|
14
|
+
* Uses n8n's bundled langchain via peer dependency (not bundled)
|
|
13
15
|
*/
|
|
14
|
-
class AgnicMcpToolkit {
|
|
16
|
+
class AgnicMcpToolkit extends agents_1.Toolkit {
|
|
15
17
|
constructor(tools) {
|
|
18
|
+
super();
|
|
16
19
|
this.tools = tools;
|
|
17
|
-
this.lc_namespace = ["langchain", "agents", "toolkits"];
|
|
18
|
-
}
|
|
19
|
-
getTools() {
|
|
20
|
-
return this.tools;
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
// Pre-configured AgnicPay MCP endpoint (uses HTTP Streamable transport)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-agnicwallet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "n8n community node for AgnicWallet - automated Web3 payments for X402 APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -70,12 +70,14 @@
|
|
|
70
70
|
"eslint": "^8.54.0",
|
|
71
71
|
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
72
72
|
"gulp": "^4.0.2",
|
|
73
|
+
"langchain": "^0.3.33",
|
|
73
74
|
"n8n-workflow": "^1.40.0",
|
|
74
75
|
"prettier": "^3.1.0",
|
|
75
76
|
"typescript": "^5.3.0"
|
|
76
77
|
},
|
|
77
78
|
"peerDependencies": {
|
|
78
79
|
"@langchain/core": ">=0.2.0",
|
|
80
|
+
"langchain": "^0.3.0",
|
|
79
81
|
"n8n-workflow": "*"
|
|
80
82
|
}
|
|
81
83
|
}
|