Kritisi Solidity Audit

v1.1.0
io.github.zororaka00/mcp-kritisi Checked 3 hours ago Published 8 days ago

MCP 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.

ParameterTypeDescription
path *stringPath to a .sol file
includeReportbooleanInclude the full findings JSON in the response
outputPdfstringLegacy PDF output path; prefer reportPath
overwritebooleanAllow replacing an existing report
providerstringAI provider (default: openrouter)
reportPathstringWrite 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.

ParameterTypeDescription
address *stringVerified contract address
chainId *integerEVM chain ID, for example 1 for Ethereum or 42161 for Arbitrum
includeReportbooleanInclude the full findings JSON in the response (omitted by default to keep context small)
outputPdfstringLegacy PDF output path; prefer reportPath
overwritebooleanAllow replacing an existing report
providerstringAI provider (default: openrouter)
reportPathstringWrite 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.

ParameterTypeDescription
path *stringPath to a directory containing .sol files
entrystringOptional entry .sol path relative to the project folder
includeReportbooleanInclude the full findings JSON in the response (omitted by default to keep context small)
outputPdfstringLegacy PDF output path; prefer reportPath
overwritebooleanAllow replacing an existing report
providerstringAI provider (default: openrouter)
reportPathstringWrite 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.

ParameterTypeDescription
path *stringPath to a .sol file
outputstringWrite the documented source to this path (implies writing)
overwritebooleanAllow replacing an existing output file
providerstringAI provider (default: openrouter)
writebooleanUpdate 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.

ParameterTypeDescription
path *stringPath to a .sol file
outputstringOptional path for the merged source; no file is written when omitted
overwritebooleanAllow 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.