mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-03-16 23:43:07 +00:00
- Normalize name→nodeName and id→nodeId for node-targeting operations in the Zod schema transform, so LLMs using natural field names no longer get "Node not found" errors - Replace hardcoded ALL_CONNECTION_TYPES with dynamic iteration so AI sub-nodes (ai_outputParser, ai_document, ai_textSplitter, etc.) are not flagged as disconnected during save - Add .catchall() to workflowConnectionSchema and extend connection reference validation to cover all connection types, not just main - Fix filterOperationsByFixes ID-vs-name mismatch: typeversion-upgrade operations now include nodeName alongside nodeId, and the filter checks both fields Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
49 lines
2.7 KiB
TypeScript
49 lines
2.7 KiB
TypeScript
import { Workflow, WorkflowListParams, WorkflowListResponse, Execution, ExecutionListParams, ExecutionListResponse, Credential, CredentialListParams, CredentialListResponse, Tag, TagListParams, TagListResponse, HealthCheckResponse, N8nVersionInfo, Variable, WebhookRequest, SourceControlStatus, SourceControlPullResult, SourceControlPushResult } from '../types/n8n-api';
|
|
export interface N8nApiClientConfig {
|
|
baseUrl: string;
|
|
apiKey: string;
|
|
timeout?: number;
|
|
maxRetries?: number;
|
|
}
|
|
export declare class N8nApiClient {
|
|
private client;
|
|
private maxRetries;
|
|
private baseUrl;
|
|
private versionInfo;
|
|
private versionPromise;
|
|
constructor(config: N8nApiClientConfig);
|
|
getVersion(): Promise<N8nVersionInfo | null>;
|
|
private fetchVersionOnce;
|
|
getCachedVersionInfo(): N8nVersionInfo | null;
|
|
healthCheck(): Promise<HealthCheckResponse>;
|
|
createWorkflow(workflow: Partial<Workflow>): Promise<Workflow>;
|
|
getWorkflow(id: string): Promise<Workflow>;
|
|
updateWorkflow(id: string, workflow: Partial<Workflow>): Promise<Workflow>;
|
|
deleteWorkflow(id: string): Promise<Workflow>;
|
|
activateWorkflow(id: string): Promise<Workflow>;
|
|
deactivateWorkflow(id: string): Promise<Workflow>;
|
|
listWorkflows(params?: WorkflowListParams): Promise<WorkflowListResponse>;
|
|
getExecution(id: string, includeData?: boolean): Promise<Execution>;
|
|
listExecutions(params?: ExecutionListParams): Promise<ExecutionListResponse>;
|
|
deleteExecution(id: string): Promise<void>;
|
|
triggerWebhook(request: WebhookRequest): Promise<any>;
|
|
listCredentials(params?: CredentialListParams): Promise<CredentialListResponse>;
|
|
getCredential(id: string): Promise<Credential>;
|
|
createCredential(credential: Partial<Credential>): Promise<Credential>;
|
|
updateCredential(id: string, credential: Partial<Credential>): Promise<Credential>;
|
|
deleteCredential(id: string): Promise<void>;
|
|
listTags(params?: TagListParams): Promise<TagListResponse>;
|
|
createTag(tag: Partial<Tag>): Promise<Tag>;
|
|
updateTag(id: string, tag: Partial<Tag>): Promise<Tag>;
|
|
deleteTag(id: string): Promise<void>;
|
|
updateWorkflowTags(workflowId: string, tagIds: string[]): Promise<Tag[]>;
|
|
getSourceControlStatus(): Promise<SourceControlStatus>;
|
|
pullSourceControl(force?: boolean): Promise<SourceControlPullResult>;
|
|
pushSourceControl(message: string, fileNames?: string[]): Promise<SourceControlPushResult>;
|
|
getVariables(): Promise<Variable[]>;
|
|
createVariable(variable: Partial<Variable>): Promise<Variable>;
|
|
updateVariable(id: string, variable: Partial<Variable>): Promise<Variable>;
|
|
deleteVariable(id: string): Promise<void>;
|
|
private validateListResponse;
|
|
}
|
|
//# sourceMappingURL=n8n-api-client.d.ts.map
|