Skip to main content

gglint

CI PyPI License

Keep the MCP servers of every coding agent in your repository in sync.

Claude Code, Codex, Cursor and OpenCode each read MCP servers from their own config file, in their own format. In a repository set up for more than one of them, those files drift apart: a server is added to .mcp.json but not to .cursor/mcp.json, a version is pinned in one file and not the other, or an agent has no MCP config at all. gglint finds every difference and fixes it for you, written in each agent's own format.

A terminal running uvx gglint mcp: it draws each MCP server in Claude Code, Codex, Cursor and OpenCode as a table, then lists six problems: missing servers, a server set up differently, and an agent without a config file

Click the terminal to open it on its own, then hover over a server, an agent, a cell or a problem to see what gglint found there and what --fix does about it. The same details are in this table, on hover:

ServerClaude CodeCodexCursorOpenCode
github✓✗✗✗
playwright✓✗≠✗
linear✗✗✓✗
  • One view of every agent. A table shows which agent gets which server, and how each one differs.
  • One fix. --fix adds the missing servers and config files and starts each server the same way in every agent. It never removes a server, and keeps your comments and formatting.
  • Each agent's own format. A server is translated between JSON and TOML, between each agent's syntax for environment variables, and between local and remote server types.
  • Fast and read-only by default. gglint reads a handful of files at fixed paths and finishes in under a millisecond. It never starts a server or downloads anything.
  • Built for CI. It exits with status 1 when it finds a problem, and --format lines prints one problem per line.

In November 2026 we checked the 258 most-starred GitHub repositories set up for two or more of these agents. Of the 179 that configure MCP servers, 128 (72%) had at least one of the problems gglint reports.

Quick start

gglint runs with uvx, which comes with uv. If uvx isn't on your machine, install uv with its installation guide first.

From the root of a repository, run these three commands in order:

uvx gglint mcp
uvx gglint mcp --fix
git diff

The first reports every problem, the second fixes them, and the third shows what changed. uvx downloads gglint the first time and reuses it afterwards; there's nothing else to install. It works on Linux, macOS and Windows.

Usage

uvx gglint mcp [--fix] [--source AGENT] [--format table|lines] [PATH]
uvx gglint mcp --servers [PATH]
Option Effect
(none) Report every problem and draw each server in each agent.
--fix Add missing servers and config files, start each server the same way, then report what's left.
--source AGENT Take each server's setup from AGENT where it has the server: claude-code, codex, cursor or opencode.
--format lines Print one line per problem instead of the table, for editors and CI.
--servers List every configured server, file by file, without comparing them.
PATH The repository's root. Defaults to the current directory.
Exit status Meaning
0 Every agent gets the same servers, set up the same way.
1 gglint found a problem, one is left after --fix, or there are no MCP config files.

Colours are used when standard output is a terminal and NO_COLOR isn't set. The summary line, with counts and timing, goes to standard error.

What gglint checks

Rule Reported when Fixed by
missing-server A server in one agent's config file is missing from another agent's. --fix
missing-config An agent has its own directory but no MCP config file, while other agents have servers. --fix
different-server The same server runs another version or has other arguments. --fix
The same server runs another program or URL, has other environment variables or headers, or is turned off in one agent. Reported only
renamed-server The same server has a different name in some agents. Reported only

--fix makes the command lines match, since the same server should normally start the same way everywhere. The other differences can be deliberate, such as each agent setting its own environment variables, so gglint reports them and leaves them to you.

Matching servers. Servers are matched by name, then by what they run, so a server named differently in one agent is still recognised as the same server. The way a package is launched doesn't count as a difference:

  • npx -y pkg, npx --yes pkg@latest, pnpm dlx pkg, yarn dlx pkg, bunx pkg and bun x pkg all run the npm package pkg.
  • uvx pkg, uv tool run pkg and pipx run pkg all run the PyPI package pkg.
  • npx mcp-remote <url> reaches the remote server at <url>.
  • No version and latest both mean the newest version.
  • ${KEY} in Claude Code and ${env:KEY} in Cursor refer to the same environment variable.

