Skip to content

Self-Hosted Gitlab MCP error -32603: Invalid arguments #1116

@Ray0907

Description

@Ray0907

Describe the bug
The MCP server for self-hosted Gitlab fails to connect. The error message shows garbled text followed by "
MCP error -32603: Invalid arguments: items.0.owner: Required, items.0.fork: Required"

To Reproduce
Steps to reproduce the behavior:

{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-gitlab"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>",
        "GITLAB_API_URL": "https://gitlab.com/api/v4" // Optional, for self-hosted instances
      }
    }
  }
}

GITLAB_PERSONAL_ACCESS_TOKEN scope api, read_repository, write_repository

Expected behavior
A clear and concise description of what you expected to happen.

Logs
If applicable, add logs to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions