lsp-setup
自动完成安装、写配置并回测,能快速恢复编辑器智能功能。
可能会安装系统级依赖或修改编辑器配置,需网络与安装权限。
检测项目所需并安装/配置合适的语言服务器以启用 LSP 功能。
自动检测项目需要的 Language Server 并安装、写好配置,让编辑器和工具的 diagnostics、go-to-definition、find-references 等功能能正常工作。在新项目、报错提示没有 LSP 或需要在多个服务器间选择时会用到。它会扫描项目需求、生成配置并做验证,省去手动找服务器和配置的麻烦。
▸ 展开 SKILL.md 英文原文
Configure a Language Server (LSP) for a specific language so editor/agent tooling — diagnostics, go-to-definition, find-references, rename — works. Use when you need to: configure LSP, lsp setup, set up or install a language server, fix 'no LSP server configured' / 'server not installed', choose between servers (basedpyright vs pyright vs ty vs ruff), or wire .codex/lsp-client.json / .opencode/lsp.json. 언어서버 설정. Routes by file extension to references/<language>/README.md for the exact builtin server, per-OS install commands (macOS/Linux/Windows), config snippets for both config files, initialization options, alternatives, and troubleshooting. Ships scripts: detect-lsp.ts (scan a project for languages + each server's install/config status) and verify-lsp.ts (run a real diagnostics roundtrip). Covers typescript, python, go, rust, c/c++, java, kotlin, c#/razor, swift, ruby, php, dart, elixir, zig, lua, bash, yaml, terraform, haskell, julia.
帮我安装这个 skill:https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/packages/shared-skills/skills/lsp-setup/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/packages/shared-skills/skills/lsp-setup/SKILL.md"# LSP Setup Configure the right Language Server for a project so the `lsp` MCP tools (`diagnostics`, `goto_definition`, `find_references`, `symbols`, `rename`) actually work. This skill is an index: detect what a project needs, install the server, write the config, then verify with a real roundtrip. The list of servers we ship as **builtin** is the source of truth in `packages/lsp-tools-mcp/src/lsp/server-definitions.ts` (`BUILTIN_SERVERS` + `LSP_INSTALL_HINTS`). The per-language references below mirror it. --- ## PHASE 0 — LANGUAGE GATE (run first) Identify the language from the file extension, then **read the matching reference before installing or configuring anything**. | Extension