weakspot
v0.1.1Audit Solidity and Rust smart contracts from your editor.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
weakspot_estimate_price
Price a Weakspot audit before committing to it. $1 per 10 files, rounded up, capped at 40 files. Costs nothing and needs no wallet. Call this first if the user cares what the audit will cost.
| Parameter | Type | Description |
|---|---|---|
fileCount * | integer | How many .sol/.rs files to audit. |
weakspot_audit
Commission a security audit of Solidity or Rust/Anchor source files. THIS SPENDS REAL MONEY (USDC on Base, $1 per 10 files) — confirm with the user before calling it. Returns a jobId immediately; the audit runs for several minutes, so poll weakspot_audit_status with that jobId rather than expecting findings here.
| Parameter | Type | Description |
|---|---|---|
description | string | What the project does, its trust assumptions, anything a reviewer should know. Optional but strongly recommended — it is the single biggest lever on false-positive rate. |
files | array | Inline sources, for content not on disk. |
paths | array | Paths to .sol/.rs files on disk, read by this server. Preferred over `files`. |
verify | boolean | Default true. A second adversarial pass that re-checks every finding against the actual code and drops what does not hold up. Roughly doubles audit time. Set false only for a fast, noisy first look. |
weakspot_audit_status
Poll an audit by jobId. Free, no wallet needed. `stage` moves static-analysis -> batches -> verify -> summary -> done; findings are present once stage is 'done'. The jobId is a bearer credential — anyone holding it can read the report.
| Parameter | Type | Description |
|---|---|---|
jobId * | string |
weakspot_wallet_status
Show which wallet this server pays from and its USDC balance. Use when a payment fails, to tell an unfunded wallet apart from a protocol problem. Never reveals the private key.