n8n-mcp 2.104.1 โ 2.104.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/dist/http-server-single-session.d.ts.map +1 -1
- package/dist/http-server-single-session.js +2 -5
- package/dist/http-server-single-session.js.map +1 -1
- package/dist/http-server.d.ts.map +1 -1
- package/dist/http-server.js +2 -4
- package/dist/http-server.js.map +1 -1
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +21 -37
- package/dist/mcp/server.js.map +1 -1
- package/dist/utils/protocol-version.d.ts +3 -18
- package/dist/utils/protocol-version.d.ts.map +1 -1
- package/dist/utils/protocol-version.js +7 -90
- package/dist/utils/protocol-version.js.map +1 -1
- package/package.json +1 -1
- package/dist/scripts/test-protocol-negotiation.d.ts +0 -3
- package/dist/scripts/test-protocol-negotiation.d.ts.map +0 -1
- package/dist/scripts/test-protocol-negotiation.js +0 -154
- package/dist/scripts/test-protocol-negotiation.js.map +0 -1
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
}
|
|
6
|
-
export interface ProtocolNegotiationResult {
|
|
7
|
-
version: string;
|
|
8
|
-
isN8nClient: boolean;
|
|
9
|
-
reasoning: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const STANDARD_PROTOCOL_VERSION = "2025-03-26";
|
|
12
|
-
export declare const N8N_PROTOCOL_VERSION = "2024-11-05";
|
|
13
|
-
export declare const SUPPORTED_VERSIONS: string[];
|
|
14
|
-
export declare function isN8nClient(clientInfo?: ClientInfo, userAgent?: string, headers?: Record<string, string | string[] | undefined>): boolean;
|
|
15
|
-
export declare function negotiateProtocolVersion(clientRequestedVersion?: string, clientInfo?: ClientInfo, userAgent?: string, headers?: Record<string, string | string[] | undefined>): ProtocolNegotiationResult;
|
|
16
|
-
export declare function isVersionSupported(version: string): boolean;
|
|
17
|
-
export declare function getCompatibleVersion(targetVersion?: string): string;
|
|
18
|
-
export declare function logProtocolNegotiation(result: ProtocolNegotiationResult, logger: any, context?: string): void;
|
|
1
|
+
import { LATEST_PROTOCOL_VERSION } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
export { LATEST_PROTOCOL_VERSION };
|
|
3
|
+
export declare function negotiateProtocolVersion(requestedVersion: unknown): string;
|
|
19
4
|
//# sourceMappingURL=protocol-version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-version.d.ts","sourceRoot":"","sources":["../../src/utils/protocol-version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"protocol-version.d.ts","sourceRoot":"","sources":["../../src/utils/protocol-version.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,uBAAuB,EAExB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAMnC,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE,OAAO,GAAG,MAAM,CAI1E"}
|
|
@@ -1,95 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.isN8nClient = isN8nClient;
|
|
3
|
+
exports.LATEST_PROTOCOL_VERSION = void 0;
|
|
5
4
|
exports.negotiateProtocolVersion = negotiateProtocolVersion;
|
|
6
|
-
|
|
7
|
-
exports.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.STANDARD_PROTOCOL_VERSION,
|
|
13
|
-
exports.N8N_PROTOCOL_VERSION,
|
|
14
|
-
'2024-06-25',
|
|
15
|
-
];
|
|
16
|
-
function isN8nClient(clientInfo, userAgent, headers) {
|
|
17
|
-
if (clientInfo?.name) {
|
|
18
|
-
const clientName = clientInfo.name.toLowerCase();
|
|
19
|
-
if (clientName.includes('n8n') || clientName.includes('langchain')) {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
if (userAgent) {
|
|
24
|
-
const ua = userAgent.toLowerCase();
|
|
25
|
-
if (ua.includes('n8n') || ua.includes('langchain')) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
if (headers) {
|
|
30
|
-
const headerValues = Object.values(headers).join(' ').toLowerCase();
|
|
31
|
-
if (headerValues.includes('n8n') || headerValues.includes('langchain')) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
if (headers['x-n8n-version'] || headers['x-langchain-version']) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (process.env.N8N_MODE === 'true') {
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
function negotiateProtocolVersion(clientRequestedVersion, clientInfo, userAgent, headers) {
|
|
44
|
-
const isN8n = isN8nClient(clientInfo, userAgent, headers);
|
|
45
|
-
if (isN8n) {
|
|
46
|
-
return {
|
|
47
|
-
version: exports.N8N_PROTOCOL_VERSION,
|
|
48
|
-
isN8nClient: true,
|
|
49
|
-
reasoning: 'n8n client detected, using n8n-compatible protocol version'
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
if (clientRequestedVersion && exports.SUPPORTED_VERSIONS.includes(clientRequestedVersion)) {
|
|
53
|
-
return {
|
|
54
|
-
version: clientRequestedVersion,
|
|
55
|
-
isN8nClient: false,
|
|
56
|
-
reasoning: `Using client-requested version: ${clientRequestedVersion}`
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
if (clientRequestedVersion) {
|
|
60
|
-
return {
|
|
61
|
-
version: exports.STANDARD_PROTOCOL_VERSION,
|
|
62
|
-
isN8nClient: false,
|
|
63
|
-
reasoning: `Client requested unsupported version ${clientRequestedVersion}, using standard version`
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
version: exports.STANDARD_PROTOCOL_VERSION,
|
|
68
|
-
isN8nClient: false,
|
|
69
|
-
reasoning: 'No specific client detected, using standard protocol version'
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function isVersionSupported(version) {
|
|
73
|
-
return exports.SUPPORTED_VERSIONS.includes(version);
|
|
74
|
-
}
|
|
75
|
-
function getCompatibleVersion(targetVersion) {
|
|
76
|
-
if (!targetVersion) {
|
|
77
|
-
return exports.STANDARD_PROTOCOL_VERSION;
|
|
78
|
-
}
|
|
79
|
-
if (exports.SUPPORTED_VERSIONS.includes(targetVersion)) {
|
|
80
|
-
return targetVersion;
|
|
81
|
-
}
|
|
82
|
-
return exports.STANDARD_PROTOCOL_VERSION;
|
|
83
|
-
}
|
|
84
|
-
function logProtocolNegotiation(result, logger, context) {
|
|
85
|
-
const logContext = context ? `[${context}] ` : '';
|
|
86
|
-
logger.info(`${logContext}Protocol version negotiated`, {
|
|
87
|
-
version: result.version,
|
|
88
|
-
isN8nClient: result.isN8nClient,
|
|
89
|
-
reasoning: result.reasoning
|
|
90
|
-
});
|
|
91
|
-
if (result.isN8nClient) {
|
|
92
|
-
logger.info(`${logContext}Using n8n-compatible protocol version for better integration`);
|
|
93
|
-
}
|
|
5
|
+
const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
6
|
+
Object.defineProperty(exports, "LATEST_PROTOCOL_VERSION", { enumerable: true, get: function () { return types_js_1.LATEST_PROTOCOL_VERSION; } });
|
|
7
|
+
function negotiateProtocolVersion(requestedVersion) {
|
|
8
|
+
return typeof requestedVersion === 'string' && types_js_1.SUPPORTED_PROTOCOL_VERSIONS.includes(requestedVersion)
|
|
9
|
+
? requestedVersion
|
|
10
|
+
: types_js_1.LATEST_PROTOCOL_VERSION;
|
|
94
11
|
}
|
|
95
12
|
//# sourceMappingURL=protocol-version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-version.js","sourceRoot":"","sources":["../../src/utils/protocol-version.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"protocol-version.js","sourceRoot":"","sources":["../../src/utils/protocol-version.ts"],"names":[],"mappings":";;;AAmBA,4DAIC;AAfD,iEAG4C;AAEnC,wGAJP,kCAAuB,OAIO;AAMhC,SAAgB,wBAAwB,CAAC,gBAAyB;IAChE,OAAO,OAAO,gBAAgB,KAAK,QAAQ,IAAI,sCAA2B,CAAC,QAAQ,CAAC,gBAAgB,CAAC;QACnG,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,kCAAuB,CAAC;AAC9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-protocol-negotiation.d.ts","sourceRoot":"","sources":["../../src/scripts/test-protocol-negotiation.ts"],"names":[],"mappings":""}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const protocol_version_1 = require("../utils/protocol-version");
|
|
5
|
-
const testCases = [
|
|
6
|
-
{
|
|
7
|
-
name: 'Standard MCP client (Claude Desktop)',
|
|
8
|
-
clientVersion: '2025-03-26',
|
|
9
|
-
clientInfo: { name: 'Claude Desktop', version: '1.0.0' },
|
|
10
|
-
expectedVersion: '2025-03-26',
|
|
11
|
-
expectedIsN8nClient: false
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
name: 'n8n client with specific client info',
|
|
15
|
-
clientVersion: '2025-03-26',
|
|
16
|
-
clientInfo: { name: 'n8n', version: '1.0.0' },
|
|
17
|
-
expectedVersion: protocol_version_1.N8N_PROTOCOL_VERSION,
|
|
18
|
-
expectedIsN8nClient: true
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: 'LangChain client',
|
|
22
|
-
clientVersion: '2025-03-26',
|
|
23
|
-
clientInfo: { name: 'langchain-js', version: '0.1.0' },
|
|
24
|
-
expectedVersion: protocol_version_1.N8N_PROTOCOL_VERSION,
|
|
25
|
-
expectedIsN8nClient: true
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'n8n client via user agent',
|
|
29
|
-
clientVersion: '2025-03-26',
|
|
30
|
-
userAgent: 'n8n/1.0.0',
|
|
31
|
-
expectedVersion: protocol_version_1.N8N_PROTOCOL_VERSION,
|
|
32
|
-
expectedIsN8nClient: true
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: 'n8n mode environment variable',
|
|
36
|
-
clientVersion: '2025-03-26',
|
|
37
|
-
expectedVersion: protocol_version_1.N8N_PROTOCOL_VERSION,
|
|
38
|
-
expectedIsN8nClient: true
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'Client requesting older version',
|
|
42
|
-
clientVersion: '2024-06-25',
|
|
43
|
-
clientInfo: { name: 'Some Client', version: '1.0.0' },
|
|
44
|
-
expectedVersion: '2024-06-25',
|
|
45
|
-
expectedIsN8nClient: false
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: 'Client requesting unsupported version',
|
|
49
|
-
clientVersion: '2020-01-01',
|
|
50
|
-
clientInfo: { name: 'Old Client', version: '1.0.0' },
|
|
51
|
-
expectedVersion: protocol_version_1.STANDARD_PROTOCOL_VERSION,
|
|
52
|
-
expectedIsN8nClient: false
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: 'No client info provided',
|
|
56
|
-
expectedVersion: protocol_version_1.STANDARD_PROTOCOL_VERSION,
|
|
57
|
-
expectedIsN8nClient: false
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'n8n headers detection',
|
|
61
|
-
clientVersion: '2025-03-26',
|
|
62
|
-
headers: { 'x-n8n-version': '1.0.0' },
|
|
63
|
-
expectedVersion: protocol_version_1.N8N_PROTOCOL_VERSION,
|
|
64
|
-
expectedIsN8nClient: true
|
|
65
|
-
}
|
|
66
|
-
];
|
|
67
|
-
async function runTests() {
|
|
68
|
-
console.log('๐งช Testing Protocol Version Negotiation\n');
|
|
69
|
-
let passed = 0;
|
|
70
|
-
let failed = 0;
|
|
71
|
-
const originalN8nMode = process.env.N8N_MODE;
|
|
72
|
-
for (const testCase of testCases) {
|
|
73
|
-
try {
|
|
74
|
-
if (testCase.name.includes('environment variable')) {
|
|
75
|
-
process.env.N8N_MODE = 'true';
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
delete process.env.N8N_MODE;
|
|
79
|
-
}
|
|
80
|
-
const detectedAsN8n = (0, protocol_version_1.isN8nClient)(testCase.clientInfo, testCase.userAgent, testCase.headers);
|
|
81
|
-
const result = (0, protocol_version_1.negotiateProtocolVersion)(testCase.clientVersion, testCase.clientInfo, testCase.userAgent, testCase.headers);
|
|
82
|
-
const versionCorrect = result.version === testCase.expectedVersion;
|
|
83
|
-
const n8nDetectionCorrect = result.isN8nClient === testCase.expectedIsN8nClient;
|
|
84
|
-
const isN8nFunctionCorrect = detectedAsN8n === testCase.expectedIsN8nClient;
|
|
85
|
-
if (versionCorrect && n8nDetectionCorrect && isN8nFunctionCorrect) {
|
|
86
|
-
console.log(`โ
${testCase.name}`);
|
|
87
|
-
console.log(` Version: ${result.version}, n8n client: ${result.isN8nClient}`);
|
|
88
|
-
console.log(` Reasoning: ${result.reasoning}\n`);
|
|
89
|
-
passed++;
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
console.log(`โ ${testCase.name}`);
|
|
93
|
-
console.log(` Expected: version=${testCase.expectedVersion}, isN8n=${testCase.expectedIsN8nClient}`);
|
|
94
|
-
console.log(` Got: version=${result.version}, isN8n=${result.isN8nClient}`);
|
|
95
|
-
console.log(` isN8nClient function: ${detectedAsN8n} (expected: ${testCase.expectedIsN8nClient})`);
|
|
96
|
-
console.log(` Reasoning: ${result.reasoning}\n`);
|
|
97
|
-
failed++;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
catch (error) {
|
|
101
|
-
console.log(`๐ฅ ${testCase.name} - ERROR`);
|
|
102
|
-
console.log(` ${error instanceof Error ? error.message : String(error)}\n`);
|
|
103
|
-
failed++;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
if (originalN8nMode) {
|
|
107
|
-
process.env.N8N_MODE = originalN8nMode;
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
delete process.env.N8N_MODE;
|
|
111
|
-
}
|
|
112
|
-
console.log(`\n๐ Test Results:`);
|
|
113
|
-
console.log(` โ
Passed: ${passed}`);
|
|
114
|
-
console.log(` โ Failed: ${failed}`);
|
|
115
|
-
console.log(` Total: ${passed + failed}`);
|
|
116
|
-
if (failed > 0) {
|
|
117
|
-
console.log(`\nโ Some tests failed!`);
|
|
118
|
-
process.exit(1);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
console.log(`\n๐ All tests passed!`);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
async function testIntegration() {
|
|
125
|
-
console.log('\n๐ง Integration Test - MCP Server Protocol Negotiation\n');
|
|
126
|
-
const scenarios = [
|
|
127
|
-
{
|
|
128
|
-
name: 'Claude Desktop connecting',
|
|
129
|
-
clientInfo: { name: 'Claude Desktop', version: '1.0.0' },
|
|
130
|
-
clientVersion: '2025-03-26'
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
name: 'n8n connecting via HTTP',
|
|
134
|
-
headers: { 'user-agent': 'n8n/1.52.0' },
|
|
135
|
-
clientVersion: '2025-03-26'
|
|
136
|
-
}
|
|
137
|
-
];
|
|
138
|
-
for (const scenario of scenarios) {
|
|
139
|
-
const result = (0, protocol_version_1.negotiateProtocolVersion)(scenario.clientVersion, scenario.clientInfo, scenario.headers?.['user-agent'], scenario.headers);
|
|
140
|
-
console.log(`๐ ${scenario.name}:`);
|
|
141
|
-
console.log(` Negotiated version: ${result.version}`);
|
|
142
|
-
console.log(` Is n8n client: ${result.isN8nClient}`);
|
|
143
|
-
console.log(` Reasoning: ${result.reasoning}\n`);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
if (require.main === module) {
|
|
147
|
-
runTests()
|
|
148
|
-
.then(() => testIntegration())
|
|
149
|
-
.catch(error => {
|
|
150
|
-
console.error('Test execution failed:', error);
|
|
151
|
-
process.exit(1);
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
//# sourceMappingURL=test-protocol-negotiation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-protocol-negotiation.js","sourceRoot":"","sources":["../../src/scripts/test-protocol-negotiation.ts"],"names":[],"mappings":";;;AAOA,gEAKmC;AAYnC,MAAM,SAAS,GAAe;IAC5B;QACE,IAAI,EAAE,sCAAsC;QAC5C,aAAa,EAAE,YAAY;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,EAAE;QACxD,eAAe,EAAE,YAAY;QAC7B,mBAAmB,EAAE,KAAK;KAC3B;IACD;QACE,IAAI,EAAE,sCAAsC;QAC5C,aAAa,EAAE,YAAY;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;QAC7C,eAAe,EAAE,uCAAoB;QACrC,mBAAmB,EAAE,IAAI;KAC1B;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,aAAa,EAAE,YAAY;QAC3B,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE;QACtD,eAAe,EAAE,uCAAoB;QACrC,mBAAmB,EAAE,IAAI;KAC1B;IACD;QACE,IAAI,EAAE,2BAA2B;QACjC,aAAa,EAAE,YAAY;QAC3B,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE,uCAAoB;QACrC,mBAAmB,EAAE,IAAI;KAC1B;IACD;QACE,IAAI,EAAE,+BAA+B;QACrC,aAAa,EAAE,YAAY;QAC3B,eAAe,EAAE,uCAAoB;QACrC,mBAAmB,EAAE,IAAI;KAC1B;IACD;QACE,I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