Skip to main content
Glama

push_files

Push multiple files to a GitLab project in a single commit, allowing you to batch file updates with one commit message for efficient repository management.

Instructions

Push multiple files to a GitLab project in a single commit

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID or complete URL-encoded path to project
branchYesBranch to push to
filesYesArray of files to push
commit_messageYesCommit message

Implementation Reference

  • Zod input schema for the 'push_files' tool, defining parameters for pushing multiple files to a GitLab project: project_id, branch, array of {file_path, content}, and commit_message.
    export const PushFilesSchema = ProjectParamsSchema.extend({ branch: z.string().describe("Branch to push to"), files: z .array( z.object({ file_path: z.string().describe("Path where to create the file"), content: z.string().describe("Content of the file"), }) ) .describe("Array of files to push"), commit_message: z.string().describe("Commit message"), });

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/harshmaur/gitlab-mcp'

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