{"_id":"@awedev/molten-mcp","_rev":"8-06b31fded01912e57c033a1cbcb18a36","name":"@awedev/molten-mcp","dist-tags":{"latest":"0.3.5"},"versions":{"0.2.0":{"name":"@awedev/molten-mcp","version":"0.2.0","keywords":["mantle","mcp","model-context-protocol","solidity","audit","gas-optimization","web3","blockchain","ai","devtools"],"license":"MIT","_id":"@awedev/molten-mcp@0.2.0","maintainers":[{"name":"awedev","email":"bernad.usxh@gmail.com"}],"bin":{"molten":"dist/server.js","molten-mcp":"dist/server.js"},"dist":{"shasum":"7a3b929862f14c9ed2011d49346c5c3054bc42c2","tarball":"https://registry.npmjs.org/@awedev/molten-mcp/-/molten-mcp-0.2.0.tgz","fileCount":39,"integrity":"sha512-ThWQFbMu9sgblnFz/gPoa8nn+uMr81ftKuFqtQHzBvX4GQ1su10dUWnrkQ/2+wnKUicSlojZxGjrhFvfiqRGRQ==","signatures":[{"sig":"MEUCIQDXefm7xXBW0gEB5jf9lWcuAXurlg1PzamDuQap4IyLbwIgSUglLA0dDW6gabyxCove1zcsYpgCC5bVJSbSXXlBQ50=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45720},"main":"dist/server.js","type":"module","engines":{"node":">=18"},"gitHead":"6ba25ef7ca0dd30068da2ff9ac3ec6dab8bf1cce","scripts":{"dev":"tsx src/server.ts","build":"tsc","start":"node dist/server.js","prepare":"npm run build","typecheck":"tsc --noEmit","deploy:sepolia":"tsx demo/deploy/deploy.ts"},"_npmUser":{"name":"awedev","email":"bernad.usxh@gmail.com"},"_npmVersion":"11.12.1","description":"Molten — AI-powered MCP DevTools for Mantle Network. Contract audit, gas optimization, tx simulation, wallet intelligence, and explorer integration.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"zod":"^3.23.8","viem":"^2.21.0","dotenv":"^17.4.2","openai":"^4.77.0","@anthropic-ai/sdk":"^0.39.0","@google/generative-ai":"^0.21.0","@modelcontextprotocol/sdk":"^1.12.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.5.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/molten-mcp_0.2.0_1780329908778_0.46236643080842854","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@awedev/molten-mcp","version":"0.2.1","keywords":["mantle","mcp","model-context-protocol","solidity","audit","gas-optimization","web3","blockchain","ai","devtools"],"license":"MIT","_id":"@awedev/molten-mcp@0.2.1","maintainers":[{"name":"awedev","email":"bernad.usxh@gmail.com"}],"bin":{"molten":"dist/server.js","molten-mcp":"dist/server.js"},"dist":{"shasum":"59080f298e527f87360c0807cc4df9cfcd0af865","tarball":"https://registry.npmjs.org/@awedev/molten-mcp/-/molten-mcp-0.2.1.tgz","fileCount":39,"integrity":"sha512-vIV952MoziPI/rXqZJvR0RjmR4CdY1dLnTnfxES19CpggZsdEDDcv9uqCjpfLXNBKTUTZflaBDpXzzphfyo7wg==","signatures":[{"sig":"MEYCIQCNFMj/AmhyjtA7QTnRsMoc1ttYrqkwMPvdtK+Wpx2/ggIhAP0MoVWWySr/MkMGxzKh78fD8+oJApaXYaDeGqRlDJwS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45821},"main":"dist/server.js","type":"module","engines":{"node":">=18"},"gitHead":"9014973b7848027b45e46cb3402ecbec88418cfb","scripts":{"dev":"tsx src/server.ts","build":"tsc","start":"node dist/server.js","prepare":"npm run build","typecheck":"tsc --noEmit","deploy:sepolia":"tsx demo/deploy/deploy.ts"},"_npmUser":{"name":"awedev","email":"bernad.usxh@gmail.com"},"_npmVersion":"11.12.1","description":"Molten — AI-powered MCP DevTools for Mantle Network. Contract audit, gas optimization, tx simulation, wallet intelligence, and explorer integration.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"zod":"^3.23.8","viem":"^2.21.0","dotenv":"^17.4.2","openai":"^4.77.0","@anthropic-ai/sdk":"^0.39.0","@google/generative-ai":"^0.21.0","@modelcontextprotocol/sdk":"^1.12.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","typescript":"^5.5.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/molten-mcp_0.2.1_1780330353578_0.5253812376017573","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@awedev/molten-mcp","version":"0.3.0","keywords":["mantle","mcp","model-context-protocol","solidity","audit","gas-optimization","web3","blockchain","ai","devtools"],"license":"MIT","_id":"@awedev/molten-mcp@0.3.0","maintainers":[{"name":"awedev","email":"bernad.usxh@gmail.com"}],"bin":{"molten":"dist/server.js","molten-mcp":"dist/server.js"},"dist":{"shasum":"25d7f68258527fcef479cbbb71745493cfca4ab7","tarball":"https://registry.npmjs.org/@awedev/molten-mcp/-/molten-mcp-0.3.0.tgz","fileCount":39,"integrity":"sha512-6rRK974DxQ1jQlDZISjhZ35MTufybqEbFdMdEvTCC5w/cG2bt7TobGIcB0SWtEiePUGtEexnuLs1gQlAJvjABw==","signatures":[{"sig":"MEYCIQCZTt/X7HzC13iR8/r2RQjhjF6TZ3fb2aa5abVN6nc0IgIhAIDX3jvwoYhlpbDizR8tC5M8/fR9b8mYZ/9dVETz6kXW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1251279},"main":"dist/server.js","type":"module","engines":{"node":">=18"},"gitHead":"265efb5d500bcfbfa8f11cce0ca961c4cf5a79d3","scripts":{"dev":"tsx src/server.ts","build":"tsc --noEmit && node build.mjs","start":"node dist/server.js","prepare":"npm run build","typecheck":"tsc --noEmit","deploy:sepolia":"tsx demo/deploy/deploy.ts"},"_npmUser":{"name":"awedev","email":"bernad.usxh@gmail.com"},"_npmVersion":"11.12.1","description":"Molten — AI-powered MCP DevTools for Mantle Network. Contract audit, gas optimization, tx simulation, wallet intelligence, and explorer integration.","directories":{},"_nodeVersion":"24.14.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","zod":"^3.23.8","viem":"^2.21.0","dotenv":"^17.4.2","openai":"^4.77.0","esbuild":"^0.28.0","typescript":"^5.5.0","@types/node":"^22.0.0","@anthropic-ai/sdk":"^0.39.0","@google/generative-ai":"^0.21.0","@modelcontextprotocol/sdk":"^1.12.0"},"_npmOperationalInternal":{"tmp":"tmp/molten-mcp_0.3.0_1780334855947_0.012349439247156146","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@awedev/molten-mcp","version":"0.3.1","keywords":["mantle","mcp","model-context-protocol","solidity","audit","gas-optimization","web3","blockchain","ai","devtools"],"license":"MIT","_id":"@awedev/molten-mcp@0.3.1","maintainers":[{"name":"awedev","email":"bernad.usxh@gmail.com"}],"bin":{"molten":"dist/server.js","molten-mcp":"dist/server.js"},"dist":{"shasum":"f889bf6ba00c2908c08840aa812c4f4b62688462","tarball":"https://registry.npmjs.org/@awedev/molten-mcp/-/molten-mcp-0.3.1.tgz","fileCount":39,"integrity":"sha512-NzQVDzi2SQ7nj/BkUjS2jxgXHsh1I4kyCASkZJvuBqOfHqctbIUe6UNCAWqLXiaxkAVuJvb3zEkrCqRifboGpw==","signatures":[{"sig":"MEUCIExUydzeABhVh8e4M4L3Jfuw/WEgcTbsOjJxMM6G2sUdAiEAiVthu7d0ZKZjP3ZQGrVHb6vl6DELyIcvPpEC9Btfooc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1252581},"main":"dist/server.js","type":"module","engines":{"node":">=18"},"gitHead":"d3eca91beb7a12f8253d5e0e9ebd0681fc6ab030","scripts":{"dev":"tsx src/server.ts","build":"tsc --noEmit && node build.mjs","start":"node dist/server.js","prepare":"npm run build","typecheck":"tsc --noEmit","deploy:sepolia":"tsx demo/deploy/deploy.ts"},"_npmUser":{"name":"awedev","email":"bernad.usxh@gmail.com"},"_npmVersion":"11.12.1","description":"Molten — AI-powered MCP DevTools for Mantle Network. Contract audit, gas optimization, tx simulation, wallet intelligence, and explorer integration.","directories":{},"_nodeVersion":"24.14.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","zod":"^3.23.8","viem":"^2.21.0","dotenv":"^17.4.2","openai":"^4.77.0","esbuild":"^0.28.0","typescript":"^5.5.0","@types/node":"^22.0.0","@anthropic-ai/sdk":"^0.39.0","@google/generative-ai":"^0.21.0","@modelcontextprotocol/sdk":"^1.12.0"},"_npmOperationalInternal":{"tmp":"tmp/molten-mcp_0.3.1_1780337189840_0.6295258165099953","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@awedev/molten-mcp","version":"0.3.2","keywords":["mantle","mcp","model-context-protocol","solidity","audit","gas-optimization","web3","blockchain","ai","devtools"],"license":"MIT","_id":"@awedev/molten-mcp@0.3.2","maintainers":[{"name":"awedev","email":"bernad.usxh@gmail.com"}],"bin":{"molten":"dist/server.js","molten-mcp":"dist/server.js"},"dist":{"shasum":"c8d3902e69a1d7b48e786b46cd135ede1b97836d","tarball":"https://registry.npmjs.org/@awedev/molten-mcp/-/molten-mcp-0.3.2.tgz","fileCount":39,"integrity":"sha512-5HdP9GeTleKp3D1SW+2mUhPu0h/d5plA9zVtIl1MgqOGZn5EdD9Q0Ruhz2FeCIuQcTYXn9VyjBmtZ8XYvRGpcw==","signatures":[{"sig":"MEUCIEtuC6Ru8rhPADX5C1win3gCN/qFjVAl3kWss79JxcerAiEA1q0dND4/NRDyLsuWplQfgYM08vaElFjuJLxYIh3RS00=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1262848},"main":"dist/server.js","type":"module","engines":{"node":">=18"},"gitHead":"daa0aa881173575e07033dea2ec9bad4b18eed97","scripts":{"dev":"tsx src/server.ts","build":"tsc --noEmit && node build.mjs","start":"node dist/server.js","prepare":"npm run build","typecheck":"tsc --noEmit","deploy:sepolia":"tsx demo/deploy/deploy.ts"},"_npmUser":{"name":"awedev","email":"bernad.usxh@gmail.com"},"_npmVersion":"11.12.1","description":"Molten — AI-powered MCP DevTools for Mantle Network. Contract audit, gas optimization, tx simulation, wallet intelligence, and explorer integration.","directories":{},"_nodeVersion":"24.14.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","zod":"^3.23.8","viem":"^2.21.0","dotenv":"^17.4.2","openai":"^4.77.0","esbuild":"^0.28.0","typescript":"^5.5.0","@types/node":"^22.0.0","@anthropic-ai/sdk":"^0.39.0","@google/generative-ai":"^0.21.0","@modelcontextprotocol/sdk":"^1.12.0"},"_npmOperationalInternal":{"tmp":"tmp/molten-mcp_0.3.2_1780337913801_0.8797765896962233","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@awedev/molten-mcp","version":"0.3.3","keywords":["mantle","mcp","model-context-protocol","solidity","audit","gas-optimization","web3","blockchain","ai","devtools"],"license":"MIT","_id":"@awedev/molten-mcp@0.3.3","maintainers":[{"name":"awedev","email":"bernad.usxh@gmail.com"}],"bin":{"molten":"dist/server.js","molten-mcp":"dist/server.js"},"dist":{"shasum":"841eefb27a7a920e1af6d242bb6a5a2e1b463dec","tarball":"https://registry.npmjs.org/@awedev/molten-mcp/-/molten-mcp-0.3.3.tgz","fileCount":39,"integrity":"sha512-0JSXgRVJr0adqI6PluYOHYdLiTY1w3ExxQp+6M03COBeI7zjxhr8C1DENRzR5W8CUMZB8MioIgf4YOlqz5cIjA==","signatures":[{"sig":"MEUCIQDjEOXMEwivoc6dbImgr1HN4GO9cMCo8ZIqO1EN89/dlwIgWfgb5v4Rfqn1zECe0Jt0oWEu+O82Z2k2Di70VB8VIFY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1266456},"main":"dist/server.js","type":"module","engines":{"node":">=18"},"gitHead":"ac943e626b0e4dc476c378fd9d033a2d4ec4c6d3","scripts":{"dev":"tsx src/server.ts","build":"tsc --noEmit && node build.mjs","start":"node dist/server.js","prepare":"npm run build","typecheck":"tsc --noEmit","deploy:sepolia":"tsx demo/deploy/deploy.ts"},"_npmUser":{"name":"awedev","email":"bernad.usxh@gmail.com"},"_npmVersion":"11.12.1","description":"Molten — AI-powered MCP DevTools for Mantle Network. Contract audit, gas optimization, tx simulation, wallet intelligence, and explorer integration.","directories":{},"_nodeVersion":"24.14.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","zod":"^3.23.8","viem":"^2.21.0","dotenv":"^17.4.2","openai":"^4.77.0","esbuild":"^0.28.0","typescript":"^5.5.0","@types/node":"^22.0.0","@anthropic-ai/sdk":"^0.39.0","@google/generative-ai":"^0.21.0","@modelcontextprotocol/sdk":"^1.12.0"},"_npmOperationalInternal":{"tmp":"tmp/molten-mcp_0.3.3_1780338190061_0.48498062909489326","host":"s3://npm-registry-packages-npm-production"}},"0.3.4":{"name":"@awedev/molten-mcp","version":"0.3.4","keywords":["mantle","mcp","model-context-protocol","solidity","audit","gas-optimization","web3","blockchain","ai","devtools"],"license":"MIT","_id":"@awedev/molten-mcp@0.3.4","maintainers":[{"name":"awedev","email":"bernad.usxh@gmail.com"}],"bin":{"molten":"dist/server.js","molten-mcp":"dist/server.js"},"dist":{"shasum":"11569f7d82fc86c7be86ab6a02d16b8326f2bba5","tarball":"https://registry.npmjs.org/@awedev/molten-mcp/-/molten-mcp-0.3.4.tgz","fileCount":39,"integrity":"sha512-FiyvCRSKGqN7OaCSwalQe4lsxIGUZ23rCltvIIxKNUCYWOtOLjuB9ZcyPuf8liXJLZ/IB8rEpKZgjkmhovKvbw==","signatures":[{"sig":"MEUCIHnTDeClra/wgPfK4CwLAe5hShDd6nnrAjPNFT+8gagoAiEA4Rjbsmgj3KMNEvyGIwYX7ziZMBm/yXE9sXYxAyzqAME=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1266120},"main":"dist/server.js","type":"module","engines":{"node":">=18"},"gitHead":"0b785305c98115ca88113205c3393eb482794af6","scripts":{"dev":"tsx src/server.ts","build":"tsc --noEmit && node build.mjs","start":"node dist/server.js","prepare":"npm run build","typecheck":"tsc --noEmit","deploy:sepolia":"tsx demo/deploy/deploy.ts"},"_npmUser":{"name":"awedev","email":"bernad.usxh@gmail.com"},"_npmVersion":"11.12.1","description":"Molten — AI-powered MCP DevTools for Mantle Network. Contract audit, gas optimization, tx simulation, wallet intelligence, and explorer integration.","directories":{},"_nodeVersion":"24.14.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","zod":"^3.23.8","viem":"^2.21.0","dotenv":"^17.4.2","openai":"^4.77.0","esbuild":"^0.28.0","typescript":"^5.5.0","@types/node":"^22.0.0","@anthropic-ai/sdk":"^0.39.0","@google/generative-ai":"^0.21.0","@modelcontextprotocol/sdk":"^1.12.0"},"_npmOperationalInternal":{"tmp":"tmp/molten-mcp_0.3.4_1780398285943_0.7023254197837312","host":"s3://npm-registry-packages-npm-production"}},"0.3.5":{"name":"@awedev/molten-mcp","version":"0.3.5","description":"Molten — AI-powered MCP DevTools for Mantle Network. Contract audit, gas optimization, tx simulation, wallet intelligence, and explorer integration.","type":"module","main":"dist/server.js","bin":{"molten-mcp":"dist/server.js","molten":"dist/server.js"},"engines":{"node":">=18"},"keywords":["mantle","mcp","model-context-protocol","solidity","audit","gas-optimization","web3","blockchain","ai","devtools"],"license":"MIT","scripts":{"build":"tsc --noEmit && node build.mjs","prepare":"npm run build","start":"node dist/server.js","dev":"tsx src/server.ts","typecheck":"tsc --noEmit","deploy:sepolia":"tsx demo/deploy/deploy.ts"},"dependencies":{},"devDependencies":{"@anthropic-ai/sdk":"^0.39.0","@google/generative-ai":"^0.21.0","@modelcontextprotocol/sdk":"^1.12.0","@types/node":"^22.0.0","dotenv":"^17.4.2","esbuild":"^0.28.0","openai":"^4.77.0","tsx":"^4.19.0","typescript":"^5.5.0","viem":"^2.21.0","zod":"^3.23.8"},"gitHead":"1ae652de8714e49d1c08df9f0d10aef37147cb48","_id":"@awedev/molten-mcp@0.3.5","_nodeVersion":"24.14.1","_npmVersion":"11.12.1","dist":{"integrity":"sha512-5enlWvJOCmoz4x0aa9w5vVDV1kNRqXtiEHvxzWCLsCG/6QiPBEp8HpwTLF5Hsp39U5hB5RJkx/4r57m+eM8Hmg==","shasum":"b4a82a2a77951ef90585f3b69d835f807d44d714","tarball":"https://registry.npmjs.org/@awedev/molten-mcp/-/molten-mcp-0.3.5.tgz","fileCount":39,"unpackedSize":1266143,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCSiv80+99CjADHf8ovc8zMHXwN2aEiQhOPuc5xZgBa0QIhAM7/4MX/eKKKSFF85hpPJT1+CJX2bhJb4E/S43D8eU9F"}]},"_npmUser":{"name":"awedev","email":"bernad.usxh@gmail.com"},"directories":{},"maintainers":[{"name":"awedev","email":"bernad.usxh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/molten-mcp_0.3.5_1780399357755_0.45184522545085715"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-01T16:05:08.607Z","modified":"2026-06-02T11:22:38.060Z","0.2.0":"2026-06-01T16:05:08.972Z","0.2.1":"2026-06-01T16:12:33.727Z","0.3.0":"2026-06-01T17:27:36.161Z","0.3.1":"2026-06-01T18:06:30.071Z","0.3.2":"2026-06-01T18:18:34.056Z","0.3.3":"2026-06-01T18:23:10.282Z","0.3.4":"2026-06-02T11:04:46.148Z","0.3.5":"2026-06-02T11:22:37.945Z"},"license":"MIT","keywords":["mantle","mcp","model-context-protocol","solidity","audit","gas-optimization","web3","blockchain","ai","devtools"],"description":"Molten — AI-powered MCP DevTools for Mantle Network. Contract audit, gas optimization, tx simulation, wallet intelligence, and explorer integration.","maintainers":[{"name":"awedev","email":"bernad.usxh@gmail.com"}],"readme":"<div align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/aw4e/molten/master/assets/Molten.png\" alt=\"Molten\" width=\"160\" />\n\n  # Molten\n\n  **AI-powered MCP DevTools for Mantle Network**\n\n  [![npm](https://img.shields.io/npm/v/@awedev/molten-mcp)](https://www.npmjs.com/package/@awedev/molten-mcp)\n  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n  [![Mantle](https://img.shields.io/badge/Mantle-Sepolia-blue)](https://explorer.sepolia.mantle.xyz/address/0xe09155ea5efb809e7b6a16c63ef554fb8f2b4fda)\n\n  *Mantle Turing Test Hackathon 2026 — Track 05: AI DevTools*\n</div>\n\n---\n\nBuilding on Mantle means juggling multiple tools — a security auditor, gas profiler, transaction simulator, wallet profiler, contract source fetcher, and test generator. Every context switch kills flow.\n\n**Molten collapses all of it into one MCP server.** Ask your AI assistant in plain English.\n\n## Tools (12)\n\n### Security & Audit\n| Tool | What it does |\n|------|-------------|\n| `audit_contract` | Security audit — severity-ranked findings (critical → info) with fix recommendations |\n| `compare_contracts` | Regression check — detect new vulnerabilities and gas changes between two contract versions |\n| `generate_test_cases` | Auto-generate Foundry PoC exploit tests from audit findings |\n\n### Gas & Deployment\n| Tool | What it does |\n|------|-------------|\n| `analyze_gas` | Gas optimization — before/after Solidity snippets, estimated savings in gas + MNT cost |\n| `estimate_deployment_cost` | Estimate MNT deploy cost using live Mantle gas price |\n| `get_mantle_gas_price` | Real-time gas price on mainnet or Sepolia in wei, Gwei, and MNT/MGas |\n\n### On-Chain\n| Tool | What it does |\n|------|-------------|\n| `simulate_tx` | Dry-run a transaction against live Mantle state — gas estimate or decoded revert reason |\n| `decode_calldata` | Decode raw hex calldata to human-readable function name and parameters |\n| `get_contract_source` | Fetch verified source code and ABI from Mantle Explorer |\n\n### Intelligence & Compliance\n| Tool | What it does |\n|------|-------------|\n| `explain_error` | Decode any EVM revert or hex error into plain English with actionable fixes |\n| `check_mantle_patterns` | Compliance check for 8 Mantle-specific patterns (see below) |\n| `get_wallet_intel` | Nansen AI wallet profiling — entity labels, smart money, exchange/fund/hacker flags |\n\n### Supported Patterns (`check_mantle_patterns`)\n\n| Pattern | Description |\n|---------|-------------|\n| `rwa` | Real World Asset tokenization — access control, pausability, USDY/mETH integration |\n| `meth` | mETH staking integration — correct interface, unstaking delays, slashing handling |\n| `layerzero` | LayerZero cross-chain messaging — endpoint usage, gas config, retry logic |\n| `general` | General Mantle L2 best practices — L1 fee awareness, MNT gas token, block.timestamp |\n| `agni` | Agni Finance DEX (Uniswap V3 fork) — pool interface, tick math, callback reentrancy |\n| `merchant_moe` | Merchant Moe DEX (LB protocol) — LBPair bin logic, flash loan callbacks |\n| `fbtc` | FBTC wrapped Bitcoin — mint/burn/bridge interface, fee handling, custodian confirmations |\n| `lendle` | Lendle lending (Aave V2 fork) — aToken interfaces, health factor, liquidation logic |\n\n## Quick Start\n\n```bash\nnpm install -g @awedev/molten-mcp\n```\n\nOr use directly with npx (Claude Desktop / Cursor):\n\n```bash\nnpx --yes @awedev/molten-mcp\n```\n\n## Configuration\n\n### Prerequisites\n\nAt minimum you need one AI provider API key:\n\n| Provider | Env var | Where to get |\n|----------|---------|-------------|\n| Anthropic (default) | `ANTHROPIC_API_KEY` | [console.anthropic.com](https://console.anthropic.com) |\n| MiMo (Xiaomi) | `MIMO_API_KEY` | [xiaomimimo.com](https://token-plan-sgp.xiaomimimo.com) |\n| OpenAI | `OPENAI_API_KEY` | [platform.openai.com](https://platform.openai.com/api-keys) |\n| Google Gemini | `GEMINI_API_KEY` | [aistudio.google.com](https://aistudio.google.com/apikey) |\n| Tencent Hunyuan | `TENCENT_HUNYUAN_API_KEY` | [hunyuan.tencent.com](https://hunyuan.tencent.com) |\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"molten\": {\n      \"command\": \"npx\",\n      \"args\": [\"--yes\", \"@awedev/molten-mcp\"],\n      \"env\": {\n        \"AI_PROVIDER\": \"anthropic\",\n        \"ANTHROPIC_API_KEY\": \"sk-ant-...\"\n      }\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add molten -s user \\\n  -e AI_PROVIDER=anthropic \\\n  -e ANTHROPIC_API_KEY=sk-ant-... \\\n  -- npx --yes @awedev/molten-mcp\n```\n\n### Cursor / VS Code\n\nAdd to `.cursor/mcp.json` or `.vscode/mcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"molten\": {\n      \"command\": \"npx\",\n      \"args\": [\"--yes\", \"@awedev/molten-mcp\"],\n      \"env\": {\n        \"AI_PROVIDER\": \"openai\",\n        \"OPENAI_API_KEY\": \"sk-...\"\n      }\n    }\n  }\n}\n```\n\n## AI Providers\n\nSet `AI_PROVIDER` in env to switch providers:\n\n| `AI_PROVIDER` | Key env var | Default model |\n|---------------|-------------|---------------|\n| `anthropic` (default) | `ANTHROPIC_API_KEY` | claude-sonnet-4-6 |\n| `mimo` | `MIMO_API_KEY` | mimo-v2.5-pro |\n| `openai` | `OPENAI_API_KEY` | gpt-4o |\n| `gemini` | `GEMINI_API_KEY` | gemini-2.5-flash |\n| `tencent-hunyuan` | `TENCENT_HUNYUAN_API_KEY` | hunyuan-pro |\n\nOverride model per-provider with `ANTHROPIC_MODEL`, `MIMO_MODEL`, `OPENAI_MODEL`, `GEMINI_MODEL`, or `TENCENT_HUNYUAN_MODEL`.\n\n## Environment Variables\n\n```bash\n# Required — pick at least one AI provider\nANTHROPIC_API_KEY=sk-ant-...\nMIMO_API_KEY=tp-...\nOPENAI_API_KEY=sk-...\nGEMINI_API_KEY=...\nTENCENT_HUNYUAN_API_KEY=...\n\n# Optional — Nansen wallet intelligence (required for get_wallet_intel)\nNANSEN_API_KEY=...\n\n# Optional — Mantle Explorer (Blockscout)\nMANTLE_EXPLORER_API_KEY=...\n\n# Optional — custom RPC endpoints\nMANTLE_RPC_URL=https://rpc.mantle.xyz\nMANTLE_SEPOLIA_RPC_URL=https://rpc.sepolia.mantle.xyz\n```\n\n## Example Usage\n\nOnce connected to your AI assistant:\n\n```\n\"Audit this contract for vulnerabilities\"\n→ audit_contract returns severity-ranked findings with fix recommendations\n\n\"Compare v1 and v2 of my contract — did I introduce any new bugs?\"\n→ compare_contracts returns regressions, improvements, and gas delta\n\n\"Generate Foundry tests for the vulnerabilities you found\"\n→ generate_test_cases produces a complete .t.sol file with PoC exploits\n\n\"Optimize gas usage in this contract\"\n→ analyze_gas returns before/after snippets + MNT cost savings per call\n\n\"How much will it cost to deploy this contract on Mantle?\"\n→ estimate_deployment_cost returns MNT cost using live gas price\n\n\"Decode this calldata: 0xa9059cbb...\"\n→ decode_calldata returns function name and decoded parameters\n\n\"Fetch and audit the contract at 0x1234 on Mantle Sepolia\"\n→ get_contract_source → audit_contract chained automatically\n\n\"Simulate sending 1 MNT to 0xabc from 0xdef\"\n→ simulate_tx returns gas estimate in MNT or decoded revert reason\n\n\"Who owns 0xabc...? Are they a known exploiter?\"\n→ get_wallet_intel returns Nansen labels, smart money flags, entity name\n\n\"Does this contract follow Agni Finance patterns?\"\n→ check_mantle_patterns with pattern=agni\n```\n\n## CI/CD Integration\n\nMolten includes a GitHub Actions workflow that auto-audits changed Solidity files on every PR:\n\n```yaml\n# .github/workflows/molten-audit.yml is included in this repo\n# Add your AI provider key as a GitHub secret:\n# Settings → Secrets → ANTHROPIC_API_KEY\n```\n\nRun the audit script directly:\n\n```bash\nnpx tsx scripts/ci-audit.ts contracts/MyToken.sol\n# Exit 0 = passed, Exit 1 = critical findings (blocks merge)\n# High findings emit GitHub Actions warnings but do not block\n```\n\n## Mantle-Native Design\n\nSystem prompts encode Mantle-specific knowledge:\n\n- L1 data fee awareness — calldata size matters on L2\n- `block.timestamp` caveats on Mantle L2\n- MNT as the native gas token\n- mETH staking interface patterns\n- LayerZero cross-chain messaging patterns\n- RWA tokenization compliance hooks\n- Agni Finance, Merchant Moe, FBTC, Lendle integration patterns\n\n## On-Chain Contract\n\n**MoltenRegistry** deployed on Mantle Sepolia:\n\n- Address: `0xe09155ea5efb809e7b6a16c63ef554fb8f2b4fda`\n- Explorer: [explorer.sepolia.mantle.xyz](https://explorer.sepolia.mantle.xyz/address/0xe09155ea5efb809e7b6a16c63ef554fb8f2b4fda)\n\n## Local Development\n\n```bash\ngit clone https://github.com/aw4e/molten.git\ncd molten\nnpm install\ncp .env.example .env   # fill in at least one AI provider key\nnpm run dev            # runs via tsx, no build needed\n```\n\n```bash\nnpm run build   # tsc → esbuild → dist/server.js\nnpm start\n```\n\n## Stack\n\n- **Runtime**: Node.js 18+ · TypeScript strict · ESM\n- **MCP**: `@modelcontextprotocol/sdk`\n- **Chain**: `viem` — Mantle mainnet + Sepolia clients\n- **AI**: Anthropic · MiMo (Xiaomi) · OpenAI · Google Gemini · Tencent Hunyuan\n- **Validation**: Zod\n- **Intelligence**: Nansen AI API · Mantle Explorer (Blockscout) API\n- **Build**: esbuild (single-file bundle)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}