source_control_pull
Pull changes from source control to sync n8n workflows with remote repositories, ensuring workflow files are updated and synchronized across environments.
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:208-208 (registration)Registration of the source_control_pull tool in the ListTools response, including input schema (empty object).{ name: 'source_control_pull', description: 'Pull changes from source control to sync with remote', inputSchema: { type: 'object', properties: {} } },
- src/index.ts:536-539 (handler)MCP tool handler for source_control_pull: delegates to N8nClient.sourceControlPull() and returns JSON response.private async handleSourceControlPull() { const result = await this.n8nClient.sourceControlPull(); return { content: [{ type: 'text', text: JSON.stringify(jsonSuccess(result), null, 2) }] }; }
- src/n8n-client.ts:493-496 (handler)Core implementation: POST request to n8n API /source-control/pull endpoint.async 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 output response of source_control_pull.export interface N8nSourceControlPullResponse { ok: boolean; commit?: string; }