@thecodesaiyan/tcs-n8n-mcp 1.0.4 → 1.0.6

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 CHANGED
@@ -30,7 +30,7 @@ const n8nFetch = (path, options = {}) => {
30
30
  };
31
31
  const server = new McpServer({
32
32
  name: "@thecodesaiyan/tcs-n8n-mcp",
33
- version: "1.0.4",
33
+ version: "1.0.6",
34
34
  });
35
35
  // Register all tool modules
36
36
  registerWorkflowTools(server, n8nFetch);
@@ -42,7 +42,7 @@ registerUserTools(server, n8nFetch);
42
42
  async function main() {
43
43
  const transport = new StdioServerTransport();
44
44
  await server.connect(transport);
45
- console.error("@thecodesaiyan/tcs-n8n-mcp v1.0.4 running on stdio (22 tools)");
45
+ console.error("@thecodesaiyan/tcs-n8n-mcp v1.0.6 running on stdio (22 tools)");
46
46
  }
47
47
  main().catch((error) => {
48
48
  console.error("Fatal error:", error);
@@ -7,9 +7,9 @@ const nodeSchema = z.object({
7
7
  type: z.string(),
8
8
  typeVersion: z.number(),
9
9
  position: z.tuple([z.number(), z.number()]),
10
- parameters: z.record(z.unknown()).optional().default({}),
10
+ parameters: z.record(z.string(), z.unknown()).optional().default({}),
11
11
  onError: z.string().optional().describe("Error handling: 'continueRegularOutput' | 'continueErrorOutput' | 'stopWorkflow'"),
12
- credentials: z.record(z.unknown()).optional().describe("Credential references for this node"),
12
+ credentials: z.record(z.string(), z.unknown()).optional().describe("Credential references for this node"),
13
13
  webhookId: z.string().optional().describe("Webhook ID for trigger nodes"),
14
14
  });
15
15
  export function registerWorkflowTools(server, n8nFetch) {
@@ -50,8 +50,8 @@ export function registerWorkflowTools(server, n8nFetch) {
50
50
  server.tool("create_workflow", "Create a new n8n workflow. Provide a name and optionally nodes/connections. Defaults to a Manual Trigger node if no nodes given.", {
51
51
  name: z.string().describe("Workflow name"),
52
52
  nodes: z.array(nodeSchema).optional().describe("Array of workflow nodes (defaults to Manual Trigger)"),
53
- connections: z.record(z.unknown()).optional().default({}).describe("Node connections mapping"),
54
- settings: z.record(z.unknown()).optional().default({}).describe("Workflow settings"),
53
+ connections: z.record(z.string(), z.unknown()).optional().default({}).describe("Node connections mapping"),
54
+ settings: z.record(z.string(), z.unknown()).optional().default({}).describe("Workflow settings"),
55
55
  }, async ({ name, nodes, connections, settings }) => {
56
56
  const defaultNodes = [
57
57
  {
@@ -77,8 +77,8 @@ export function registerWorkflowTools(server, n8nFetch) {
77
77
  workflowId: n8nId.describe("ID of the workflow to update"),
78
78
  name: z.string().optional().describe("New workflow name"),
79
79
  nodes: z.array(nodeSchema).optional().describe("Updated nodes array"),
80
- connections: z.record(z.unknown()).optional().describe("Updated connections"),
81
- settings: z.record(z.unknown()).optional().describe("Updated settings"),
80
+ connections: z.record(z.string(), z.unknown()).optional().describe("Updated connections"),
81
+ settings: z.record(z.string(), z.unknown()).optional().describe("Updated settings"),
82
82
  }, async ({ workflowId, name, nodes, connections, settings }) => {
83
83
  const getRes = await n8nFetch(`/workflows/${workflowId}`);
84
84
  if (!getRes.ok)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecodesaiyan/tcs-n8n-mcp",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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",
@@ -46,7 +46,7 @@
46
46
  "homepage": "https://github.com/ntatschner/tcs-n8n-mcp#readme",
47
47
  "dependencies": {
48
48
  "@modelcontextprotocol/sdk": "^1.26.0",
49
- "zod": "^3.23.0"
49
+ "zod": "^4.3.6"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@types/node": "^20.0.0",