Claude Code
Claude Code supports Solidity language server through the official plugin system.
Install the Plugin
- Add the marketplace:
/plugin marketplace add asyncswap/solidity-language-server-plugin- Install the plugin:
/plugin install solidity-language-server@asyncswap- Reload plugins:
/reload-pluginsPrerequisites
The language server binary must be installed and available in your PATH:
curl -fsSL https://asyncswap.org/lsp/install.sh | shOr install from Cargo:
cargo install solidity-language-serverLSP Features
Once the plugin is installed, Claude Code can use the LSP tool on .sol files:
| Operation | Description |
|---|---|
goToDefinition | Find where a symbol is defined |
findReferences | Find all references to a symbol |
hover | Get documentation and type info |
documentSymbol | List all symbols in a file |
workspaceSymbol | Search symbols across the workspace |
goToImplementation | Find implementations of interfaces |
incomingCalls | Find callers of a function |
outgoingCalls | Find 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.