lsp-setup
하는 일
이 도구는 프로그래밍 프로젝트에 맞는 올바른 ‘언어 서버’를 설정하도록 돕습니다. 이렇게 하면 오류 찾기, 코드 정의로 이동, 함수 이름 바꾸기 같은 기능이 제대로 작동합니다.
사용하는 경우
- ✓‘LSP 서버가 설정되지 않았습니다’라는 오류가 나올 때.
- ✓프로젝트에서 오류 찾기 같은 코드 도구가 작동하기를 원할 때.
- ✓지원되는 프로그래밍 언어로 새 프로젝트를 시작하는 경우.
스킬 링크
https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/lsp-setup/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 Python 프로젝트의 언어 서버를 설정해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 먼저 프로젝트의 언어를 파악합니다. 그다음 필요한 언어 서버를 설치하고, 기능이 올바르게 작동하도록 도구를 설정합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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(s) | Reference |
|---|---|
.ts .tsx .js .jsx .mjs .cjs .mts .cts .vue .svelte .astro |
references/typescript/README.md |
.py .pyi |
references/python/README.md |
.go |
references/go/README.md |
.rs |
references/rust/README.md |
.c .cpp .cc .cxx .h .hpp .hh .hxx |
references/c-cpp/README.md |
.java |
references/java/README.md |
.kt .kts |
references/kotlin/README.md |
.cs .razor .cshtml |
references/csharp/README.md |
.swift |
references/swift/README.md |
.rb .rake .gemspec .ru |
references/ruby/README.md |
.php |
references/php/README.md |
.dart |
references/dart/README.md |
.ex .exs |
references/elixir/README.md |
.zig .zon |
references/zig/README.md |
.lua |
references/lua/README.md |
.sh .bash .zsh .ksh |
references/bash/README.md |
.yaml .yml |
references/yaml/README.md |
.tf .tfvars |
references/terraform/README.md |
.hs .lhs |
references/haskell/README.md |
.jl |
references/julia/README.md |
WORKFLOW — detect → install → configure → verify
1. Detect
Scan the project to see which languages are present and whether each server is installed and configured:
bun scripts/detect-lsp.ts <projectDir> # human report (default: cwd)
bun scripts/detect-lsp.ts <projectDir> --json
For each detected language it prints the builtin server id, the executable it
needs on PATH, whether that executable is installed, an install hint, and
whether a project config file already references it.
2. Install
Open references/<language>/README.md and run the install command for your OS.
Then confirm the executable resolves:
command -v <server-executable> # e.g. typescript-language-server, gopls, rust-analyzer
3. Configure
Most builtin servers need no config — they are resolved automatically by
file extension. Write config only to: pick between competing servers, set a
priority, pass initialization options, override extensions, set env, or
disable a server.
Two project-scoped config files, identical JSON shape:
- Codex harness →
.codex/lsp-client.json(user:~/.codex/lsp-client.json) - OpenCode/omo harness →
.opencode/lsp.json(also.omo/lsp.json)
{
"lsp": {
"<server-id>": {
"command": ["<bin>", "<args>"], // optional for builtin ids (supplied automatically)
"extensions": [".ext"], // optional override
"priority": 100, // higher wins when several servers match an extension
"initialization": { }, // server-specific initializationOptions
"env": { "KEY": "value" }, // optional
"disabled": false // set true to turn a server off
}
}
}
Rules enforced by config-loader.ts:
- In a project config (
.codex/lsp-client.json,.opencode/lsp.json) an entry whose id is a builtin server inheritscommandautomatically — you only overrideextensions/priority/initialization. A non-builtin id in a project config is ignored. - To define a fully custom (non-builtin) server with its own
command, put it in the user config (~/.codex/lsp-client.json, or the path set byLSP_TOOLS_MCP_USER_CONFIG), wherecommand+extensionsare honored. - Project entries win over user entries; both win over builtin defaults.
Each language reference gives a ready-to-paste snippet.
4. Verify
Run a real diagnostics roundtrip against a source file. This spawns the server,
opens the file, requests diagnostics, and reports OK/FAIL:
bun scripts/verify-lsp.ts <path/to/file.ext>
bun scripts/verify-lsp.ts <file> --timeout=90000
…
자주 묻는 질문
‘언어 서버’란 무엇인가요?
프로그래밍 언어를 이해하고, 코드 편집기 도구가 오류나 제안 같은 유용한 정보를 제공하도록 돕는 프로그램입니다.
어떤 언어를 지원하나요?
TypeScript, Python, Go, Rust, C/C++, Java, C#, Swift, Ruby, PHP, Dart, Elixir, Zig, Lua, Bash, YAML, Terraform, Haskell, Julia 등 여러 언어를 지원합니다.
미리 설치해야 할 것이 있나요?
네, 도구가 제공하는 안내에 따라 프로그래밍 언어에 맞는 언어 서버를 설치해야 할 수 있습니다.
상세 정보
작성자의 원본 설명
Configures a language server so editor/agent tooling (diagnostics, go-to-definition, references, rename) works. Use when a project needs an LSP installed or wired, or a 'no LSP server configured' error appears.
인기도
- GitHub 스타
- 70k
- 순위
- #3135
- 라이선스
- NOASSERTION
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
comment-checker
70k에이전트가 자동 댓글 검사기의 피드백을 이해하고 응답하도록 돕습니다. 자동화된 코드나 콘텐츠 검토 결과를 처리하는 데 유용합니다.
lcx-contribute-bug-fix
70k에이전트가 LazyCodex 관련 프로젝트에 버그 수정을 기여하도록 이슈나 PR을 만들어 코드 품질을 높이도록 돕습니다.
lcx-doctor
70k에이전트가 LazyCodex와 Codex CLI 설치 상태를 점검하도록 돕습니다. 업데이트나 변경 후 시스템이 이상하게 동작할 때 유용합니다.
lcx-report-bug
70k에이전트가 LazyCodex 프로젝트의 버그를 자세히 보고하도록 돕습니다. 개발자가 문제를 고칠 수 있도록 유용한 정보를 담은 이슈를 만듭니다.