claude-code-lsps

作者 boostvolt已验证

LSP plugins for Claude Code — Bash/Shell, C/C++/Objective-C, C#, Clojure, Dart/Flutter, Elixir, Gleam, Go, Java, Kotlin, Lua, Nix, OCaml, PHP, Python, Ruby, Rust, Swift, Terraform, TypeScript/JavaScript, YAML & Zig

156
Stars
16
Forks
Shell
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/boostvolt/claude-code-lsps

快速入门

使用 claude-code-lsps 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Claude Code LSPs

A collection of Language Server Protocol (LSP) plugins for Claude Code.

LSP Demo

What is LSP Integration?

[!NOTE] LSP Integration: If you're on v2.0.69 through v2.0.x, LSP integration is broken due to a race condition (#14803, #13952). This has been fixed in v2.1.0+. Please upgrade to the latest version.

The Language Server Protocol provides IDE-like intelligence to Claude Code. On startup, Claude Code automatically starts LSP servers from installed plugins and exposes them to Claude in two ways:

LSP Tool - A builtin tool with 9 operations mapping directly to LSP commands:

OperationDescription
goToDefinitionFind where a symbol is defined
findReferencesFind all references to a symbol
hoverGet hover info (docs, type info) for a symbol
documentSymbolGet all symbols (functions, classes, variables) in a document
workspaceSymbolSearch for symbols across the entire workspace
goToImplementationFind implementations of an interface/abstract method
prepareCallHierarchyGet call hierarchy item at a position
incomingCallsFind all functions/methods that call the function at a position
outgoingCallsFind all functions/methods called by the function at a position

Automatic Diagnostics - Real-time error and warning detection similar to the VS Code integration, but operating independently. These diagnostics tend to be faster and more comprehensive than the VS Code equivalent.

Available Plugins

PluginLanguageExtensionsLSP
bash-language-serverBash/Shell.sh .bash .zsh .kshbash-language-server
clangdC/C++/Objective-C.c .h .cpp .hpp .cc .cxx .hxx .m .mmclangd
clojure-lspClojure.clj .cljs .cljc .ednclojure-lsp
dart-analyzerDart/Flutter.dartDart SDK
elixir-lsElixir.ex .exselixir-ls
gleamGleam.gleamgleam
goplsGo.gogopls
intelephensePHP.php .phtmlIntelephense
jdtlsJava.javajdtls
kotlin-lspKotlin.kt .ktskotlin-lsp
lua-language-serverLua.lualua-language-server
nixdNix.nixnixd
ocaml-lspOCaml.ml .mliocaml-lsp
omnisharpC#.cs .csxOmniSharp
pyrightPython.py .pyipyright
rust-analyzerRust.rsrust-analyzer
solargraphRuby.rb .rake .gemspecSolargraph
sourcekit-lspSwift.swiftsourcekit-lsp
terraform-lsTerraform.tf .tfvarsterraform-ls
vtslsTypeScript/JavaScript.ts .tsx .js .jsx .mjs .cjsvtsls
yaml-language-serverYAML.yaml .ymlyaml-language-server
zlsZig.zig .zonzls

Getting Started

1. Add the Marketplace

claude
/plugin marketplace add boostvolt/claude-code-lsps

2. Install Plugins

Install individual plugins:

/plugin install bash-language-server@claude-code-lsps
/plugin install clangd@claude-code-lsps
/plugin install clojure-lsp@claude-code-lsps
/plugin install dart-analyzer@claude-code-lsps
/plugin install elixir-ls@claude-code-lsps
/plugin install gleam@claude-code-lsps
/plugin install gopls@claude-code-lsps
/plugin install intelephense@claude-code-lsps
/plugin install jdtls@claude-code-lsps
/plugin install kotlin-lsp@claude-code-lsps
/plugin install lua-language-server@claude-code-lsps
/plugin install nixd@claude-code-lsps
/plugin install ocaml-lsp@claude-code-lsps
/plugin install omnisharp@claude-code-lsps
/plugin install pyright@claude-code-lsps
/plugin install rust-analyzer@claude-code-lsps
/plugin install solargraph@claude-code-lsps
/plugin install sourcekit-lsp@claude-code-lsps
/plugin install terraform-ls@claude-code-lsps
/plugin install vtsls@claude-code-lsps
/plugin install yaml-language-server@claude-code-lsps
/plugin install zls@claude-code-lsps

Or browse and install interactively:

/plugin

Manual LSP Installation

Each plugin will attempt to auto-install its LSP server on first use. If auto-install fails, use the manual instructions below.

Bash/Shell (bash-language-server)
brew install bash-language-server

Or via npm:

npm install -g bash-language-server
C/C++/Objective-C (clangd)
brew install llvm

Or via Xcode Command Line Tools:

xcode-select --install

Supports C, C++, Objective-C (.m), and Objective-C++ (.mm) files.

C# (omnisharp)
brew install omnisharp/omnisharp-roslyn/omnisharp-mono

Or via dotnet:

dotnet tool install -g csharp-ls
Clojure (clojure-lsp)
brew install clojure-lsp

Or download from GitHub releases.

Dart/Flutter (dart-analyzer)

Install Dart SDK:

brew tap dart-lang/dart
brew install dart

Or install Flutter (includes Dart):

