# metals を Homebrew, Nix でインストール

metals のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:metals
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install metals
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#metals
```

  証拠: nixpkgs package indexes: pkgs/by-name/me/metals/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:metals
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/metals>
- **バージョン:** 1.6.7
- **ソース概要:** Scala language server
- **ホームページ:** <https://scalameta.org/metals/>
- **リポジトリ:** <https://github.com/scalameta/metals>
- **上流ドキュメント:** <https://scalameta.org/metals/>
- **ライセンス:** Apache-2.0
- **ソースアーカイブ:** <https://github.com/scalameta/metals/archive/refs/tags/v1.6.7.tar.gz>
- **最終更新:** 2026-06-22T14:05:28-07:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- metals (cli)
- metals-mcp (cli)
- metals (エイリアス)
- metals-mcp (エイリアス)

## 依存関係

- openjdk@25

## ビルド依存関係

- sbt

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.6.7
- マネージャ更新日: 2026-06-22
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/scalameta/metals
- 検出された最新: v1.6.7 (最新)
## プロジェクトの歴史と使われ方

Metals is the Scala language server from the Scalameta ecosystem. The name is explained by the project as Meta, from Scalameta, plus LS, from Language Server. Early public announcements credited work at the Scala Center with community contributors, and Ólafur Páll Geirsson announced Metals 0.3 and 0.4 releases during the 2018-2019 period as a work-in-progress language server for Scala editors.

### プロジェクトの歴史

Metals' technical role is to bring IDE features to editors that speak the Language Server Protocol. The 2019 Scala language blog described Metals 0.5 as supporting completions, type at point, goto definition, fuzzy symbol search, and other editing and navigation features in VS Code, Vim, Emacs, Atom, Sublime Text, and any compatible LSP client. The tool also connected the editor side of Scala tooling to build tools through Bloop and the Build Server Protocol, allowing support for sbt, Gradle, Maven, Mill, and any build tool implementing BSP.

### 採用の歴史

Version 1.0.0, codenamed Silver, was announced in July 2023 as a culmination of work by the community and core Metals team, with support for important LSP features and IDE-like workflows in users' editors. Metals documentation names Scala Center and VirtusLab among the organizations developing Metals with community help.

### 使われ方

In practice, Metals is installed by editor plugins or as a standalone language-server binary, then launched by VS Code, Neovim, Emacs, Sublime Text, Zed, Helix, or another client. Homebrew and Nix packaging make the server available outside editor-specific installers, which matters for reproducible developer machines, CI checks around editor tooling, and users who prefer to manage language servers through the OS package manager.

### ソース

- <https://formulae.brew.sh/formula/metals>
- <https://github.com/scalameta/metals>
- <https://scalameta.org/metals/blog/2019/01/24/tin/>
- <https://scalameta.org/metals/blog/2023/07/19/silver/>
- <https://scalameta.org/metals/docs/integrations/new-build-tool/>
- <https://users.scala-lang.org/t/metals-v0-3-is-out-compile-errors-and-goto-definition-in-the-editor/3681>
- <https://www.scala-lang.org/2019/04/16/metals.html>


## セキュリティノート

metals に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、パッケージメタデータはここに公開されています。


## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** metals
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- Nix - metals: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/metals/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [MCP tool packages](https://pkg.so/ja/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/ja/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [openjdk@25](https://pkg.so/ja/brew/openjdk-25/) - Runtime dependency declared by Homebrew.
- [sbt](https://pkg.so/ja/brew/sbt/) - Build dependency declared by Homebrew.
- [dockerfile-language-server](https://pkg.so/ja/brew/dockerfile-language-server/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, language-servers, lsp.
- [fennel-ls](https://pkg.so/ja/brew/fennel-ls/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, language-servers, lsp.
- [haskell-language-server](https://pkg.so/ja/brew/haskell-language-server/) - Shares pkgdb curated category or tags: cli, developer-tools, ide, language-server, lsp.
- [neocmakelsp](https://pkg.so/ja/brew/neocmakelsp/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, language-servers, lsp.
- [gopls](https://pkg.so/ja/brew/gopls/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [python-lsp-server](https://pkg.so/ja/brew/python-lsp-server/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [zls](https://pkg.so/ja/brew/zls/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [ccls](https://pkg.so/ja/brew/ccls/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, language-servers.
- [erlang-language-platform](https://pkg.so/ja/brew/erlang-language-platform/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, ide, language.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
