Loading...
Loading...
Install and configure LSP (Language Server Protocol) for Claude Code to enable go-to-definition, find-references, and real-time diagnostics
npx skill4agent add jpoutrin/product-forge install-lsp~/.zshrc~/.bashrcexport ENABLE_LSP_TOOL=1# Add the LSP plugin marketplace
/plugin marketplace add boostvolt/claude-code-lsps
# Install language-specific plugins
/plugin install pyright@claude-code-lsps # Python
/plugin install vtsls@claude-code-lsps # TypeScript/JavaScript
/plugin install gopls@claude-code-lsps # Go
/plugin install rust-analyzer@claude-code-lsps # Rust
/plugin install clangd@claude-code-lsps # C/C++
/plugin install jdtls@claude-code-lsps # Java
/plugin install omnisharp@claude-code-lsps # C#
/plugin install intelephense@claude-code-lsps # PHP
/plugin install kotlin-language-server@claude-code-lsps # Kotlin
/plugin install solargraph@claude-code-lsps # Ruby
/plugin install vscode-html-css@claude-code-lsps # HTML/CSSnpx cclsp@latest setup # Project-level config
npx cclsp@latest setup --user # User-wide config| Language | Binary | Installation |
|---|---|---|
| Python | pyright | |
| TypeScript/JS | vtsls | |
| Go | gopls | |
| Rust | rust-analyzer | |
| C/C++ | clangd | |
| Java | jdtls | |
| C# | omnisharp | |
| PHP | intelephense | |
| Kotlin | kotlin-language-server | |
| Ruby | solargraph | |
| HTML/CSS | vscode-langservers | |
.claude/cclsp.json~/.config/claude/cclsp.json{
"servers": [
{
"extensions": ["py", "pyi"],
"command": ["pyright-langserver", "--stdio"],
"rootDir": ".",
"restartInterval": 30
},
{
"extensions": ["ts", "tsx", "js", "jsx"],
"command": ["typescript-language-server", "--stdio"],
"rootDir": "."
}
]
}| Tool | Description |
|---|---|
| Navigate to symbol definition |
| Find all usages of a symbol |
| Rename symbol across all files |
| Get type errors and warnings |
| Restart the language server |
# Verify plugin is installed
/plugin
# Reinstall if needed
/plugin uninstall pyright@claude-code-lsps
/plugin install pyright@claude-code-lsps# Check binary exists
which pyright
which gopls
# For Go, ensure GOPATH/bin is in PATH
export PATH=$PATH:$(go env GOPATH)/bin# Clear cache and reinstall
rm -rf ~/.claude/plugins/cache
/plugin install pyright@claude-code-lspscmd /c{
"servers": [{
"extensions": ["py"],
"command": ["cmd", "/c", "pyright-langserver", "--stdio"]
}]
}functionNameClassNamenativecclspENABLE_LSP_TOOL/pluginnpx cclsp@latest setup/mcp