get_merge_request tool: calling merge_requests/:id/diffs fails when per_page > 30
Hello there, thank you for this project!
I'm having an issue described in the title, though.
I've installed this server via Homebrew and use it inside VS Code with Copilot.
My employee uses self-managed GitLab, so I use --base-url arg and a GITLAB_TOKEN env in the MCP server config to reach it.
Copilot can list merge requests (list_project_merge_requests), but fails to get_merge_request:
Error: MPC -32603: listing diffs for MR IID XXX (project YYY): listing merge request diffs for MR IID XXX (project YYY): GET https://git.privatedomain.com/api/v4/projects/urlEncodedYYY/merge_requests/XXX/diffs: 500 {message: 500 Internal Server Error}
It is the same for another project and another merge request.
I've tried to call this API route (/api/v4/project/.../merge_requests/.../diffs) via Postman, and it works. In Postman, I'm using Authorization: Bearer <my GITLAB_TOKEN>.