Repository navigation
mcp-lint v1.1
mcp-lint v1.1 adds MCP security checks. v1.0 asked whether a server's tools are easy for an agent to use. v1.1 also asks whether they can be trusted.
What's new
-
S8: hidden text in tool metadata. A server can hide instructions where the model reads them but the user doesn't. S8 searches every description, nested schema field, parameter name and enum value for:
- invisible characters: Unicode TAG-block, zero-width and bidi;
- HTML comments;
- secret paths such as
~/.sshand.env; - phrases aimed at the model, such as "do not tell the user";
- mentions of other servers' tools.
It is quiet on the 18 real servers surveyed.
-
mcp-lint lock/lock --check: a tool lockfile against rug pulls. It records a hash of each tool's definition inmcp-lint.lock. On each check, it reports any change to text the model reads, or any schema that now accepts or asks for more, as an error.lock --checkexits non-zero, so it can gate CI. -
I1 install lint and
mcp-lint check-config. These read Claude Desktop, Claude Code, Cursor and VS Code MCP configs and flag:npx/uvx/pipxpackages with no exact version;- git sources not pinned to a commit;
- container images without a digest;
pip installwithout--require-hashes.
Known-bad releases (postmark-mcp 1.0.16; litellm 1.82.7, 1.82.8, 1.107.0) are errors, and
run,proxy,lockandinit-fixturesrefuse to launch them.
Fixes
run --jsonnow stores a hash of the launch command (server.command_sha256), not the command itself, so tokens passed as arguments don't end up in reports. Breaking for scripts that readserver.command.- Tools nested more than 64 levels deep are rejected cleanly on every platform.
Also
- CI runs the tests on Ubuntu with Python 3.10–3.13 and on Windows with 3.13, and builds the wheel.
Requires Python 3.10+.