source_control_pull
Pull changes from source control to sync n8n workflows with remote repositories, ensuring workflow files are updated.
Instructions
Pull changes from source control to sync with remote
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:536-539 (handler)MCP tool handler for source_control_pull that delegates to N8nClient and formats the response as MCP contentprivate async handleSourceControlPull() { const result = await this.n8nClient.sourceControlPull(); return { content: [{ type: 'text', text: JSON.stringify(jsonSuccess(result), null, 2) }] }; }
- src/index.ts:208-209 (registration)Tool registration in ListToolsRequestSchema handler defining name, description, and empty input schema{ name: 'source_control_pull', description: 'Pull changes from source control to sync with remote', inputSchema: { type: 'object', properties: {} } },
- src/n8n-client.ts:493-496 (helper)N8nClient method that performs the actual POST /source-control/pull API callasync sourceControlPull(): Promise<N8nSourceControlPullResponse> { const response = await this.api.post<N8nApiResponse<N8nSourceControlPullResponse>>('/source-control/pull'); return response.data.data; }
- src/types.ts:313-316 (schema)Type definition for the response from source control pull operationexport interface N8nSourceControlPullResponse { ok: boolean; commit?: string; }