mseep-slither-mcp

v1.0.0
mseep-slither-mcp Checked 1 day ago Published 11 months ago

MCP server for Slither static analysis of Solidity contracts

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_contracts List Contracts

List all contracts with optional filters. Supports filtering by contract type (concrete, interface, library, abstract) and by path pattern (glob-style matching).

ParameterTypeDescription
request *objectRequest to list contracts with optional filters.

get_contract Get Contract

Get detailed information about a specific contract. Returns complete contract metadata including inheritance, functions, and contract type information.

ParameterTypeDescription
request *objectRequest to get detailed contract information.

get_contract_source Get Contract Source

Get the full source code of the file where a contract is implemented. Returns the complete source code of the Solidity file containing the contract, along with the file path.

ParameterTypeDescription
request *objectRequest to get the full source code of a contract's file.

get_function_source Get Function Source

Get the source code of a specific function. Returns the source code for a specific function identified by its FunctionKey, along with the file path and line numbers where it's defined.

ParameterTypeDescription
request *objectRequest to get the source code of a specific function.

list_functions List Functions

List functions with optional filters. Can filter by contract, visibility (public/external/internal/private), and solidity modifiers (view/pure/payable/virtual/etc).

ParameterTypeDescription
request *objectRequest to list functions with optional filters.

function_callees Function Callees

Get the internal, external, and library callees for a function. This tool resolves a function in a given calling context and returns all the functions it calls (internal, external, and library calls).

ParameterTypeDescription
request *objectRequest to list callees for a function.

get_inherited_contracts Get Inherited Contracts

Get the inherited contracts for a contract. This tool returns both the directly inherited contracts and the full inheritance hierarchy (including transitive inheritance).

ParameterTypeDescription
request *objectRequest to get inherited contracts for a contract.

get_derived_contracts Get Derived Contracts

Get the derived contracts for a contract (contracts that inherit from it). This tool returns both the directly derived contracts and the full derived hierarchy (including transitive derivation), showing all contracts that directly or indirectly inherit from the specified contract.

ParameterTypeDescription
request *objectRequest to get derived contracts (contracts that inherit from this one).

list_function_implementations List Function Implementations

List all contracts that implement a specific function. This tool finds all contracts that provide an implementation of a given function signature. It's particularly useful for finding implementations of abstract functions or interface methods.

ParameterTypeDescription
request *objectRequest to find contracts implementing a function.

function_callers Function Callers

Get all functions that call the target function, grouped by call type. This tool finds all functions in the project that may call the target function by checking each function's callees lists. Results are grouped by call type: internal, external, and library calls.

ParameterTypeDescription
request *objectRequest to list callers for a function.

list_detectors List Detectors

List all available Slither detectors with their metadata. This tool returns information about all available Slither detectors including their names, descriptions, impact levels, and confidence ratings. You can optionally filter by name or description using the name_filter parameter.

ParameterTypeDescription
request *objectRequest to list available Slither detectors.

run_detectors Run Detectors

Retrieve cached Slither detector results with optional filtering. This tool returns the results from running Slither detectors on the project. Results are cached during initialization and can be filtered by detector name, impact level (High, Medium, Low, Informational), and confidence level (High, Medium, Low). Each result includes source locations (file path and line numbers) for the findings.

ParameterTypeDescription
request *objectRequest to run detectors and retrieve results.