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.

Instructions

Pull changes from source control to sync with remote

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for source_control_pull that delegates to N8nClient and formats the response as MCP content
    private 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: {} } },
  • N8nClient method that performs the actual POST /source-control/pull API call
    async sourceControlPull(): Promise<N8nSourceControlPullResponse> { const response = await this.api.post<N8nApiResponse<N8nSourceControlPullResponse>>('/source-control/pull'); return response.data.data; }
  • Type definition for the response from source control pull operation
    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