Environment variables and headers are compared by name only, since their values can be secrets.

Supported agents

Agent MCP config file Agent directory Format
Claude Code .mcp.json .claude/ JSON, mcpServers
Codex .codex/config.toml .codex/ TOML, [mcp_servers.<name>]
Cursor .cursor/mcp.json .cursor/ JSON, mcpServers
OpenCode opencode.json, opencode.jsonc .opencode/ JSON with comments, mcp.servers or mcp

gglint compares the agents that have an MCP config file or their own directory at the repository's root. A CLAUDE.md, .cursorrules or AGENTS.md file on its own doesn't count, because it doesn't show that the agent is set up in the repository.

How fixing works

Every server is copied from the first config file where it's turned on, in the order Claude Code, Codex, Cursor, OpenCode. To make one agent the source of truth instead, name it with --source: uvx gglint mcp --fix --source codex takes each server from Codex wherever Codex has it turned on, and from the first agent otherwise. --fix never removes a server.

  • A missing server is added to each config file that lacks it.
  • An agent with its own directory but no config file gets one, with every server that is turned on in the other agents.
  • A server that runs another version of the same program, or the same program with other arguments, gets the command and arguments of that first config file. Its environment variables, headers, on/off state and keys only one agent has, such as Codex's cwd, are kept. Review the result with git diff: a difference such as a runtime chosen per agent, or a path that starts with Cursor's ${workspaceFolder}, may have been deliberate.
  • JSON is edited with jsonc-parser and TOML with toml_edit, so comments and formatting are kept.
  • Running --fix a second time changes nothing.
  • A file excluded by .gitignore is still updated, and marked gitignored in the output, because the change won't be committed.

References to environment variables are rewritten in each agent's syntax, in values and in command lines:

Agent Environment variable KEY
Claude Code ${KEY}
Cursor ${env:KEY}
OpenCode {env:KEY}
Codex env_vars = ["KEY"], env_http_headers, or bearer_token_env_var for Authorization: Bearer

Remote servers get "type": "http" in Claude Code, or "sse" for a URL ending in /sse. OpenCode servers get "type": "local" or "remote", with the command and its arguments in one list.

A server is skipped, and listed under Not added:, when its setup can't be expressed in the other agent's format: for example Claude Code's ${KEY:-default}, Cursor's ${workspaceFolder}, or an environment variable inside a command line, which Codex doesn't expand.

Example

$ uvx gglint mcp --fix
Changed 4 files:
  .mcp.json             added linear
  .codex/config.toml    added github, playwright, linear
  .cursor/mcp.json      added github; updated playwright
  opencode.json (new)   added github, playwright, linear

Review the changes with `git diff`.

The same github server, written for Codex and Cursor:

# .codex/config.toml
+[mcp_servers.github]
+url = "https://api.githubcopilot.com/mcp/"
+bearer_token_env_var = "GITHUB_TOKEN"

# .cursor/mcp.json
+    "github": {
+      "url": "https://api.githubcopilot.com/mcp/",
+      "headers": {
+        "Authorization": "Bearer ${env:GITHUB_TOKEN}"
+      }
+    }

Cursor's playwright now starts as in Claude Code:

# .cursor/mcp.json
-      "args": ["-y", "@playwright/mcp@latest"]
+      "args": ["-y", "@playwright/mcp@0.0.78", "--headless"]

Output formats

--format lines prints one problem per line: where it is, the rule, and a description, with the server's other locations indented below it.

$ uvx gglint mcp --format lines
./.mcp.json:3:5  missing-server   `github` is set up for Claude Code but not for Codex (.codex/config.toml) or Cursor (.cursor/mcp.json)
./.mcp.json:8:5  different-server `playwright` runs different versions of the npm package `@playwright/mcp`: 0.0.78 in Claude Code; the newest in Cursor
    also at ./.cursor/mcp.json:3:5
