Lsp Client
by @olveww-dot
Connects to external Language Server Protocol (LSP) servers via stdio to provide code intelligence like goto definition, find references, hover, and symbol s...
clawhub install hermes-lsp-client📖 About This Skill
LSP Client Skill
> 🛡️ OpenClaw 混合进化方案 — 将 Hermes-agent(100K ⭐)+ Claude Code 核心能力移植到 OpenClaw
Skill Name: lsp-client
Description: Provides code intelligence (goto definition, find references, hover, document symbols) by connecting to external LSP servers via stdio.
Trigger Keywords: 跳转到定义, 查找引用, 悬停提示, 符号搜索, goto definition, find references, hover, document symbol
🚀 一键安装
mkdir -p ~/.openclaw/skills && cd ~/.openclaw/skills && curl -fsSL https://github.com/olveww-dot/openclaw-hermes-claude/archive/main.tar.gz | tar xz && cp -r openclaw-hermes-claude-main/skills/hermes-lsp-client . && rm -rf openclaw-hermes-claude-main && echo "✅ lsp-client 安装成功"
What This Skill Does
This skill acts as an LSP client that communicates with external Language Server Protocol (LSP) servers. LSP is the protocol VSCode uses for code intelligence — this skill gives OpenClaw the same capabilities.
Requirements
You must install LSP servers yourself. This skill is just the client.
Supported LSP Servers
| Language | Server | Install |
|----------|--------|---------|
| TypeScript/JavaScript | typescript-language-server | npm i -g typescript-language-server |
| Python | pyright or jedi-language-server | pip install pyright |
| Rust | rust-analyzer | rustup component add rust-analyzer |
| Go | gopls | go install golang.org/x/tools/gopls@latest |
| C/C++ | clangd | Install via LLVM or your package manager |
| Vue | volar | npm i -g @vue/language-server |
Configuration
Add LSP server configs to your TOOLS.md or skill config:
const LSP_SERVERS = {
'typescript': {
command: 'typescript-language-server',
args: ['--stdio'],
extensionToLanguage: {
'.ts': 'typescript',
'.tsx': 'typescript',
'.js': 'javascript',
},
},
}
Commands
Goto Definition
filePath:line:characterFind References
filePath:line:characterHover
filePath:line:characterDocument Symbols
filePathArchitecture
lsp-commands.ts — High-level commands (gotoDef, findRefs, etc.)
server-manager.ts — LSP server lifecycle & routing
protocol.ts — LSP protocol type definitions
Limitations
🧩 配套技能
本 skill 是 OpenClaw 混合进化方案 的一部分:
> 将 Hermesagent(100K ⭐)+ Claude Code 核心能力移植到 OpenClaw
> 将 Hermes-agent(100K ⭐)+ Claude Code 核心能力移植到 OpenClaw
🔗 GitHub 项目:olveww-dot/openclaw-hermes-claude
完整技能套件(6个):
⚙️ Configuration
Add LSP server configs to your TOOLS.md or skill config:
const LSP_SERVERS = {
'typescript': {
command: 'typescript-language-server',
args: ['--stdio'],
extensionToLanguage: {
'.ts': 'typescript',
'.tsx': 'typescript',
'.js': 'javascript',
},
},
}