Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from bundle
Install and run silkworm-mcp via uv (stdio/http) with health checks.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/setup_silkworm_mcp.sh
1#!/usr/bin/env bash2set -euo pipefail34REPO_URL="${SILKWORM_MCP_REPO_URL:-https://github.com/BitingSnakes/silkworm-mcp}"5TARGET_DIR="${SILKWORM_MCP_DIR:-$HOME/.cache/silkworm-mcp}"67if ! command -v uv >/dev/null 2>&1; then8echo "error: uv is required. Install from https://docs.astral.sh/uv/getting-started/installation/" >&29exit 110fi1112mkdir -p "$(dirname "$TARGET_DIR")"1314if [[ -d "$TARGET_DIR/.git" ]]; then15git -C "$TARGET_DIR" fetch --all --prune16git -C "$TARGET_DIR" pull --ff-only17else18rm -rf "$TARGET_DIR"19git clone --depth 1 "$REPO_URL" "$TARGET_DIR"20fi2122cd "$TARGET_DIR"23uv sync2425echo "ready: $TARGET_DIR"26