Solana Security Standard
v1.5.0Scan Solana/Anchor code against the Solana Security Standard and serve the ruleset to MCP clients.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_solana_code Scan Solana Code
Scan a snippet of Solana/Anchor Rust against the Solana Security Standard (SOL-0XX) fast patterns. Returns advisory findings (rule id + line:col + fix hint). A match means "look here", not a confirmed bug.
| Parameter | Type | Description |
|---|---|---|
code * | string | The Rust source to scan. |
filename | string | Optional path/name; used for off-chain exclude matching (e.g. tests/foo.rs). |
list_solana_security_rules List Solana Security Rules
Return the full Solana Security Standard (SOL-0XX) guidance: threat model, review checklist, and all 52 numbered rules with fixes. Use it to write or review Solana/Anchor code safely.