Configuration¶
Environment Variables¶
The server itself has no required environment variables. The underlying tools respect their standard config files.
Ruff Configuration¶
Pass a config_path to any ruff-* tool to use a custom configuration:
# Via MCP tool call
{
"name": "ruff-check",
"arguments": {
"code": "...",
"config_path": "/path/to/ruff.toml"
}
}
Ruff also auto-discovers pyproject.toml / ruff.toml / .ruff.toml from the directory of the analyzed file upward, but since analysis runs against a temporary file the auto-discovery will typically use the server's working directory.
See Ruff configuration docs for all options.
ty Configuration¶
Pass project_path to ty-check or analyze-code to point ty at your project root:
ty reads pyproject.toml [tool.ty] or ty.toml from that directory. The project_path also controls import resolution.
See ty configuration docs for all options.
Vulture Configuration¶
Confidence threshold is set per-call via min_confidence (default 80):
Vulture also reads [tool.vulture] from pyproject.toml if one exists in the server's working directory.