Kritisi Solidity Audit
v1.1.0MCP server for Solidity security audits, NatSpec documentation, and import merging.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
security_audit Solidity security audit
Audit a Solidity contract with kritisi and return high/medium/low findings. Optionally writes a report; reportPath ending in .md/.markdown writes Markdown, .pdf writes PDF. API keys are read from the environment or the kritisi user config, never from tool arguments.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to a .sol file |
includeReport | boolean | Include the full findings JSON in the response |
outputPdf | string | Legacy PDF output path; prefer reportPath |
overwrite | boolean | Allow replacing an existing report |
provider | string | AI provider (default: openrouter) |
reportPath | string | Write a report to this path; .pdf, .md, or .markdown selects the format |
audit_contract Audit a deployed contract
Fetch a verified contract from Etherscan (V2, one key for supported chains), audit it with kritisi, and return findings with an optional report. reportPath ending in .md/.markdown writes Markdown, .pdf writes PDF. Requires ETHERSCAN_API_KEY in the server environment; API keys are never tool arguments. Verified source only; proxies are resolved to their implementation.
| Parameter | Type | Description |
|---|---|---|
address * | string | Verified contract address |
chainId * | integer | EVM chain ID, for example 1 for Ethereum or 42161 for Arbitrum |
includeReport | boolean | Include the full findings JSON in the response (omitted by default to keep context small) |
outputPdf | string | Legacy PDF output path; prefer reportPath |
overwrite | boolean | Allow replacing an existing report |
provider | string | AI provider (default: openrouter) |
reportPath | string | Write a report to this path; .pdf, .md, or .markdown selects the format |
audit_project Audit a Solidity project folder
Scan a local folder of Solidity files, resolve entrypoints and imports, and audit the project with kritisi. Uses the single entrypoint when there is one; otherwise audits a bundle of project files. reportPath ending in .md/.markdown writes Markdown, .pdf writes PDF. Read-only unless a report path is provided.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to a directory containing .sol files |
entry | string | Optional entry .sol path relative to the project folder |
includeReport | boolean | Include the full findings JSON in the response (omitted by default to keep context small) |
outputPdf | string | Legacy PDF output path; prefer reportPath |
overwrite | boolean | Allow replacing an existing report |
provider | string | AI provider (default: openrouter) |
reportPath | string | Write a report to this path; .pdf, .md, or .markdown selects the format |
natspec_document Add NatSpec documentation
Generate NatSpec documentation for a Solidity file with kritisi. By default the documented source is returned without touching any file. Set write=true for an in-place update with a .sol.bak backup, or set output to write to a separate file.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to a .sol file |
output | string | Write the documented source to this path (implies writing) |
overwrite | boolean | Allow replacing an existing output file |
provider | string | AI provider (default: openrouter) |
write | boolean | Update the source file in place and keep a .sol.bak backup |
merge_imports Merge Solidity imports
Merge a Solidity file and its imports with kritisi (sol-merger). By default the merged source is returned without touching any file; set output to write it.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to a .sol file |
output | string | Optional path for the merged source; no file is written when omitted |
overwrite | boolean | Allow replacing an existing output file |
show_config Show kritisi configuration
Show the effective kritisi provider configuration and whether ETHERSCAN_API_KEY is set. API keys are reported as set or unset, never printed.