boj_gitlab_create_mr
Create a GitLab merge request to merge code changes from a source branch into a target branch for a specified project.
Instructions
Create a merge request
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| title | Yes | ||
| source | Yes | ||
| target | No |
Implementation Reference
- mcp-bridge/main.js:281-282 (handler)The handler logic for `boj_gitlab_create_mr` inside `handleGitLabTool`.
case "boj_gitlab_create_mr": return gitlabApiCall("POST", `/projects/${encodeURIComponent(args.project_id)}/merge_requests`, { title: args.title, source_branch: args.source, target_branch: args.target || "main" }); - mcp-bridge/main.js:555-563 (registration)Tool definition/registration for `boj_gitlab_create_mr`.
{ name: "boj_gitlab_create_mr", desc: "Create a merge request", props: { project_id: { type: "string" }, title: { type: "string" }, source: { type: "string" }, target: { type: "string" } }, req: ["project_id", "title", "source"] }, { name: "boj_gitlab_list_mrs", desc: "List merge requests", props: { project_id: { type: "string" }, state: { type: "string", enum: ["opened", "closed", "merged", "all"] } }, req: ["project_id"] }, { name: "boj_gitlab_list_pipelines", desc: "List CI/CD pipelines", props: { project_id: { type: "string" } }, req: ["project_id"] }, { name: "boj_gitlab_setup_mirror", desc: "Set up a push mirror", props: { project_id: { type: "string" }, target_url: { type: "string" } }, req: ["project_id", "target_url"] }, ]; for (const t of glTools) { tools.push({ name: t.name, description: t.desc, inputSchema: { type: "object", properties: t.props, required: t.req || [] } }); }