pentagonal-mcp

v1.0.1
io.github.Achilles1089/pentagonal-mcp Checked 22 hours ago Published 7 months ago

AI smart contract forge — 8-agent security audits, generation, and compilation across 8 chains

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pentagonal_generate

Generate a production-quality smart contract from a natural language description. Supports EVM (Solidity) and Solana (Anchor/Rust or SPL Token config). The generator uses Pentagonal's self-learning security rules to produce safer code.

ParameterTypeDescription
prompt *stringNatural language description of the smart contract to generate. Be specific about features, access control, and tokenomics.
chainstringTarget blockchain
solana_typestringFor Solana only: "program" for Anchor/Rust programs, "token" for SPL token JSON config
use_learned_rulesbooleanInject self-learning security rules into generation prompt

pentagonal_lookup

Look up any token or smart contract by address. Returns the full intelligence report: price, market cap, ATH, 24h volume, transactions, holders, liquidity, LP lock status, pool count, security flags (honeypot, mintable, pausable, hidden owner, taxes), social links, and source code if verified. Use this before auditing to understand the full token landscape. Supports EVM and Solana tokens.

ParameterTypeDescription
address *stringContract address. EVM: 0x... checksum or lowercase. Solana: base58 program address.
chainstringTarget blockchain
fieldsarrayWhich data sections to return. "all" returns everything. Use specific fields for faster, focused queries — e.g. ["security"] for just flags, ["price", "market"] for market data, ["code"] for source…

pentagonal_audit

Run an 8-agent security pen test on a smart contract. Each agent specializes in a different attack vector: reentrancy, flash loans, access control, gas griefing, oracle manipulation, front-running, integer overflow, and economic exploits. Findings are returned with severity ratings and line numbers. New security rules are automatically learned from each audit.

ParameterTypeDescription
code *stringThe full smart contract source code to audit
chainstringWhich blockchain the contract targets
use_learned_rulesbooleanUse previously learned security rules during the audit

pentagonal_fix

Fix a specific vulnerability in a smart contract. Provide the contract code and the finding details — returns the complete fixed contract preserving all existing functionality.

ParameterTypeDescription
code *stringThe full smart contract source code to fix
finding_description *stringDetailed description of the vulnerability and how it can be exploited
finding_title *stringShort title of the vulnerability (e.g., "Reentrancy in withdraw()")

pentagonal_compile

Compile Solidity source code and return the ABI, bytecode, constructor arguments, and gas estimates. Use this after generating and auditing a contract to prepare it for deployment.

ParameterTypeDescription
code *stringSolidity source code to compile
contract_namestringSpecific contract name to compile (auto-detected if omitted)

pentagonal_rules

Get the current self-learning security rules. These rules are accumulated from every audit Pentagonal performs — the more contracts audited, the smarter the system gets.

pentagonal_chains

List all supported blockchains with their chain IDs, explorer URLs, and deployment hints.