@privacyfence/n8n-nodes-privacyfence 0.0.0-stage → 8.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) PrivacyFence
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # @privacyfence/n8n-nodes-privacyfence
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An [n8n](https://n8n.io) community node for [PrivacyFence](https://github.com/privacyfence/privacyfence).
4
+ The **PrivacyFence** node calls a tool your PrivacyFence server lets a workflow use. The address comes
5
+ from the credential, the tool picker lists only what the token may call, `reason` is a field of its
6
+ own, and the result is the tool's JSON. A refused call stops the node with PrivacyFence's own text, or
7
+ becomes an error item when **Continue On Fail** is on. The node can also be used as a tool by an AI Agent.
8
+
9
+ ## Install
10
+
11
+ In n8n, open **Settings → Community nodes → Install** and enter `@privacyfence/n8n-nodes-privacyfence`. On a
12
+ self-hosted n8n you can instead run `npm install @privacyfence/n8n-nodes-privacyfence` in `~/.n8n/nodes` and restart.
13
+
14
+ ## Credential
15
+
16
+ Create a **PrivacyFence API** credential with:
17
+
18
+ - **PrivacyFence MCP address**: your server's `/mcp` address, for example `https://privacyfence.example.org/mcp`.
19
+ - **Token**: a scoped PrivacyFence token.
20
+
21
+ The node sends the token only to that address and never follows a redirect. Press **Test** on the
22
+ credential to check the connection.
23
+
24
+ ## Usage
25
+
26
+ 1. Add the **PrivacyFence** node and pick your credential.
27
+ 2. Choose **Call a Tool**, pick the tool and type a **Reason** (PrivacyFence records it in its audit log).
28
+ 3. Put the tool's arguments in **Arguments** as a JSON object, without `reason`.
29
+
30
+ **List Tools** returns one item per tool the token may call.
31
+
32
+ ## More
33
+
34
+ Documentation: https://github.com/privacyfence/privacyfence/blob/main/docs/n8n-node.md
@@ -0,0 +1,11 @@
1
+ import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class PrivacyFenceApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: {
7
+ readonly light: "file:../nodes/PrivacyFence/privacyfence.svg";
8
+ readonly dark: "file:../nodes/PrivacyFence/privacyfence.dark.svg";
9
+ };
10
+ properties: INodeProperties[];
11
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivacyFenceApi = void 0;
4
+ class PrivacyFenceApi {
5
+ constructor() {
6
+ this.name = 'privacyFenceApi';
7
+ this.displayName = 'PrivacyFence API';
8
+ this.documentationUrl = 'https://github.com/privacyfence/privacyfence/blob/main/docs/n8n-node.md';
9
+ this.icon = {
10
+ light: 'file:../nodes/PrivacyFence/privacyfence.svg',
11
+ dark: 'file:../nodes/PrivacyFence/privacyfence.dark.svg',
12
+ };
13
+ this.properties = [
14
+ {
15
+ displayName: 'PrivacyFence MCP Address',
16
+ name: 'mcpUrl',
17
+ type: 'string',
18
+ required: true,
19
+ default: '',
20
+ placeholder: 'https://privacyfence.example.org/mcp',
21
+ },
22
+ {
23
+ displayName: 'Token',
24
+ name: 'token',
25
+ type: 'string',
26
+ typeOptions: { password: true },
27
+ required: true,
28
+ default: '',
29
+ },
30
+ ];
31
+ }
32
+ }
33
+ exports.PrivacyFenceApi = PrivacyFenceApi;
34
+ //# sourceMappingURL=PrivacyFenceApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrivacyFenceApi.credentials.js","sourceRoot":"","sources":["../../credentials/PrivacyFenceApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAA5B;QACC,SAAI,GAAG,iBAAiB,CAAC;QAEzB,gBAAW,GAAG,kBAAkB,CAAC;QAEjC,qBAAgB,GAAG,yEAAyE,CAAC;QAE7F,SAAI,GAAG;YACN,KAAK,EAAE,6CAA6C;YACpD,IAAI,EAAE,kDAAkD;SAC/C,CAAC;QAEX,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,0BAA0B;gBACvC,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sCAAsC;aACnD;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAC;IACH,CAAC;CAAA;AA9BD,0CA8BC"}
@@ -0,0 +1,16 @@
1
+ import type { ICredentialTestFunctions, ICredentialsDecrypted, IExecuteFunctions, ILoadOptionsFunctions, INodeCredentialTestResult, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ declare function getTools(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
3
+ declare function privacyFenceApiTest(this: ICredentialTestFunctions, credential: ICredentialsDecrypted): Promise<INodeCredentialTestResult>;
4
+ export declare class PrivacyFence implements INodeType {
5
+ description: INodeTypeDescription;
6
+ methods: {
7
+ loadOptions: {
8
+ getTools: typeof getTools;
9
+ };
10
+ credentialTest: {
11
+ privacyFenceApiTest: typeof privacyFenceApiTest;
12
+ };
13
+ };
14
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
15
+ }
16
+ export {};
@@ -0,0 +1,351 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PrivacyFence = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const mcpClient_1 = require("./transport/mcpClient");
6
+ const result_1 = require("./transport/result");
7
+ const CREDENTIAL_NAME = 'privacyFenceApi';
8
+ const CLIENT_VERSION = '0.0.0';
9
+ const DEFAULT_TIMEOUT_MS = 60000;
10
+ const MAX_DESCRIPTION = 200;
11
+ const MISSING_CONNECTION = 'The PrivacyFence credential needs an address and a token.';
12
+ const UNEXPECTED = 'The PrivacyFence node failed unexpectedly.';
13
+ const BAD_ARGUMENTS = 'The arguments must be a JSON object.';
14
+ function isRecord(value) {
15
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
16
+ }
17
+ function connectionFrom(data) {
18
+ const url = typeof (data === null || data === void 0 ? void 0 : data.mcpUrl) === 'string' ? data.mcpUrl.trim() : '';
19
+ const token = typeof (data === null || data === void 0 ? void 0 : data.token) === 'string' ? data.token.trim() : '';
20
+ return url === '' || token === '' ? undefined : { url, token };
21
+ }
22
+ async function readConnection(context) {
23
+ const data = await context.getCredentials(CREDENTIAL_NAME);
24
+ const connection = connectionFrom(data);
25
+ if (!connection)
26
+ throw new n8n_workflow_1.NodeOperationError(context.getNode(), MISSING_CONNECTION);
27
+ return connection;
28
+ }
29
+ function lowerHeaders(headers) {
30
+ const out = {};
31
+ if (!isRecord(headers))
32
+ return out;
33
+ for (const [key, raw] of Object.entries(headers)) {
34
+ const value = raw;
35
+ if (typeof value === 'string')
36
+ out[key.toLowerCase()] = value;
37
+ else if (Array.isArray(value))
38
+ out[key.toLowerCase()] = value.join(', ');
39
+ }
40
+ return out;
41
+ }
42
+ function makeSend(context) {
43
+ return async (request) => {
44
+ let response;
45
+ let failed = false;
46
+ try {
47
+ response = await context.helpers.httpRequest({
48
+ method: request.method,
49
+ url: request.url,
50
+ headers: request.headers,
51
+ body: request.body,
52
+ timeout: request.timeoutMs,
53
+ returnFullResponse: true,
54
+ ignoreHttpStatusErrors: true,
55
+ disableFollowRedirect: true,
56
+ encoding: 'text',
57
+ json: false,
58
+ });
59
+ }
60
+ catch {
61
+ failed = true;
62
+ }
63
+ if (failed || !isRecord(response))
64
+ throw new n8n_workflow_1.UnexpectedError('unreachable');
65
+ const mapped = {
66
+ status: typeof response.statusCode === 'number' ? response.statusCode : 0,
67
+ headers: lowerHeaders(response.headers),
68
+ body: typeof response.body === 'string' ? response.body : '',
69
+ };
70
+ return mapped;
71
+ };
72
+ }
73
+ function makeTestSend(context) {
74
+ return async (request) => {
75
+ let response;
76
+ let failed = false;
77
+ try {
78
+ response = await context.helpers.request({
79
+ method: request.method,
80
+ uri: request.url,
81
+ headers: request.headers,
82
+ body: request.body,
83
+ timeout: request.timeoutMs,
84
+ resolveWithFullResponse: true,
85
+ simple: false,
86
+ followRedirect: false,
87
+ followAllRedirects: false,
88
+ json: false,
89
+ });
90
+ }
91
+ catch {
92
+ failed = true;
93
+ }
94
+ if (failed || !isRecord(response))
95
+ throw new n8n_workflow_1.UnexpectedError('unreachable');
96
+ const mapped = {
97
+ status: typeof response.statusCode === 'number' ? response.statusCode : 0,
98
+ headers: lowerHeaders(response.headers),
99
+ body: typeof response.body === 'string' ? response.body : '',
100
+ };
101
+ return mapped;
102
+ };
103
+ }
104
+ function visibleTools(tools) {
105
+ return tools
106
+ .filter((tool) => !tool.name.startsWith('privacyfence_') || tool.name === 'privacyfence_status')
107
+ .sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
108
+ }
109
+ function isReadOnly(tool) {
110
+ return isRecord(tool.annotations) && tool.annotations.readOnlyHint === true;
111
+ }
112
+ async function getTools() {
113
+ const connection = await readConnection(this);
114
+ const send = makeSend(this);
115
+ let failure;
116
+ let options = [];
117
+ let session;
118
+ try {
119
+ session = await (0, mcpClient_1.openSession)(send, {
120
+ ...connection,
121
+ timeoutMs: DEFAULT_TIMEOUT_MS,
122
+ clientVersion: CLIENT_VERSION,
123
+ });
124
+ const tools = visibleTools(await session.listTools());
125
+ options = tools.map((tool) => ({
126
+ name: tool.name,
127
+ value: tool.name,
128
+ description: tool.description.slice(0, MAX_DESCRIPTION),
129
+ }));
130
+ }
131
+ catch (error) {
132
+ failure = error instanceof mcpClient_1.McpTransportError ? error.message : UNEXPECTED;
133
+ }
134
+ finally {
135
+ if (session)
136
+ await session.close();
137
+ }
138
+ if (failure !== undefined)
139
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), failure);
140
+ return options;
141
+ }
142
+ async function privacyFenceApiTest(credential) {
143
+ const connection = connectionFrom(credential.data);
144
+ if (!connection)
145
+ return { status: 'Error', message: MISSING_CONNECTION };
146
+ const send = makeTestSend(this);
147
+ let message;
148
+ let count = 0;
149
+ let session;
150
+ try {
151
+ session = await (0, mcpClient_1.openSession)(send, {
152
+ ...connection,
153
+ timeoutMs: DEFAULT_TIMEOUT_MS,
154
+ clientVersion: CLIENT_VERSION,
155
+ });
156
+ count = (await session.listTools()).length;
157
+ }
158
+ catch (error) {
159
+ message = error instanceof mcpClient_1.McpTransportError ? error.message : UNEXPECTED;
160
+ }
161
+ finally {
162
+ if (session)
163
+ await session.close();
164
+ }
165
+ if (message !== undefined)
166
+ return { status: 'Error', message };
167
+ return {
168
+ status: 'OK',
169
+ message: `Connected to PrivacyFence. ${count} tools are available to this token.`,
170
+ };
171
+ }
172
+ class PrivacyFence {
173
+ constructor() {
174
+ this.description = {
175
+ displayName: 'PrivacyFence',
176
+ name: 'privacyFence',
177
+ icon: {
178
+ light: 'file:privacyfence.svg',
179
+ dark: 'file:privacyfence.dark.svg',
180
+ },
181
+ group: ['transform'],
182
+ version: 1,
183
+ subtitle: '={{$parameter["operation"] === "listTools" ? "List tools" : $parameter["tool"]}}',
184
+ description: 'Call a tool your PrivacyFence server lets this workflow use',
185
+ defaults: {
186
+ name: 'PrivacyFence',
187
+ },
188
+ usableAsTool: true,
189
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
190
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
191
+ credentials: [
192
+ {
193
+ name: 'privacyFenceApi',
194
+ required: true,
195
+ testedBy: 'privacyFenceApiTest',
196
+ },
197
+ ],
198
+ properties: [
199
+ {
200
+ displayName: 'Operation',
201
+ name: 'operation',
202
+ type: 'options',
203
+ noDataExpression: true,
204
+ options: [
205
+ { name: 'Call a Tool', value: 'callTool' },
206
+ { name: 'List Tools', value: 'listTools' },
207
+ ],
208
+ default: 'callTool',
209
+ },
210
+ {
211
+ displayName: 'Tool Name or ID',
212
+ name: 'tool',
213
+ type: 'options',
214
+ typeOptions: { loadOptionsMethod: 'getTools' },
215
+ required: true,
216
+ default: '',
217
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
218
+ displayOptions: { show: { operation: ['callTool'] } },
219
+ },
220
+ {
221
+ displayName: 'Reason',
222
+ name: 'reason',
223
+ type: 'string',
224
+ required: true,
225
+ default: '={{ "n8n workflow: " + $workflow.name }}',
226
+ description: 'Why this call is made. PrivacyFence records it in its audit log.',
227
+ displayOptions: { show: { operation: ['callTool'] } },
228
+ },
229
+ {
230
+ displayName: 'Arguments',
231
+ name: 'arguments',
232
+ type: 'json',
233
+ default: '{}',
234
+ description: "The tool's arguments as a JSON object, without reason",
235
+ displayOptions: { show: { operation: ['callTool'] } },
236
+ },
237
+ {
238
+ displayName: 'Options',
239
+ name: 'options',
240
+ type: 'collection',
241
+ placeholder: 'Add Option',
242
+ default: {},
243
+ options: [
244
+ {
245
+ displayName: 'Timeout',
246
+ name: 'timeout',
247
+ type: 'number',
248
+ typeOptions: { minValue: 1000 },
249
+ default: 60000,
250
+ description: 'Maximum time in milliseconds to wait for PrivacyFence',
251
+ },
252
+ ],
253
+ },
254
+ ],
255
+ };
256
+ this.methods = {
257
+ loadOptions: { getTools },
258
+ credentialTest: { privacyFenceApiTest },
259
+ };
260
+ }
261
+ async execute() {
262
+ const items = this.getInputData();
263
+ const returnData = [];
264
+ const connection = await readConnection(this);
265
+ const send = makeSend(this);
266
+ let session;
267
+ try {
268
+ for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
269
+ const pairedItem = { item: itemIndex };
270
+ let failure;
271
+ try {
272
+ const operation = this.getNodeParameter('operation', itemIndex, 'callTool');
273
+ const options = this.getNodeParameter('options', itemIndex, {});
274
+ const timeoutMs = typeof options.timeout === 'number' && options.timeout >= 1000
275
+ ? options.timeout
276
+ : DEFAULT_TIMEOUT_MS;
277
+ if (operation === 'listTools') {
278
+ if (!session) {
279
+ session = await (0, mcpClient_1.openSession)(send, {
280
+ ...connection,
281
+ timeoutMs,
282
+ clientVersion: CLIENT_VERSION,
283
+ });
284
+ }
285
+ const tools = visibleTools(await session.listTools());
286
+ for (const tool of tools) {
287
+ returnData.push({
288
+ json: {
289
+ name: tool.name,
290
+ description: tool.description,
291
+ readOnly: isReadOnly(tool),
292
+ },
293
+ pairedItem: { item: 0 },
294
+ });
295
+ }
296
+ break;
297
+ }
298
+ const tool = this.getNodeParameter('tool', itemIndex, '');
299
+ const reason = this.getNodeParameter('reason', itemIndex, '');
300
+ const rawArguments = this.getNodeParameter('arguments', itemIndex, '{}');
301
+ let parsed = rawArguments;
302
+ if (typeof rawArguments === 'string') {
303
+ try {
304
+ parsed = rawArguments.trim() === '' ? {} : JSON.parse(rawArguments);
305
+ }
306
+ catch {
307
+ parsed = undefined;
308
+ }
309
+ }
310
+ if (!isRecord(parsed)) {
311
+ failure = BAD_ARGUMENTS;
312
+ }
313
+ else {
314
+ if (!session) {
315
+ session = await (0, mcpClient_1.openSession)(send, {
316
+ ...connection,
317
+ timeoutMs,
318
+ clientVersion: CLIENT_VERSION,
319
+ });
320
+ }
321
+ const mapped = (0, result_1.toItem)(await session.callTool(tool, { ...parsed, reason }));
322
+ if ('error' in mapped)
323
+ failure = mapped.error;
324
+ else
325
+ returnData.push({ json: mapped.json, pairedItem });
326
+ }
327
+ }
328
+ catch (error) {
329
+ failure = error instanceof mcpClient_1.McpTransportError ? error.message : UNEXPECTED;
330
+ }
331
+ if (failure !== undefined) {
332
+ if (this.continueOnFail()) {
333
+ returnData.push({ json: { error: failure }, pairedItem });
334
+ }
335
+ else {
336
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), failure, {
337
+ itemIndex,
338
+ });
339
+ }
340
+ }
341
+ }
342
+ }
343
+ finally {
344
+ if (session)
345
+ await session.close();
346
+ }
347
+ return [returnData];
348
+ }
349
+ }
350
+ exports.PrivacyFence = PrivacyFence;
351
+ //# sourceMappingURL=PrivacyFence.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrivacyFence.node.js","sourceRoot":"","sources":["../../../nodes/PrivacyFence/PrivacyFence.node.ts"],"names":[],"mappings":";;;AAaA,+CAAwF;AAGxF,qDAAuE;AACvE,+CAA4C;AAE5C,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAC1C,MAAM,cAAc,GAAG,OAAO,CAAC;AAC/B,MAAM,kBAAkB,GAAG,KAAK,CAAC;AACjC,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,MAAM,kBAAkB,GAAG,2DAA2D,CAAC;AACvF,MAAM,UAAU,GAAG,4CAA4C,CAAC;AAChE,MAAM,aAAa,GAAG,sCAAsC,CAAC;AAS7D,SAAS,QAAQ,CAAC,KAAc;IAC/B,OAAO,OAAO,KAA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,MAAM,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;wBAC3E,IAAI,OAAO,IAAI,MAAM;4BAAE,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;;4BACzC,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,IAAmB,EAAE,UAAU,EAAE,CAAC,CAAC;oBACxE,CAAC;gBACF,CAAC;gBAAC,OAAO,KAAK,EAAE,CAAC;oBAChB,OAAO,GAAG,KAAK,YAAY,6BAAiB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC;gBAC3E,CAAC;gBACD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;oBAC3B,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;wBAC3B,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;oBAC3D,CAAC;yBAAM,CAAC;wBACP,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE;4BACrD,SAAS;yBACT,CAAC,CAAC;oBACJ,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;gBAAS,CAAC;YACV,IAAI,OAAO;gBAAE,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC;QACpC,CAAC;QACD,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA7KD,oCA6KC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "@privacyfence/n8n-nodes-privacyfence.privacyFence",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://github.com/privacyfence/privacyfence/blob/main/docs/n8n-node.md"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/privacyfence/privacyfence/blob/main/docs/n8n-node.md"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" fill="none" stroke="#f3f4f6" stroke-width="4" stroke-linejoin="round"><path d="M30 6 L50 14 V30 C50 42 41 51 30 55 C19 51 10 42 10 30 V14 Z"/><path d="M21 30 L28 37 L40 23" stroke-linecap="round"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60" fill="none" stroke="#1f2937" stroke-width="4" stroke-linejoin="round"><path d="M30 6 L50 14 V30 C50 42 41 51 30 55 C19 51 10 42 10 30 V14 Z"/><path d="M21 30 L28 37 L40 23" stroke-linecap="round"/></svg>
@@ -0,0 +1,47 @@
1
+ export interface HttpRequest {
2
+ method: 'POST' | 'DELETE';
3
+ url: string;
4
+ headers: Record<string, string>;
5
+ body?: string;
6
+ timeoutMs: number;
7
+ }
8
+ export interface HttpResponse {
9
+ status: number;
10
+ headers: Record<string, string>;
11
+ body: string;
12
+ }
13
+ export type HttpSend = (request: HttpRequest) => Promise<HttpResponse>;
14
+ export declare class McpTransportError extends Error {
15
+ constructor(message: string);
16
+ }
17
+ export interface McpTool {
18
+ name: string;
19
+ description: string;
20
+ inputSchema: unknown;
21
+ annotations?: unknown;
22
+ }
23
+ export interface CallToolResult {
24
+ content: Array<{
25
+ type: string;
26
+ text?: string;
27
+ }>;
28
+ isError?: boolean;
29
+ structuredContent?: unknown;
30
+ _meta?: Record<string, unknown>;
31
+ }
32
+ export interface McpSession {
33
+ listTools(): Promise<McpTool[]>;
34
+ callTool(name: string, args: Record<string, unknown>): Promise<CallToolResult>;
35
+ close(): Promise<void>;
36
+ }
37
+ export interface OpenSessionOptions {
38
+ url: string;
39
+ token: string;
40
+ timeoutMs: number;
41
+ clientVersion: string;
42
+ }
43
+ export declare const REQUESTED_VERSION = "2025-11-25";
44
+ export declare const SUPPORTED_VERSIONS: readonly string[];
45
+ export declare const MAX_BODY_CHARS = 10000000;
46
+ export declare const MAX_PAGES = 10;
47
+ export declare function openSession(send: HttpSend, options: OpenSessionOptions): Promise<McpSession>;