# See https://docs.flutter.dev/get-started/install

Ensure dart is in your PATH.

Elixir (elixir-ls)
brew install elixir-ls

Requires Elixir to be installed:

brew install elixir
Gleam (gleam)
brew install gleam

Or download from GitHub releases.

Go (gopls)
go install golang.org/x/tools/gopls@latest

Ensure ~/go/bin is in your PATH.

Java (jdtls)
brew install jdtls

Or download manually from Eclipse JDT Language Server.

Requires Java 21+ runtime.

Kotlin (kotlin-lsp)
brew install JetBrains/utils/kotlin-lsp

Or download from GitHub releases.

Requires Java 17+.

Lua (lua-language-server)
brew install lua-language-server

Or download from GitHub releases.

Nix (nixd)
nix profile install nixpkgs#nixd

Requires Nix to be installed. See nixos.org.

OCaml (ocaml-lsp)
opam install ocaml-lsp-server

Requires opam to be installed:

brew install opam
opam init
PHP (intelephense)
npm install -g intelephense
Python (pyright)
pip install pyright
Ruby (solargraph)
gem install solargraph
Rust (rust-analyzer)
brew install rust-analyzer

Or via rustup:

rustup component add rust-analyzer
Swift (sourcekit-lsp)

sourcekit-lsp is bundled with Xcode. Install Xcode from the App Store:

# Verify installation
xcrun --find sourcekit-lsp

Or install a Swift toolchain from swift.org/install.

Terraform (terraform-ls)
brew install terraform-ls

Or download from GitHub releases.

TypeScript/JavaScript (vtsls)
npm install -g @vtsls/language-server typescript
YAML (yaml-language-server)
brew install yaml-language-server

Or via npm:

npm install -g yaml-language-server
Zig (zls)
brew install zls

Requires Zig to be installed. Download from ziglang.org.


Creating Your Own Plugin

Plugin Structure
my-lsp/
├── .claude-plugin/
│   └── plugin.json
├── .lsp.json
└── hooks/
    ├── hooks.json
    └── check-my-lsp.sh
.lsp.json Schema

The .lsp.json file configures the language server:

{
  "language-id": {
    "command": "lsp-server-command",
    "extensionToLanguage": {
      ".ext": "language-id"
    }
  }
}

Required Fields

FieldTypeDescription
commandstringCommand to start the LSP server
extensionToLanguageobjectMaps file extensions to language IDs

Optional Fields

FieldTypeDescription
argsstring[]Arguments passed to the command
transportstringCommunication method: "stdio" (default) or "socket"
envobjectEnvironment variables to set when starting the server
initializationOptionsobjectOptions passed during LSP initialization
settingsobjectServer-specific settings via workspace/didChangeConfiguration
workspaceFolderstringWorkspace folder path for the server
startupTimeoutnumberMax time to wait for server startup (milliseconds)
shutdownTimeoutnumberMax time to wait for graceful shutdown (milliseconds)
restartOnCrashbooleanWhether to automatically restart the server if it crashes
maxRestartsnumberMax restart attempts before giving up (default: 3)
Example: gopls

.lsp.json:

{
  "go": {
    "command": "gopls",
    "extensionToLanguage": {
      ".go": "go"
    }
  }
}

.claude-plugin/plugin.json:

{
  "name": "gopls",
  "description": "Go language server",
  "version": "1.0.0",
  "author": {
    "name": "Your Name"
  },
  "license": "MIT",
  "repository": "https://github.com/boostvolt/claude-code-lsps"
}

hooks/hooks.json (optional auto-install):

{
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/check-gopls.sh",
            "timeout": 30
          }
        ]
      }
    ]
  }
}

License

MIT

常见问题

What is claude-code-lsps?

claude-code-lsps is an open-source ide extensions skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by boostvolt. LSP plugins for Claude Code — Bash/Shell, C/C++/Objective-C, C#, Clojure, Dart/Flutter, Elixir, Gleam, Go, Java, Kotlin, Lua, Nix, OCaml, PHP, Python, Ruby, Rust, Swift, Terraform, TypeScript/JavaScript, YAML & Zig. It has 156 GitHub stars.

Is claude-code-lsps safe to use?

Yes. claude-code-lsps passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install claude-code-lsps?

Clone the repository with "git clone https://github.com/boostvolt/claude-code-lsps" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claude-code-lsps written in?

claude-code-lsps is primarily written in Shell. It is open-source under boostvolt on GitHub, so you can review or fork the full source.

Are there alternatives to claude-code-lsps?

Yes. SkillsLLM lists many other IDE Extensions skills you can browse and compare side by side. Open the IDE Extensions category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-code-lsps against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

claudian

by YishenTu

An Obsidian plugin that embeds Claude Code/Codex as an AI collaborator in your vault

14,921972TypeScript
IDE 扩展
查看详情

OpenMythos

by kyegomez

A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the available research literature.

14,8003,292Python
IDE 扩展
查看详情

cursor-hooks

by cursor

5

通过 Hooks 自动化 Cursor Agent 事件相关行为。

12,500890TypeScript
IDE 扩展claude-codeai-tools
查看详情

arscontexta

by agenticnotetaking

Claude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.

3,479220Shell
IDE 扩展
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情
claude-code-lsps — Claude Code AI Skill | SkillTip