3 Commits

Author SHA1 Message Date
Romuald Członkowski
9e79b53465 Merge pull request #178 from amauryconstant/feature/add-readonly-isArchived-property
Add isArchived field to workflow responses and types
2025-09-04 15:42:20 +02:00
Romuald Członkowski
8ce7c62299 Merge pull request #181 from czlonkowski/update-n8n-deps-20250904
chore: update n8n dependencies to v1.109.2 and bump to v2.10.8
2025-09-04 12:00:58 +02:00
Amaury Constant
36839a1c30 Add isArchived field to workflow responses and types 2025-09-03 10:04:02 +02:00
2 changed files with 4 additions and 0 deletions

View File

@@ -282,6 +282,7 @@ export async function handleGetWorkflowStructure(args: unknown): Promise<McpTool
id: workflow.id,
name: workflow.name,
active: workflow.active,
isArchived: workflow.isArchived,
nodes: simplifiedNodes,
connections: workflow.connections,
nodeCount: workflow.nodes.length,
@@ -325,6 +326,7 @@ export async function handleGetWorkflowMinimal(args: unknown): Promise<McpToolRe
id: workflow.id,
name: workflow.name,
active: workflow.active,
isArchived: workflow.isArchived,
tags: workflow.tags || [],
createdAt: workflow.createdAt,
updatedAt: workflow.updatedAt
@@ -470,6 +472,7 @@ export async function handleListWorkflows(args: unknown): Promise<McpToolRespons
id: workflow.id,
name: workflow.name,
active: workflow.active,
isArchived: workflow.isArchived,
createdAt: workflow.createdAt,
updatedAt: workflow.updatedAt,
tags: workflow.tags || [],

View File

@@ -49,6 +49,7 @@ export interface Workflow {
nodes: WorkflowNode[];
connections: WorkflowConnection;
active?: boolean; // Optional for creation as it's read-only
isArchived?: boolean; // Optional, available in newer n8n versions
settings?: WorkflowSettings;
staticData?: Record<string, unknown>;
tags?: string[];