Feat: Add gitlab get_project command #1916
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Add
get_project
functionality to the GitLab MCP server, allowing retrieval of GitLab project details by project ID or URL-encoded path. This includes updates to the server logic, schemas, and documentation.Also adds a new
merge_requests_template
parameter to theGitLabRepositorySchema
, so that theget_project
command can also retrieve this information.This change is needed to enable clients to fetch detailed information about a specific GitLab project, which is essential for project management and integration scenarios. As an example, imagine that we want to retrieve the merge request template setup on the project data, this command would be able to easily retrieve it to be later used to create a new merge request with that data.
How Has This Been Tested?
Manual testing with the MCP server configured on a project I owned together with LLMs (claude sonnet, gpt 4.1) client to verify the new
get_project
tool returns correct project details for valid project IDs (either with the project id or project complete path.Breaking Changes
No breaking changes. Existing client configurations remain compatible.
Types of changes
Checklist
Additional context
Adds a new tool to the GitLab MCP server for retrieving project details, updates schemas, and documents the new endpoint in the server README.