Check these items in order:
- Confirm the marketplace is registered in
~/.codex/config.toml - Confirm
gitlab-mcp@codex-api-pluginsandkm-confluence-drawio@codex-api-pluginsare enabled in the same file - Confirm the marketplace source points to your current local clone
- Fully restart Codex Desktop
If you used the installer script, rerun it once:
powershell -ExecutionPolicy Bypass -File .\scripts\install-home-local.ps1Install Python and verify:
python --versionThis plugin expects Python 3.11+ because the KM MCP shim uses tomllib.
Install Node.js and verify:
npx --versiongitlab-mcp and the draw.io MCP server both depend on npx.
Your GitLab token is missing, expired, or not inherited by the current Codex session.
Check:
GITLAB_PERSONAL_ACCESS_TOKENis set at the user or machine scope- The token has not expired in GitLab
- Codex Desktop was restarted after the variable changed
The most common cause is a bad GITLAB_API_URL.
Use this format:
[Environment]::SetEnvironmentVariable('GITLAB_API_URL', 'https://gitlab.example.com/api/v4', 'User')Checks:
- use the GitLab base URL for your instance
- include
/api/v4 - do not use a project or merge request web URL here
This usually means the token only has read_api scope.
For draft review notes or publish flows, use a token with:
api
If you only want read-only inspection, read_api is enough.
In this repository, CONFLUENCE_URL already defaults to Lenovo KM. In practice this usually means:
CONFLUENCE_PERSONAL_TOKENis missing- Codex was not restarted after the token changed
- you intentionally overrode
CONFLUENCE_URLwith an empty or bad value
Set the token again and restart Codex:
[Environment]::SetEnvironmentVariable('CONFLUENCE_PERSONAL_TOKEN', '<your-km-token>', 'User')Your token is invalid, expired, or does not have access to the page or space you asked for.
Check:
- The token value is correct
- The token still works in Lenovo KM
- The target page is inside the spaces your account can read
The most common cause is CONFLUENCE_SPACES_FILTER.
If you set:
[Environment]::SetEnvironmentVariable('CONFLUENCE_SPACES_FILTER', 'DCIM', 'User')then KM reads are intentionally limited to DCIM. Clear or broaden that variable if you want wider results.
Check npx first:
npx --yes @next-ai-drawio/mcp-server@0.4.13 --helpIf this fails:
- confirm Node.js is installed and on
PATH - confirm the current machine can fetch npm packages
- retry after clearing any corporate proxy or registry issue
Run:
powershell -ExecutionPolicy Bypass -File .\scripts\validate-repo.ps1