pentagonal-mcp
v1.0.1AI 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.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Natural language description of the smart contract to generate. Be specific about features, access control, and tokenomics. |
chain | string | Target blockchain |
solana_type | string | For Solana only: "program" for Anchor/Rust programs, "token" for SPL token JSON config |
use_learned_rules | boolean | Inject 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.
| Parameter | Type | Description |
|---|---|---|
address * | string | Contract address. EVM: 0x... checksum or lowercase. Solana: base58 program address. |
chain | string | Target blockchain |
fields | array | Which 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.
| Parameter | Type | Description |
|---|---|---|
code * | string | The full smart contract source code to audit |
chain | string | Which blockchain the contract targets |
use_learned_rules | boolean | Use 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.
| Parameter | Type | Description |
|---|---|---|
code * | string | The full smart contract source code to fix |
finding_description * | string | Detailed description of the vulnerability and how it can be exploited |
finding_title * | string | Short 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.
| Parameter | Type | Description |
|---|---|---|
code * | string | Solidity source code to compile |
contract_name | string | Specific 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.