Skip to main content
Glama

Foundry MCP Project

by lhemerly

🧠 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 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 cast aus.

🛠️ 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 claude

Manuelle Installation

  1. Klonen Sie das Repository:
    git clone <repository-url>
  2. Stellen Sie sicher, dass Gießereiwerkzeuge ( forge , cast , anvil usw.) 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.py

Verfü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.

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

Ein Model Context Protocol-Server, der die Interaktion mit Foundry-Tools über natürliche Sprache ermöglicht und es Benutzern erlaubt, Projekte zu erstellen, Verträge aufzubauen, Tests auszuführen und Ethereum-Entwicklungsumgebungen zu verwalten.

  1. 📂 Projektstruktur
    1. 🚀 Funktionen
      1. 🛠️ Installation
        1. Installation über Smithery
        2. Manuelle Installation
      2. 🏗️ Verwendung
        1. Ausführen des MCP-Servers
        2. Verfügbare Tools
      3. 📖 Dokumentation
        1. MCP Python SDK
      4. 🧪 Entwicklung
        1. Lokales Debuggen
        2. Laufzeitausführung
      5. 📜 Lizenz

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          A comprehensive Model Context Protocol server that provides advanced Node.js development tooling for automating project creation, component generation, package management, and documentation with AI-powered assistance.
          Last updated -
          7
          4
          JavaScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          A 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.
          Last updated -
          31
          0
          8
          TypeScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that enables AI agents to interact with 30+ Ethereum-compatible blockchain networks, providing services like token transfers, contract interactions, and ENS resolution through a unified interface.
          Last updated -
          28
          988
          304
          TypeScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          A flexible Model Context Protocol server that makes documentation or codebases searchable by AI assistants, allowing users to chat with code or docs by simply pointing to a git repository or folder.
          Last updated -
          1
          149
          49
          JavaScript
          MIT License

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/lhemerly/foundry-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server