@ufodivebomb/pi-metals-mcp

Automatically connect pi to the Scala Metals MCP server.

Packages

Package details

extension

Install @ufodivebomb/pi-metals-mcp from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@ufodivebomb/pi-metals-mcp
Package
@ufodivebomb/pi-metals-mcp
Version
0.1.0
Published
Sep 10, 2026
Downloads
123/mo · 12/wk
Author
ufodivebomb
License
MIT
Types
extension
Size
6.4 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./extensions/metals-mcp/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-metals-mcp

A pi extension that automatically connects pi to the Scala Metals MCP server.

How it works

Metals writes its MCP endpoint to .metals/mcp.json. This extension watches that file and registers the endpoint with pi's MCP adapter. It handles project startup, file changes, and cleanup when the session ends.

Install

pi install npm:@coreyoconnor/pi-metals-mcp

Or install directly from GitLab:

pi install git:gitlab.com/coreyoconnor/pi-metals-mcp

The extension is loaded automatically for projects where Metals has created .metals/mcp.json.

License

MIT