Foundry MCP Project
🧠 Foundry MCP 项目
该项目是一个模型上下文协议 (MCP) 服务器,旨在与 Foundry 工具交互。它提供了一套工具和实用程序来管理 Foundry 项目、运行测试、构建合约等。
📂 项目结构
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
🚀 功能
创建 Foundry 项目:初始化新的 Foundry 项目。
建立合约:使用各种选项编译 Solidity 合约。
运行测试:使用详细配置执行测试。
检查合同:检索 ABI、字节码和其他元数据。
运行脚本:执行 Solidity 脚本。
启动本地节点:启动 Anvil 或 Chisel 进行本地以太坊开发。
高级 Cast 命令:使用
cast执行与以太坊相关的命令。
🛠️ 安装
克隆存储库:
git clone <repository-url>确保 Foundry 工具(
forge、cast、anvil等)已安装并在您的 PATH 中可用。
🏗️ 使用方法
运行 MCP 服务器
要启动 MCP 服务器:
python src/eth_wh_mcp/main.py可用工具
MCP 服务器中提供以下工具:
create_project :初始化一个新的 Foundry 项目。
build_project :构建当前的 Foundry 项目。
test_project :在 Foundry 项目中运行测试。
clone_contract :从 Etherscan 克隆合约。
run_script :执行 Solidity 脚本。
run_cast_command :运行
cast命令。start_anvil_with_options :启动 Anvil 本地以太坊节点。
start_chisel_with_options :启动 Chisel Solidity REPL。
inspect_contract :检查合同元数据。
snapper_project :创建 gas 使用情况快照。
coverage_project :显示测试覆盖率。
📖 文档
MCP Python SDK
有关 MCP Python SDK 的详细使用方法,包括服务器构建、工具、提示和上下文处理,请参阅LLM/python-mcp-sdk.md文件。
🧪 开发
本地调试
以开发模式运行 MCP 服务器:
mcp dev src/eth_wh_mcp/main.py --with-editable .运行时执行
执行服务器:
python src/eth_wh_mcp/main.py📜 许可证
本项目遵循 MIT 许可证。详情请参阅 LICENSE 文件。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.544114MIT
- 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.4329MIT
- 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.14118MIT
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
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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