🤖 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 statusConnect 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
| Category | Tools | Description |
|---|---|---|
| Inspect & Search | 2 tools | inspect_code, search_code |
| Change | 4 tools | rename_all, relocate, prune, refactor |
| Workspace | 1 tool | workspace (actions: create_package, extract_dependencies, update_members, find_replace, verify_project) |
| System | 1 tool | Health checks and diagnostics |
Language Support
| Language | Extensions | LSP Server | Refactoring |
|---|---|---|---|
| TypeScript/JavaScript | ts, tsx, js, jsx | typescript-language-server | Full ✅ |
| Rust | rs | rust-analyzer | Full ✅ |
| Python | py | pylsp | Full ✅ |