Search Merge Requests
search_merge_requestsSearch merge requests by username or text within a project. Filter by state, sort by recency, and paginate results.
Instructions
Search merge requests by username (supports "username", "author:username", "assignee:username") or search within a specific project. Note: GitLab does not support global text search for MRs - use projectPath for text searches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchTerm | Yes | Username (e.g., "cdhanlon", "author:username", "assignee:username") or text when projectPath provided | |
| projectPath | No | Project path (e.g., "group/project"). Required for text searches, optional for username searches. | |
| state | No | Filter by merge request state (opened, closed, merged, all) | all |
| first | No | Number of merge requests to retrieve | |
| after | No | Cursor for pagination | |
| sort | No | Sort order (e.g., UPDATED_DESC, CREATED_DESC, CREATED_ASC). Defaults to UPDATED_DESC for recency. | |
| fetchAll | No | Fetch all pages up to 100 results | |
| userCredentials | No | Your GitLab credentials (optional — falls back to the configured env token if not provided) |