Skip to main content
Glama
harshmaur

GitLab MCP Server

by harshmaur

push_files

Push multiple files to a GitLab project in a single commit, enabling batch file updates with specified branch and commit message.

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. Defines parameters: project_id, branch, array of {file_path, content}, and commit_message. Used for validating tool inputs in MCP implementation.
    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