Skip to main content
Glama

boj_gitlab_list_mrs

Retrieve merge requests from GitLab projects to track development progress, filter by state, and manage code integration workflows.

Instructions

List merge requests

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes
stateNo

Implementation Reference

  • The handler logic for 'boj_gitlab_list_mrs' which performs a GET request to the GitLab API to list merge requests.
    case "boj_gitlab_list_mrs":
      return gitlabApiCall("GET", `/projects/${encodeURIComponent(args.project_id)}/merge_requests?state=${args.state || "opened"}`);
  • The registration of 'boj_gitlab_list_mrs' within the tools list, including its input schema parameters.
    { 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"] },
  • The 'tools/call' switch case that routes the 'boj_gitlab_list_mrs' request to the handleGitLabTool function.
    case "boj_gitlab_list_mrs":
    case "boj_gitlab_list_pipelines":
    case "boj_gitlab_setup_mirror": {
      const result = await handleGitLabTool(toolName, args);
      sendResult(id, { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] });
      break;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hyperpolymath/boj-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server