@thecodesaiyan/tcs-n8n-mcp 1.1.1 → 1.2.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/build/index.js +16 -8
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -82,16 +82,24 @@ async function runSetup() {
|
|
|
82
82
|
env.N8N_API_USER = apiUser;
|
|
83
83
|
}
|
|
84
84
|
const pkg = "@thecodesaiyan/tcs-n8n-mcp";
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
env
|
|
89
|
-
};
|
|
85
|
+
const isWindows = process.platform === "win32";
|
|
86
|
+
const stdioCfg = isWindows
|
|
87
|
+
? { command: "tcs-n8n-mcp", args: [], env }
|
|
88
|
+
: { command: "npx", args: ["-y", pkg], env };
|
|
90
89
|
const envFlags = Object.entries(env)
|
|
91
90
|
.map(([k, v]) => `-e ${k}=${v}`)
|
|
92
91
|
.join(" ");
|
|
92
|
+
if (isWindows) {
|
|
93
|
+
console.log(" ── Prerequisites (Windows) ──");
|
|
94
|
+
console.log(` npm install -g ${pkg}\n`);
|
|
95
|
+
}
|
|
93
96
|
console.log(" ── Claude Code ──");
|
|
94
|
-
|
|
97
|
+
if (isWindows) {
|
|
98
|
+
console.log(` claude mcp add tcs-n8n-mcp ${envFlags} -- tcs-n8n-mcp\n`);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
console.log(` claude mcp add tcs-n8n-mcp ${envFlags} -- npx -y ${pkg}\n`);
|
|
102
|
+
}
|
|
95
103
|
console.log(" ── Claude Desktop / Windsurf ──");
|
|
96
104
|
console.log(" Add to your config JSON under \"mcpServers\":\n");
|
|
97
105
|
console.log(` "tcs-n8n-mcp": ${JSON.stringify(stdioCfg, null, 4)}\n`);
|
|
@@ -140,7 +148,7 @@ const n8nFetch = (path, options = {}) => {
|
|
|
140
148
|
};
|
|
141
149
|
const server = new McpServer({
|
|
142
150
|
name: "@thecodesaiyan/tcs-n8n-mcp",
|
|
143
|
-
version: "1.
|
|
151
|
+
version: "1.2.0",
|
|
144
152
|
});
|
|
145
153
|
// Register all tool modules
|
|
146
154
|
registerWorkflowTools(server, n8nFetch);
|
|
@@ -157,7 +165,7 @@ async function main() {
|
|
|
157
165
|
}
|
|
158
166
|
const transport = new StdioServerTransport();
|
|
159
167
|
await server.connect(transport);
|
|
160
|
-
console.error("@thecodesaiyan/tcs-n8n-mcp v1.
|
|
168
|
+
console.error("@thecodesaiyan/tcs-n8n-mcp v1.2.0 running on stdio (22 tools)");
|
|
161
169
|
}
|
|
162
170
|
main().catch((error) => {
|
|
163
171
|
console.error("Fatal error:", error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thecodesaiyan/tcs-n8n-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "MCP server for n8n workflow automation. Manage workflows, executions, tags, variables, credentials and users via the Model Context Protocol.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/index.js",
|