Back to Home
Linyxus icon

dotty-mcp

by Linyxus

Overview

A Model Context Protocol (MCP) server for interacting with and developing the Scala 3 compiler via SBT.

Installation

Run Command
uvx dotty-mcp

Security Notes

CRITICAL: The server is vulnerable to command injection. The `scalac` and `testCompilation` tools construct SBT commands using user-provided arguments (`file`, `options`, `pattern`) and directly send them to an underlying `sbt` shell process via `pexpect.sendline()`. An attacker capable of controlling these arguments can inject and execute arbitrary shell commands on the host system where `dotty-mcp` is running (e.g., `scalac("; rm -rf /;", [])`). This represents a severe remote code execution vulnerability.

Similar Servers

Stats

Interest Score0
Security Score1
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-11-24

Tags

Scala 3Compiler DevelopmentSBTMCPPython