solhint-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Lints and autofixes Solidity with Solhint. Run lint_file or lint_project before treating Solidity work as finished: it catches style, gas and some security issues the compiler does not. It is a linter, not a security analyser — a clean result does not prove safety. Prefer fix_solidity or fix_file over hand edits; fix_file previews unless write: true. Report what remains; never present a partial fix as clean, and never silence a finding with solhint-disable or a loosened .solhint.json unless asked.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| lint_solidityA | Lint a Solidity source string that is not on disk yet — generated or pasted code. For a file in the project use lint_file; to sweep the project use lint_project. |
| lint_fileA | Lint one Solidity file in the project. Use when you know which file changed. The file must exist on disk; for source not saved yet use lint_solidity, for a sweep use lint_project. |
| lint_projectA | Lint many Solidity files at once. Use before treating Solidity work as finished, or when you do not know which files changed. Without a pattern it tries contracts//*.sol, then src//*.sol, then **/*.sol. For one known file prefer lint_file; for source not saved yet use lint_solidity. |
| fix_solidityA | Apply Solhint autofixes to a Solidity source string and return the corrected source. Touches no file — use it for source not saved yet; for a file on disk use fix_file. |
| fix_fileA | Apply Solhint autofixes to one Solidity file. Previews by default; pass write: true to save. Prefer this over editing by hand after lint_file reports fixable findings. |
| explain_ruleA | Explain one Solhint rule and suggest a correction. Use for a rule id in a lint result you do not recognise, or when asked what a warning means. |
| get_configA | Show the project's effective Solhint config — which rules are on, and at what severity. Use to explain why a rule did or did not fire, or before changing .solhint.json. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool's description explicitly delineates its scope against the others (string vs. single file vs. project sweep; lint vs. fix), so an agent can confidently pick the right tool. The lint_solidity/lint_file and fix_solidity/fix_file pairs are the only near-neighbors, and the descriptions resolve that boundary directly.
All seven names follow a strict verb_noun snake_case convention (lint_*, fix_*, explain_rule, get_config). The verb families (lint/fix) map cleanly onto the target nouns (solidity/file/project), reinforcing the pattern.
Seven tools is well within the sweet spot and every tool earns its place: three lint targets, two fix targets, rule explanation, and config inspection. Nothing feels padded or thin.
The surface covers the full lint lifecycle (ad-hoc source, single file, project sweep) plus autofix, rule explanation, and config read. The one notable gap is batch fixing at the project level—you can lint_project but must fix_file one at a time—and config is read-only with no write/validate counterpart.