🤖 TypeMill

Pure Rust MCP server bridging Language Server Protocol (LSP) to AI coding assistants

🎯 Safe Refactoring

Unified dryRun API with preview mode by default. Explicit opt-in required for execution with automatic rollback on failure.

🔍 LSP Integration

Native language server support for precise code intelligence across TypeScript, Rust, and Python projects.

⚡ Rust Performance

Zero-cost abstractions, memory safety, and async I/O for maximum performance and reliability.

🔄 Comprehensive Updates

Automatic import updates and cross-file reference tracking for seamless refactoring.

🐳 Production Ready

WebSocket server, JWT authentication, multi-tenant isolation, and Docker support.

🛠️ 28 MCP Tools

Navigation, refactoring, analysis, workspace operations, and batch processing tools.

Quick Start

Get TypeMill running in 2 minutes:

# Install (recommended method)
curl -fsSL https://raw.githubusercontent.com/goobits/mill/main/install.sh | bash

# Alternative: Build from source
cargo install mill --locked

# Auto-detect languages and configure
mill setup

# Start the server
mill start

# Verify it's running
mill status

Connect Your AI Assistant

Add TypeMill to your MCP configuration (e.g., Claude Desktop):

{
  "mcpServers": {
    "mill": {
      "command": "mill",
      "args": ["start"]
    }
  }
}

Example Commands

Ask your AI assistant to:

"Find the definition of main in src/main.rs"
"Show me all references to the Config type"
"Rename the function oldName to newName"
"Analyze code quality in src/app.rs and show suggestions"

Available Tools

CategoryToolsDescription
Inspect & Search2 toolsinspect_code, search_code
Change4 toolsrename_all, relocate, prune, refactor
Workspace1 toolworkspace (actions: create_package, extract_dependencies, update_members, find_replace, verify_project)
System1 toolHealth checks and diagnostics

Explore All Tools

Language Support

LanguageExtensionsLSP ServerRefactoring
TypeScript/JavaScriptts, tsx, js, jsxtypescript-language-serverFull ✅
Rustrsrust-analyzerFull ✅
PythonpypylspFull ✅