./.mcp.json:3:5  missing-config   OpenCode has a .opencode directory but no opencode.json, so it gets none of the 3 MCP servers set up for Claude Code and Cursor

--servers lists every server as it's written. Environment variables and headers are shown by name, never by value.

$ uvx gglint mcp --servers
./.mcp.json:3:5  claude-code  github  https://api.githubcopilot.com/mcp/  (headers=[Authorization])
./.mcp.json:8:5  claude-code  playwright  npx -y @playwright/mcp@0.0.78 --headless
./.cursor/mcp.json:3:5  cursor       playwright  npx -y @playwright/mcp@latest
./.cursor/mcp.json:7:5  cursor       linear  https://mcp.linear.app/sse

Continuous integration

Fail a pull request when the agents' MCP servers drift apart:

# .github/workflows/mcp.yml
name: MCP servers
on: [pull_request]

jobs:
  gglint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: astral-sh/setup-uv@v7
      - run: uvx gglint@0.2.0 mcp --format lines

Security

  • Read-only by default. Without --fix, gglint reads files and writes nothing.
  • Nothing is executed or fetched. MCP servers aren't started, packages aren't resolved, and environment variables aren't expanded. It's safe to run on an untrusted repository.
  • Secrets stay out of the output. Environment variables and headers are printed by name only.
  • One external program. During --fix, gglint runs git check-ignore to mark files your .gitignore excludes.

Limitations

  • Servers added by Claude Code plugins, enabled in .claude/settings.json, aren't read. A server provided by a plugin can be reported as missing from Claude Code.
  • User-level settings such as ~/.claude.json or ~/.codex/config.toml aren't read.
  • Only config files at the repository's root are read, so each package of a monorepo is checked separately.
  • VS Code and GitHub Copilot (.vscode/mcp.json) and Gemini CLI (.gemini/settings.json) aren't supported yet.
  • Codex only reads .codex/config.toml in projects you have marked as trusted.

Development

gglint is written in Rust. With a Rust toolchain 1.88 or later, run these three commands in order before each commit; CI runs the same checks:

cargo fmt
cargo clippy --all-targets -- --deny warnings
cargo test

tests/corpus.rs runs --fix against a directory of real repositories and checks that no server is removed, that no environment variable, header or on/off state changes, that a config file is created only in an agent's own directory, that no file becomes unreadable, that problems never increase, and that a second run changes nothing:

GGLINT_CORPUS=path/to/clones cargo test --release --test corpus -- --ignored --nocapture

The code lives in src/harness/: mcp.rs reads each agent's config, compare.rs finds the problems, and fix.rs writes the fixes.

Releasing

  1. Update version in Cargo.toml and add the release to CHANGELOG.md.
  2. Merge to main.
  3. Publish a GitHub release tagged v<version>, for example v0.2.0.

The release workflow builds and tests every wheel, publishes them to PyPI, and attaches them to the release.

License

gglint is licensed under the Apache License 2.0. The licenses of the libraries compiled into it are listed in THIRD_PARTY_LICENSES.

Metadata

Release files for gglint 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gglint 0.2.0
File Size Uploaded Provenance Actions
gglint-0.2.0.tar.gz 63.4 kB With provenance Details for gglint-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for gglint 0.2.0
File Actions
gglint-0.2.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for gglint-0.2.0-py3-none-win_arm64.whl
gglint-0.2.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for gglint-0.2.0-py3-none-win_amd64.whl
gglint-0.2.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for gglint-0.2.0-py3-none-musllinux_1_2_x86_64.whl
gglint-0.2.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for gglint-0.2.0-py3-none-musllinux_1_2_aarch64.whl
gglint-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for gglint-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
gglint-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for gglint-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
gglint-0.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for gglint-0.2.0-py3-none-macosx_11_0_arm64.whl
gglint-0.2.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for gglint-0.2.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 4.2 MB

