metals-mcp-launcher
v0.1.3
Published
Scala Metals MCP launcher
Maintainers
Readme
Metals MCP Launcher
A standalone launcher that runs the Metals language server with MCP (Model Context Protocol) support, enabling AI assistants like Claude to interact with Scala projects.
Installation
npm install -g metals-mcp-launcherOr run directly with npx:
npx metals-mcp-launcher /path/to/scala/projectUsage
metals-mcp-launcher [OPTIONS] [PROJECT_PATH]
Options:
-v, --verbose Enable verbose logging
-h, --help Show help messageRequirements
- Java 11 or higher (for running Metals)
- Metals installed via Coursier (
cs install metals) or available in PATH - Scala project with
build.sbt,project.scala, or.scalafiles
Configuration
Using with Claude Code
Once the launcher is running, configure Claude Code to use the MCP server:
claude mcp add --transport sse metals http://localhost:60013/sseThe tool automatically looks for MCP configuration files in:
.metals/mcp.json.cursor/mcp.json.vscode/mcp.json
License
Apache-2.0
