Apex Code Review
apex_code_reviewAudit Web3 smart contracts for security flaws using static analysis and AI. Accepts GitHub repo URL or Solidity code, returns a score and prioritized findings.
Instructions
Run a preliminary security audit on a Web3 project's smart contracts. Accepts a public GitHub repo URL (Solidity and/or Rust) or pasted Solidity source. Runs static analysers (Slither, cargo-audit, clippy) in a sandbox plus an AI review pass, returning a 0-100 score across 5 dimensions (security, code quality, dependencies, testing, documentation), prioritized findings with severity and file/line refs, and recommendations. Use this when asked to audit, review, or assess the security of a project's contracts or on-chain code. This is a first-pass triage, not a substitute for a professional audit. Audits run async: for a large repo this tool may return an audit_id and ask you to call it again with that audit_id to fetch the finished report. Limited to 3 submissions per day.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| github_url | No | Public GitHub repository URL to audit. The server clones the repo and analyses Solidity (.sol) and Rust on-chain code. Example: "https://github.com/Uniswap/v2-core". Mutually exclusive with contract_source and audit_id. | |
| contract_source | No | Raw Solidity source code to audit directly, for a quick single-file check without a repo. Mutually exclusive with github_url and audit_id. | |
| audit_id | No | The id of an audit that was previously started. Use this to fetch the result of an audit that was still running when it was first submitted. Mutually exclusive with github_url and contract_source. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| auditId | No | ||
| score | No | Overall security score 0-100. | |
| findings | No | Security findings discovered in the audit. | |
| summary | No |