Foundry开发套件
STDIO用于Foundry工具交互的MCP服务器
用于Foundry工具交互的MCP服务器
This project is a Model Context Protocol (MCP) server designed to interact with Foundry tools. It provides a set of tools and utilities to manage Foundry projects, run tests, build contracts, and more.
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
cast
.To install Foundry MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @lhemerly/foundry-mcp --client claude
Clone the repository:
git clone <repository-url>
Ensure Foundry tools (forge
, cast
, anvil
, etc.) are installed and available in your PATH.
To start the MCP server:
python src/eth_wh_mcp/main.py
The following tools are available in the MCP server:
cast
command.Refer to the LLM/python-mcp-sdk.md file for detailed usage of the MCP Python SDK, including server construction, tools, prompts, and context handling.
Run the MCP server in development mode:
mcp dev src/eth_wh_mcp/main.py --with-editable .
To execute the server:
python src/eth_wh_mcp/main.py
This project is licensed under the MIT License. See the LICENSE file for details.