Release files / gglint-0.2.0.tar.gz

Download URL gglint-0.2.0.tar.gz
Size 63.4 kB
Tags Source
SHA-256 checksum
How to use checksums
737206951db8f7f73d37fa82986ba884749e679da8aaab45315facd638e9f3c7
BLAKE2b-256 checksum
How to use checksums
35ea708c63b7bb58ea86696d86511629cd00a868018fcb6aff294377078159a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / gglint-0.2.0-py3-none-win_arm64.whl

Download URL gglint-0.2.0-py3-none-win_arm64.whl
Size 457.1 kB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
6dc4dad7bea44ff518a14575bd5c3fba0493c2d9048348844c182e2028fae15c
BLAKE2b-256 checksum
How to use checksums
3c342c40acb2306cbf40db94faf94149b811ab9ad74e07a8eaaf53aeca8e9887
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / gglint-0.2.0-py3-none-win_amd64.whl

Download URL gglint-0.2.0-py3-none-win_amd64.whl
Size 490.5 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3c18bb5c56dd7d4e21d6a62cc225da7a086d2355fa176d12ac31528560d6a1ac
BLAKE2b-256 checksum
How to use checksums
7ffbb166e3de442fa8a88888712432017de1dede57ff8cc9e80ede56fa84ccc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / gglint-0.2.0-py3-none-musllinux_1_2_x86_64.whl

Download URL gglint-0.2.0-py3-none-musllinux_1_2_x86_64.whl
Size 586.4 kB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
96f3c54e2eccbac288c67bb4b9dfa33527e8c203da2b04a3107282bb709aaec9
BLAKE2b-256 checksum
How to use checksums
b9d73d5e545b81ed744dd4a5f7313b8e41a11e184eb710e7d50c7587297b188c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / gglint-0.2.0-py3-none-musllinux_1_2_aarch64.whl

Download URL gglint-0.2.0-py3-none-musllinux_1_2_aarch64.whl
Size 545.1 kB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
a48afa6550aca9b19aec08c4fa3f0a30a5be8ce04e8b0462f0291099127b6114
BLAKE2b-256 checksum
How to use checksums
5ac5a6a4272dc8f528a723c7a3f83cf8b9bad731d9fd55b2e3a7f223bbc526ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / gglint-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL gglint-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 538.6 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6c5abb2ab1d3865bae1db4b06380844fbb7150fa54d7aa46af0fdb0db0fdfb8f
BLAKE2b-256 checksum
How to use checksums
30aeebfd4239192521ca3df37478b965e49b412e4d3d3f6633b4be192902603c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / gglint-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL gglint-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 500.3 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
993bcd8e3c8a6e285a984beeda250b30529e65d5021a09ce91b1faae1d093678
BLAKE2b-256 checksum
How to use checksums
5939b9430363a5717146dc7e1b423f207690631198bd49bf6f51f921ad3907e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / gglint-0.2.0-py3-none-macosx_11_0_arm64.whl

Download URL gglint-0.2.0-py3-none-macosx_11_0_arm64.whl
Size 485.9 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5a24487c68fd59f2f4221730724bf507265758aed353c7655adb4fc0a73a0055
BLAKE2b-256 checksum
How to use checksums
ed0c2e948d66eb90ff8a71b903b6be0ec73d6ef0f3e79873d874204fb315f39f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / gglint-0.2.0-py3-none-macosx_10_12_x86_64.whl

Download URL gglint-0.2.0-py3-none-macosx_10_12_x86_64.whl
Size 517.8 kB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6ae5854c3767ec65374ed0d876c217ccc66fe968c72f32088aee76ef2db5a24d
BLAKE2b-256 checksum
How to use checksums
01fecd00d797164d1e01ec45be23edc5d48b3591f569f4376fbf20f65d178aa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for gglint 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for gglint-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page