@thecodesaiyan/tcs-n8n-mcp 1.1.1 → 1.3.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.
Files changed (3) hide show
  1. package/README.md +130 -10
  2. package/build/index.js +16 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -41,19 +41,18 @@ An [MCP](https://modelcontextprotocol.io) server that gives AI assistants full c
41
41
 
42
42
  ### Quick Start
43
43
 
44
- ```bash
45
- npx @thecodesaiyan/tcs-n8n-mcp
46
- ```
47
-
48
- ### Interactive Setup Wizard
49
-
50
- The setup wizard walks you through configuration and tests your connection:
51
-
52
44
  ```bash
53
45
  npx @thecodesaiyan/tcs-n8n-mcp --setup
54
46
  ```
55
47
 
56
- It will prompt for your n8n URL, auth type, and credentials, then output ready-to-paste config for your MCP client.
48
+ The setup wizard walks you through configuration, tests your connection, and outputs ready-to-paste config for your MCP client.
49
+
50
+ > **Windows users:** `npx` cannot resolve bin commands from scoped packages on Windows. Install globally instead:
51
+ >
52
+ > ```bash
53
+ > npm install -g @thecodesaiyan/tcs-n8n-mcp
54
+ > tcs-n8n-mcp --setup
55
+ > ```
57
56
 
58
57
  ### Environment Variables
59
58
 
@@ -86,14 +85,25 @@ npx @thecodesaiyan/tcs-n8n-mcp --setup
86
85
 
87
86
  #### Option B: CLI command
88
87
 
88
+ **macOS / Linux:**
89
+
89
90
  ```bash
90
91
  claude mcp add n8n -e N8N_API_URL=http://localhost:5678 -e N8N_API_KEY=your-api-key -- npx -y @thecodesaiyan/tcs-n8n-mcp
91
92
  ```
92
93
 
94
+ **Windows** (install globally first):
95
+
96
+ ```bash
97
+ npm install -g @thecodesaiyan/tcs-n8n-mcp
98
+ claude mcp add n8n -e N8N_API_URL=http://localhost:5678 -e N8N_API_KEY=your-api-key -- tcs-n8n-mcp
99
+ ```
100
+
93
101
  #### Option C: Manual config
94
102
 
95
103
  Add to `~/.claude.json`:
96
104
 
105
+ **macOS / Linux:**
106
+
97
107
  ```json
98
108
  {
99
109
  "mcpServers": {
@@ -109,6 +119,23 @@ Add to `~/.claude.json`:
109
119
  }
110
120
  ```
111
121
 
122
+ **Windows:**
123
+
124
+ ```json
125
+ {
126
+ "mcpServers": {
127
+ "n8n": {
128
+ "command": "tcs-n8n-mcp",
129
+ "args": [],
130
+ "env": {
131
+ "N8N_API_KEY": "your-api-key-here",
132
+ "N8N_API_URL": "http://localhost:5678"
133
+ }
134
+ }
135
+ }
136
+ }
137
+ ```
138
+
112
139
  </details>
113
140
 
114
141
  <details>
@@ -122,6 +149,8 @@ Add to your Claude Desktop config file:
122
149
  | macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
123
150
  | Linux | `~/.config/Claude/claude_desktop_config.json` |
124
151
 
152
+ **macOS / Linux:**
153
+
125
154
  ```json
126
155
  {
127
156
  "mcpServers": {
@@ -137,6 +166,23 @@ Add to your Claude Desktop config file:
137
166
  }
138
167
  ```
139
168
 
169
+ **Windows** (run `npm install -g @thecodesaiyan/tcs-n8n-mcp` first):
170
+
171
+ ```json
172
+ {
173
+ "mcpServers": {
174
+ "n8n": {
175
+ "command": "tcs-n8n-mcp",
176
+ "args": [],
177
+ "env": {
178
+ "N8N_API_KEY": "your-api-key-here",
179
+ "N8N_API_URL": "http://localhost:5678"
180
+ }
181
+ }
182
+ }
183
+ }
184
+ ```
185
+
140
186
  > Restart Claude Desktop after saving.
141
187
 
142
188
  </details>
@@ -146,6 +192,8 @@ Add to your Claude Desktop config file:
146
192
 
147
193
  Add to `.vscode/mcp.json` in your project, or use **Command Palette** > `MCP: Open User Configuration`:
148
194
 
195
+ **macOS / Linux:**
196
+
149
197
  ```json
150
198
  {
151
199
  "servers": {
@@ -161,6 +209,23 @@ Add to `.vscode/mcp.json` in your project, or use **Command Palette** > `MCP: Op
161
209
  }
