# 使用 Homebrew 安装 docker-compose-langserver

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

## 安装

```sh
sudo av install brew:docker-compose-langserver
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install docker-compose-langserver
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:docker-compose-langserver
- **软件包管理器:** Homebrew
- **版本:** 1.0.0
- **来源摘要:** Language service for Docker Compose documents
- **主页:** <https://github.com/microsoft/vscode-containers>
- **最后更新:** 2026-07-31T14:28:26Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- docker-compose-langserver (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Docker Compose Language Service is Microsoft's Language Server Protocol implementation for Docker Compose documents. The README says it is shipped in the Visual Studio Code Container Tools extension and provides completions, signatures, diagnostics, formatting, hover hints, and Docker-specific image hyperlinks.

### 项目历史

The changelog shows the language service beginning with a 0.0.1-alpha release in September 2021, focused on Compose YAML editing features such as Docker Hub links, hover information, signature help, completions, diagnostics, and formatting. Later releases added more completion coverage, an executable language-server entry point, alternate YAML language service integration, CodeLens support, and package entry points for client and VS Code use.

### 采用历史

The primary adoption route is editor integration through Microsoft's Container Tools extension for VS Code, with the npm package and docker-compose-langserver executable making it usable by other LSP clients. Homebrew packaging turns that language-server executable into a simple install for Vim, Neovim, Emacs, and other editor setups that prefer system package managers.

### 使用方式

The package is used by editors and LSP clients to understand Compose files, especially Compose file version 3 style documents. It supplies YAML-aware editing assistance rather than running containers itself, and the README notes that VS Code-specific telemetry events can be ignored by non-VS Code clients.

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

This package matters to package nerds because it exposes an editor language service as a standalone CLI executable. That lets users assemble their own editor toolchains with Homebrew and LSP configuration instead of installing a full IDE extension stack.

### 时间线

- 2021: 0.0.1-alpha initial release adds Compose editing features.
- 2023: 0.1.3 adds an executable to launch the language server.
- 2024: 0.3.0 adds CodeLenses for starting Compose services from documents.
- 2026: 0.5.0 adds client and VS Code entry points plus an ESM build.

### Related projects

- The project is related to Docker Compose, the Compose specification, Microsoft's VS Code Container Tools extension, YAML language services, and generic Language Server Protocol clients.

### 来源

- <https://github.com/microsoft/compose-language-service#readme>
- <https://github.com/microsoft/compose-language-service/blob/main/CHANGELOG.md>
- <https://github.com/microsoft/compose-language-service/blob/main/package.json>
- <https://formulae.brew.sh/formula/docker-compose-langserver>


## 安全说明

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

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


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
