create_merge_request_note
Add a note to a merge request discussion thread to provide feedback, ask questions, or continue conversations about code changes.
Instructions
Add a new note to an existing merge request thread
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID or complete URL-encoded path to project | |
| merge_request_iid | Yes | The IID of a merge request | |
| discussion_id | Yes | The ID of a thread | |
| body | Yes | The content of the note or reply | |
| created_at | No | Date the note was created at (ISO 8601 format) |
Implementation Reference
- schemas.ts:764-769 (schema)Zod schema defining the input parameters for creating a note in an existing merge request discussion thread. This is likely the input validation schema for the 'create_merge_request_note' MCP tool.export const CreateMergeRequestNoteSchema = ProjectParamsSchema.extend({ merge_request_iid: z.number().describe("The IID of a merge request"), discussion_id: z.string().describe("The ID of a thread"), body: z.string().describe("The content of the note or reply"), created_at: z.string().optional().describe("Date the note was created at (ISO 8601 format)"), });
- schemas.ts:1373-1373 (schema)Type definition derived from CreateMergeRequestNoteSchema for use in tool handlers or elsewhere.export type CreateMergeRequestNoteOptions = z.infer<typeof CreateMergeRequestNoteSchema>;