162
210
  ```
163
211
 
212
+ **Windows** (run `npm install -g @thecodesaiyan/tcs-n8n-mcp` first):
213
+
214
+ ```json
215
+ {
216
+ "servers": {
217
+ "n8n": {
218
+ "command": "tcs-n8n-mcp",
219
+ "args": [],
220
+ "env": {
221
+ "N8N_API_KEY": "your-api-key-here",
222
+ "N8N_API_URL": "http://localhost:5678"
223
+ }
224
+ }
225
+ }
226
+ }
227
+ ```
228
+
164
229
  </details>
165
230
 
166
231
  <details>
@@ -168,6 +233,8 @@ Add to `.vscode/mcp.json` in your project, or use **Command Palette** > `MCP: Op
168
233
 
169
234
  Add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project-level):
170
235
 
236
+ **macOS / Linux:**
237
+
171
238
  ```json
172
239
  {
173
240
  "mcpServers": {
@@ -183,6 +250,23 @@ Add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project-level):
183
250
  }
184
251
  ```
185
252
 
253
+ **Windows** (run `npm install -g @thecodesaiyan/tcs-n8n-mcp` first):
254
+
255
+ ```json
256
+ {
257
+ "mcpServers": {
258
+ "n8n": {
259
+ "command": "tcs-n8n-mcp",
260
+ "args": [],
261
+ "env": {
262
+ "N8N_API_KEY": "your-api-key-here",
263
+ "N8N_API_URL": "http://localhost:5678"
264
+ }
265
+ }
266
+ }
267
+ }
268
+ ```
269
+
186
270
  </details>
187
271
 
188
272
  <details>
@@ -195,6 +279,8 @@ Add to your Windsurf config file:
195
279
  | Windows | `%USERPROFILE%\.codeium\windsurf\mcp_config.json` |
196
280
  | macOS / Linux | `~/.codeium/windsurf/mcp_config.json` |
197
281
 
282
+ **macOS / Linux:**
283
+
198
284
  ```json
199
285
  {
200
286
  "mcpServers": {
@@ -210,6 +296,23 @@ Add to your Windsurf config file:
210
296
  }
211
297
  ```
212
298
 
299
+ **Windows** (run `npm install -g @thecodesaiyan/tcs-n8n-mcp` first):
300
+
301
+ ```json
302
+ {
303
+ "mcpServers": {
304
+ "n8n": {
305
+ "command": "tcs-n8n-mcp",
306
+ "args": [],
307
+ "env": {
308
+ "N8N_API_KEY": "your-api-key-here",
309
+ "N8N_API_URL": "http://localhost:5678"
310
+ }
311
+ }
312
+ }
313
+ }
314
+ ```
315
+
213
316
  </details>
214
317
 
215
318
  <details>
@@ -217,6 +320,8 @@ Add to your Windsurf config file:
217
320
 
218
321
  Open **MCP Servers** > **Configure** > **Advanced MCP Settings** and add:
219
322
 
323
+ **macOS / Linux:**
324
+
220
325
  ```json
221
326
  {
222
327
  "mcpServers": {
@@ -232,7 +337,22 @@ Open **MCP Servers** > **Configure** > **Advanced MCP Settings** and add:
232
337
  }
233
338
  ```
234
339
 
235
- > **Windows**: If you encounter spawn errors, use `"command": "cmd"` with `"args": ["/c", "npx", "-y", "@thecodesaiyan/tcs-n8n-mcp"]`.
340
+ **Windows** (run `npm install -g @thecodesaiyan/tcs-n8n-mcp` first):
341
+
342
+ ```json
343
+ {
344
+ "mcpServers": {
345
+ "n8n": {
346
+ "command": "tcs-n8n-mcp",
347
+ "args": [],
348
+ "env": {
349
+ "N8N_API_KEY": "your-api-key-here",
350
+ "N8N_API_URL": "http://localhost:5678"
351
+ }
352
+ }
353
+ }
354
+ }
355
+ ```
236
356
 
237
357
  </details>
238
358
 
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 stdioCfg = {
86
- command: "npx",
87
- args: ["-y", pkg],
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
- console.log(` claude mcp add tcs-n8n-mcp ${envFlags} -- npx -y ${pkg}\n`);
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.1.1",
151
+ version: "1.3.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.1.1 running on stdio (22 tools)");
168
+ console.error("@thecodesaiyan/tcs-n8n-mcp v1.3.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.1.1",
3
+ "version": "1.3.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",