E
Evm Debug MCP
作者 @idkMEV
AI-Generated MCP tool
创建于 2/18/2026
更新于 7 days ago
README
Repository documentation and setup instructions
EVM Debug MCP
Deterministic EVM execution trace indexing engine built on top of Anvil's debug_traceTransaction / debug_traceCall. Structures, indexes, caches, and queries opcode-level traces — it does not implement an EVM.
Workspace
crates/
types/ — shared types, error enum, Opcode enum (evm-debug-types)
rpc/ — AnvilManager, TraceFetcher, capability check (evm-debug-rpc)
core/ — normalizer, call tree, jump graph, indexer, cache, diffs (evm-debug-core)
query/ — PC resolver, stack/memory/frame/call-tree/address queries (evm-debug-query)
adapter/ — FoundryAdapter, HTTP interface scaffold (evm-debug-adapter)
Build & Test
cargo build
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo bench -p evm-debug-core
Fuzz
cargo install cargo-fuzz
cd fuzz && cargo fuzz run normalize
Three targets: normalize, opcode_from_name, hex_parse.
Key Features
- Immutable, versioned
TraceSnapshotwith schema migration support - O(n) linear-time indexing (PC index, address index, call tree, jump graph)
- Bidirectional jump graph with dynamic target resolution
- Stack/memory/storage diff engine
StateQuerytrait with unifiedTraceQueryEngineimplementation- Address-scoped queries via
AddressQuerier - LRU frame cache with explicit invalidation
- 72 unit + property tests, criterion benchmarks at 10k/100k/1M steps
- CI: fmt, clippy, test, cargo-deny, cargo-audit
Architecture
Client-agnostic — works with Anvil, Geth, Erigon or any RPC endpoint supporting debug_trace*. Core indexing never depends on the adapter or RPC layer. All indices are deterministic and rebuildable from the raw trace.
快速设置
此服务器的安装指南
安装命令 (包未发布)
git clone https://github.com/idkMEV/evm-debug-mcp
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。
Cursor 配置 (mcp.json)
{
"mcpServers": {
"idkmev-evm-debug-mcp": {
"command": "git",
"args": [
"clone",
"https://github.com/idkMEV/evm-debug-mcp"
]
}
}
}