Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Claude Code

Claude Code supports Solidity language server through the official plugin system.

Install the Plugin

  1. Add the marketplace:
/plugin marketplace add asyncswap/solidity-language-server-plugin
  1. Install the plugin:
/plugin install solidity-language-server@asyncswap
  1. Reload plugins:
/reload-plugins

Prerequisites

The language server binary must be installed and available in your PATH:

curl -fsSL https://asyncswap.org/lsp/install.sh | sh

Or install from Cargo:

cargo install solidity-language-server

LSP Features

Once the plugin is installed, Claude Code can use the LSP tool on .sol files:

OperationDescription
goToDefinitionFind where a symbol is defined
findReferencesFind all references to a symbol
hoverGet documentation and type info
documentSymbolList all symbols in a file
workspaceSymbolSearch symbols across the workspace
goToImplementationFind implementations of interfaces
incomingCallsFind callers of a function
outgoingCallsFind functions called by a function

How It Works

The plugin registers solidity-language-server --stdio as the LSP server for .sol files. Claude Code launches the server automatically when you use LSP operations on Solidity files.

Source: asyncswap/solidity-language-server-plugin