# 使用 Homebrew, apk, MacPorts, Nix 安装 kotlin-language-server

查看 kotlin-language-server 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:kotlin-language-server
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kotlin-language-server
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kotlin-language-server
```

  证据: MacPorts ports tree: devel/kotlin-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add kotlin-language-server
```

  证据: Alpine Linux edge package indexes: kotlin-language-server from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#kotlin-language-server
```

  证据: nixpkgs package indexes: pkgs/by-name/ko/kotlin-language-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:kotlin-language-server
- **软件包管理器:** Homebrew
- **版本:** 1.3.13
- **来源摘要:** Intelligent Kotlin support for any editor/IDE using the Language Server Protocol
- **主页:** <https://github.com/fwcd/kotlin-language-server>
- **仓库:** <https://github.com/fwcd/kotlin-language-server>
- **最后更新:** 2026-08-02T01:26:52+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kotlin-language-server (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.13
## 项目历史与用法

fwcd/kotlin-language-server is the long-running community Kotlin implementation of the Language Server Protocol. It mattered because it gave editor-agnostic Kotlin completion, diagnostics, hover, symbols, and navigation before JetBrains published an official Kotlin language server.

### 项目历史

The GitHub repository was created on 2018-05-28 and early release metadata shows version 0.1.3 on 2018-06-12. The README describes a language server providing smart completion, diagnostics, hover, document symbols, definition lookup, and signature help for Kotlin in any LSP-capable editor.

The README explicitly notes that JetBrains later published an official language server and that this community project can be considered deprecated. JetBrains documentation describes the official Kotlin Language Server as based on IntelliJ IDEA, the IntelliJ IDEA Kotlin plugin, JetBrains AIR, and Fleet.

### 采用历史

The project became widely referenced because Kotlin users outside IntelliJ IDEA and Android Studio needed LSP support in editors such as VS Code, Atom, Vim/Neovim, Emacs, and Helix. Package-manager adoption in Homebrew, MacPorts, Nix, and APK reflects that cross-editor audience.

GitHub repository metadata observed on 2026-07-01 reported 2,035 stars and 249 forks, a notable footprint for a language server maintained outside the language vendor.

### 使用方式

Users install the `kotlin-language-server` executable and configure an LSP client in their editor. For classpaths, the README documents automatic Maven or Gradle resolution as well as manual scripts such as `[project root]/kls-classpath` or config-root `kotlin-language-server/classpath` files.

Its practical use was strongest for Kotlin/JVM projects where editor users wanted language intelligence without opening the project in IntelliJ IDEA.

### 为什么软件包爱好者会关心

This package is significant because language servers are exactly the kind of tool package managers make useful: one executable can unlock editor integrations across many frontends.

It also captures a transitional moment in language tooling, where community LSP implementations filled gaps until language vendors shipped official servers.

### 时间线

- 2018-05-28: GitHub repository created.
- 2018-06-12: 0.1.3 release published in GitHub release metadata.
- 2019-08-16: 0.3.0 release published.
- 2019-10-25: 0.4.0 release published.
- 2025: JetBrains documentation published an official Kotlin Language Server page, and the community README marked fwcd/kotlin-language-server deprecated in favor of it.

### Related projects

- The project is related to the Language Server Protocol, Kotlin compiler internals, editor LSP clients, VS Code Kotlin integrations, and JetBrains' official Kotlin Language Server.
- It also sits near kotlin-debug-adapter and tree-sitter-kotlin, both of which appear in the README as companion editor-agnostic Kotlin tooling.

### 来源

- <https://api.github.com/repos/fwcd/kotlin-language-server>
- <https://github.com/fwcd/kotlin-language-server>
- <https://github.com/fwcd/kotlin-language-server/releases>
- <https://kotlinlang.org/docs/kotlin-lsp.html>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: [project root]/kls-classpath, [project root]/kls-classpath.sh, ~/.config/kotlin-language-server/classpath, ~/.config/kotlin-language-server/classpath.sh
- Windows: [project root]\kls-classpath.bat, [project root]\kls-classpath.cmd, %HOMEPATH%\.config\kotlin-language-server\classpath.bat
## 其他软件包管理器记录

- Nix - kotlin-language-server: normalized package name match | nixpkgs package indexes: pkgs/by-name/ko/kotlin-language-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - kotlin-language-server - 1.3.13-r0: normalized package name match | Alpine Linux edge package indexes: kotlin-language-server from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Kotlin code completion, linting and more for any editor/IDE using the Language Server Protocol | https://github.com/fwcd/kotlin-language-server
- MacPorts - kotlin-language-server: normalized package name match | MacPorts ports tree: devel/kotlin-language-server/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/kotlin-language-server.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kotlin-language-server.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
