Skip to content

Codex Installation

Configure GitLab MCP Server for use with OpenAI Codex.

Configuration

Add to your ~/.codex/config.toml:

toml
[mcp_servers.gitlab]
command = "yarn"
args = ["dlx", "-q", "@structured-world/gitlab-mcp@latest", "stdio"]
env = { "GITLAB_TOKEN" = "your_token", "GITLAB_API_URL" = "https://gitlab.com" }

With Feature Flags

toml
[mcp_servers.gitlab]
command = "yarn"
args = ["dlx", "-q", "@structured-world/gitlab-mcp@latest", "stdio"]

[mcp_servers.gitlab.env]
GITLAB_TOKEN = "your_token"
GITLAB_API_URL = "https://gitlab.com"
USE_PIPELINE = "true"
USE_MILESTONE = "true"
USE_GITLAB_WIKI = "true"

Released under the Apache 2.0 License.