SW

slvdev/weasel

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

30 stars 2 forks 质量 62 趋势 11MIT

你可以用Solidity静态分析器交流。Claude代码、光标和Windsurf的MCP集成。

概览

你可以用固体静态分析仪来交流 请你的AI助理审核你的合同。获得详细的结果。 黄鼠狼技能启动。你的AI会进行分析、编写PoC、格式化报告等。 - — 9项Claude代码专业技能(PoC写作、报告格式化、气体优化等)- — 并行Rust分析,即时MCP响应 - — 可使用Claude代码、Cursor、Windsurf、OpenAI Codex、Gemini CLI及任何兼容MCP的工具 - — 漏洞、气体优化和代码质量检查 - — 自动配置Foundry、Hardhat和Truffle项目 随时用 weaselup 更新。用 weaselup ——最新开发版本每晚更新。 用户请安装Weasel插件以获得智能技能: —— Claude懂得如何分析Solidity,能在Foundry/Hardhat中写PoC,格式化审计报告等。黄鼠狼前缀确保技能只在你需要时激活。 要更新插件,请在 Claude Code 中运行 /plugin update weasel。

概述(AI 翻译)

黄鼠狼

你可以用固体静态分析仪来交流

请你的AI助理审核你的合同。获得详细的结果。

现在只需说 weasel :

“黄鼠狼分析我的合同”

“这个重新入境漏洞的黄鼠狼有色人种”

“黄鼠狼报告此发现”

“黄鼠狼解释这个功能”

黄鼠狼技能启动。你的AI会进行分析、编写PoC、格式化报告等。


特色

  • AI 原生技能 — 9项Claude代码专用技能(PoC 编写、报告格式化、燃气优化等)
  • 极速 — 并行Rust分析,即时MCP响应
  • MCP 服务器 — 支持 Claude Code、Cursor、Windsurf、OpenAI Codex、Gemini CLI 及任何兼容 MCP 的工具
  • 广泛的探测器——漏洞、气体优化和代码质量检查
  • 自动检测 — 自动配置Foundry、Hardhat和Truffle项目

为什么是黄鼠狼?

黄鼠狼 其他分析仪
AI集成本地技能+MCP 复制粘贴输出到ChatGPT
设置 plugin install / mcp add 手动配置,脚本

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Weasel

Solidity static analyzer you can talk to

Ask your AI assistant to audit your contracts. Get explained results.

# 1. Install weasel
curl -L https://raw.githubusercontent.com/slvDev/weasel/main/weaselup/install | bash

# 2. Add to your AI tool:
# Claude Code (recommended - MCP + skills)
/plugin marketplace add slvDev/weasel
/plugin install weasel

# MCP only for Claude Code, Cursor, Windsurf, Codex, Gemini
weasel mcp add

Now just say weasel :

“weasel analyze my contracts”

“weasel poc for this reentrancy bug”

“weasel report this finding”

“weasel explain this function”

Weasel skills activate. Your AI runs analysis, writes PoCs, formats reports, and more.


Features

  • AI-Native Skills — 9 specialized skills for Claude Code (PoC writing, report formatting, gas optimization, and more)
  • Blazing Fast — Parallel Rust analysis, instant MCP responses
  • MCP Server — Works with Claude Code, Cursor, Windsurf, OpenAI Codex, Gemini CLI, and any MCP-compatible tool
  • Extensive Detectors — Vulnerabilities, gas optimizations, and code quality checks
  • Auto-Detection — Automatically configures for Foundry, Hardhat, and Truffle projects

Why Weasel?

Weasel Other Analyzers
AI Integration Native skills + MCP Copy-paste output to ChatGPT
Setup plugin install / mcp add Manual config, scripts
Workflow “weasel poc for this bug” Read reports, search fixes
Context AI knows Solidity security patterns Context lost between tools
Speed Parallel Rust analysis Often single-threaded

Installation

curl -L https://raw.githubusercontent.com/slvDev/weasel/main/weaselup/install | bash

Update anytime with weaselup. Use weaselup --nightly for latest dev build.


Claude Code Integration

For Claude Code users, install the Weasel plugin for intelligent skills:

/plugin marketplace add slvDev/weasel
/plugin install weasel

Use weasel prefix to activate skills:

Audit:

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

- uses: anthropics/claude-code-action@v1 with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} claude_args: | --mcp-config '{"mcpServers":{"weasel":{"command":"weasel","args":["mcp","serve"]}}}'