Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitLab MCP Server Launch Failure Bug Report #739

Open
vialcollet opened this issue Mar 5, 2025 · 0 comments
Open

GitLab MCP Server Launch Failure Bug Report #739

vialcollet opened this issue Mar 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@vialcollet
Copy link

Describe the bug

The GitLab MCP server fails to start with a JSON parsing error. The error occurs when attempting to launch the GitLab MCP server using Docker.

To Reproduce

Steps to reproduce the behavior:

  1. Configure mcp.json with GitLab server settings
  2. Attempt to start the GitLab MCP server
  3. Server fails with "Unexpected end of JSON input" error

Configuration

{
  "mcpServers": {
    "gitlab": {
      "command": "cmd /k docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "GITLAB_PERSONAL_ACCESS_TOKEN",
        "-e",
        "GITLAB_API_URL",
        "mcp/gitlab"
      ],
      "env": {
        "GITLAB_PERSONAL_ACCESS_TOKEN": "xxxxx",
        "GITLAB_API_URL": "https:/git.mydomain.fr/api/v4"
      }
    }
  }
}

Expected behavior

The GitLab MCP server should start successfully and establish a connection with the specified GitLab instance.

Logs

2025-03-05 11:26:30.369 [info] tlab: Starting new stdio process with command: cmd /k docker run --rm -i -e GITLAB_PERSONAL_ACCESS_TOKEN -e GITLAB_API_URL mcp/gitlab
2025-03-05 11:26:31.807 [error] tlab: Client error for command Unexpected end of JSON input
2025-03-05 11:26:31.807 [error] tlab: Error in MCP: Unexpected end of JSON input

Additional context

  • I am running cursor on windows 11
  • Same issue with npx
@vialcollet vialcollet added the bug Something isn't working label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant