Skip to main content
Glama

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
NameRequiredDescriptionDefault

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: {} } },
  • 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) }] }; }
  • 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; }
  • Type definition for the output response of source_control_pull.
    export interface N8nSourceControlPullResponse { ok: boolean; commit?: string; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/get2knowio/n8n-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server