TS

trailofbits/slither-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

98 stars 10 forks 품질 74 트렌드 19AGPL-3.0

trailofbits/slither-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요

trailofbits/slither-mcp는 [[T0]에서 가져온 MCP 서버 후보입니다.

개요(AI 번역)

Slither를 사용하는 Solidity 스마트 계약에 대한 정적 분석 기능을 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다.

개요

이 MCP 서버는 Slither 정적 분석 기능을 감싸 모델 컨텍스트 프로토콜을 통해 접근할 수 있게 합니다. Solidity 프로젝트(Foundry, Hardhat 등)를 분석하고 계약, 함수, 상속 계층 구조 등 포괄적인 메타데이터를 생성할 수 있습니다.

Slither MCP는 다른 용도에 사용하기 쉬운 Slither API로도 사용할 수 있습니다.

특징

  • 캐싱: 슬리더 런은 {$PROJECT_PATH}/artifacts/project_facts.json로 캐시되어 더 빠른 후속 로드를 수행합니다
  • MCP 도구: MCP 도구를 통한 계약 및 기능 정보 조회
  • 보안 분석: 슬리더 감지기를 실행하고 필터링으로 결과를 접근
  • 종합 분석: 다음 사항에 대한 상세 정보 추출:
  • 계약 메타데이터(추상, 인터페이스, 라이브러리 플래그)
  • 함수 서명 및 수정어
  • 상속 계층 구조
  • 함수 호출 관계(내부, 외부, 라이브러리 호출)
  • 보안 취약점 및 코드 품질 문제
  • 소스 코드 위치

비록 v1.0 버전이지만, 피드백이 더 많이 들어오면 API 변경이 있을 것으로 예상합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Slither MCP Server

A Model Context Protocol (MCP) server that provides static analysis capabilities for Solidity smart contracts using Slither.

Overview

This MCP server wraps Slither static analysis functionality, making it accessible through the Model Context Protocol. It can analyze Solidity projects (Foundry, Hardhat, etc.) and generate comprehensive metadata about contracts, functions, inheritance hierarchies, and more.

You can also use Slither MCP as an easy-to-use Slither API for other use cases.

Features

  • Caching: Slither runs are cached to {$PROJECT_PATH}/artifacts/project_facts.json for faster subsequent loads
  • MCP Tools: Query contract and function information through MCP tools
  • Security Analysis: Run Slither detectors and access results with filtering
  • Comprehensive Analysis: Extracts detailed information about:
    • Contract metadata (abstract, interface, library flags)
    • Function signatures and modifiers
    • Inheritance hierarchies
    • Function call relationships (internal, external, library calls)
    • Security vulnerabilities and code quality issues
    • Source code locations

While this is a v1.0 release, we anticipate API changes as we receive more feedback.

Installation

This project uses UV for package management:

# Install dependencies
uv sync

# Or install in development mode
uv pip install -e .

Usage

Basic Usage

Start the Slither MCP server:

uv run slither-mcp

All tools accept a path parameter that specifies which Solidity project to analyze. Projects are automatically cached in /artifacts/project_facts.json for faster subsequent queries.

Use in Claude Code

claude mcp add --transport stdio --scope user slither -- uvx --from git+https://github.com/trailofbits/slither-mcp slither-mcp

Use in Cursor

Make sure uvx is on your Cursor path using sudo ln -s ~/.local/bin/uvx /usr/local/bin/uvx

In your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "slither-mcp": {
      "command": "uvx --from git+https://github.com/trailofbits/slither-mcp slither-mcp",
    }
  }
}

Metrics and Privacy

Slither MCP includes opt-out metrics to help improve reliability by letting us know how often LLMs use each tool and their successful call rate. Metrics are enabled by default but can be permanently disabled.

What We Collect

GitHub에서 전체 README 보기

설치

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

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "slither-mcp": { "command": "uvx --from git+https://github.com/trailofbits/slither-mcp slither-mcp", } } }