Solana Security Standard

v1.5.0
io.github.Copenhagen0x/solana-security-mcp Checked 1 day ago Published 5 months ago

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

ParameterTypeDescription
code *stringThe Rust source to scan.
filenamestringOptional 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.