Foundry MCP Project
🧠 Foundry MCP-Projekt
Dieses Projekt ist ein Model Context Protocol (MCP)-Server, der für die Interaktion mit Foundry-Tools entwickelt wurde. Es bietet eine Reihe von Tools und Dienstprogrammen zur Verwaltung von Foundry-Projekten, zum Ausführen von Tests, zum Erstellen von Verträgen und mehr.
📂 Projektstruktur
pyproject.toml # Project configuration file
README.md # Project documentation
uv.lock # Dependency lock file
LLM/ # Documentation and SDK usage
src/eth_wh_mcp/ # Source code for the MCP serverRelated MCP server: AMOCA Solana MCP Server
🚀 Funktionen
Foundry-Projekte erstellen : Initialisieren Sie neue Foundry-Projekte.
Verträge erstellen : Erstellen Sie Solidity-Verträge mit verschiedenen Optionen.
Tests ausführen : Führen Sie Tests mit detaillierter Konfiguration aus.
Verträge prüfen : ABI, Bytecode und andere Metadaten abrufen.
Skripte ausführen : Solidity-Skripte ausführen.
Lokale Knoten starten : Starten Sie Anvil oder Chisel für die lokale Ethereum-Entwicklung.
Erweiterte Cast-Befehle : Führen Sie Ethereum-bezogene Befehle mit
castaus.
🛠️ Installation
Installation über Smithery
So installieren Sie Foundry MCP Server für Claude Desktop automatisch über Smithery :
npx -y @smithery/cli install @lhemerly/foundry-mcp --client claudeManuelle Installation
Klonen Sie das Repository:
git clone <repository-url>Stellen Sie sicher, dass Gießereiwerkzeuge (
forge,cast,anvilusw.) installiert und in Ihrem PATH verfügbar sind.
🏗️ Verwendung
Ausführen des MCP-Servers
So starten Sie den MCP-Server:
python src/eth_wh_mcp/main.pyVerfügbare Tools
Die folgenden Tools sind im MCP-Server verfügbar:
create_project : Initialisieren Sie ein neues Foundry-Projekt.
build_project : Erstellen Sie das aktuelle Foundry-Projekt.
test_project : Führen Sie Tests im Foundry-Projekt aus.
clone_contract : Klonen Sie einen Vertrag von Etherscan.
run_script : Führen Sie ein Solidity-Skript aus.
run_cast_command : Führen Sie einen
cast-Befehl aus.start_anvil_with_options : Starten Sie den lokalen Ethereum-Knoten von Anvil.
start_chisel_with_options : Starten Sie das Chisel Solidity REPL.
inspect_contract : Vertragsmetadaten prüfen.
snapshot_project : Erstellen Sie einen Snapshot des Gasverbrauchs.
coverage_project : Testabdeckung anzeigen.
📖 Dokumentation
MCP Python SDK
Ausführliche Informationen zur Verwendung des MCP Python SDK, einschließlich Serveraufbau, Tools, Eingabeaufforderungen und Kontextverarbeitung, finden Sie in der Datei LLM/python-mcp-sdk.md.
🧪 Entwicklung
Lokales Debuggen
Führen Sie den MCP-Server im Entwicklungsmodus aus:
mcp dev src/eth_wh_mcp/main.py --with-editable .Laufzeitausführung
So führen Sie den Server aus:
python src/eth_wh_mcp/main.py📜 Lizenz
Dieses Projekt ist unter der MIT-Lizenz lizenziert. Weitere Informationen finden Sie in der Datei LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
The OpenZeppelin Solidity Contracts MCP server integrates OpenZeppelin's security and style rules into AI-driven development workflows, enabling AI assistants to generate safe, correct, and production-ready smart contracts. It automatically validates generated code against OpenZeppelin standards (including imports, modifiers, naming conventions, and security checks) and supports various contract types including ERC-20, ERC-721, ERC-1155, Stablecoins, RWA, Governor, and Account contracts through prompt-driven workflows.
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that gives LLMs the ability to interact with Ethereum networks, manage wallets, query blockchain data, and execute smart contract operations through a standardized interface.5428 npm14MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with the Solana blockchain, providing RPC methods, wallet management, DeFi trading capabilities, and Helius API integration for enhanced Solana development.5MIT
- AlicenseNot gradedqualityAmaintenanceA Model Context Protocol server that integrates with FoundryVTT, allowing AI assistants to interact with tabletop gaming sessions through natural language to query actors, roll dice, generate content, and manage game worlds.52 npm34MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server providing Ethereum blockchain tools, including vanity address generation and Cast command functionality for interacting with Ethereum networks through natural language.1422 npmMIT
Appeared in Searches
- Executing Operations and Maintenance Tasks, Such as Deployment and Upgrades
- A server for EVM (Extended Virtual Machine) MCP
- MCP to Control CAD Tools for Building Models and Automating Manufacturing
- Guidance on Writing Git Commit Messages for Pushing to GitHub
- Automating web browser searches using Chrome