# mcpls
[](https://crates.io/crates/mcpls)
[](../../LICENSE-MIT)
**Give your AI agent a compiler's eye.**
The mcpls CLI exposes language server intelligence through MCP. One binary, any language, zero runtime dependencies.
> [!TIP]
> Graceful degradation means you don't need every language server installed. If one fails, mcpls continues with available servers.
## Installation
```bash
cargo install mcpls
```
## Usage
```bash
mcpls # Run with defaults
mcpls --log-level debug # Verbose output
mcpls --config ./mcpls.toml # Custom config
```
## Configuration
> [!NOTE]
> Configuration auto-discovery order: `$MCPLS_CONFIG` → `./mcpls.toml` → platform config dir
> Auto-creates default config with 30 language mappings on first run.
Create or edit `mcpls.toml` in the appropriate location:
- **Linux/macOS:** `~/.config/mcpls/mcpls.toml`
- **macOS (alternative):** `~/Library/Application Support/mcpls/mcpls.toml`
- **Windows:** `%APPDATA%\mcpls\mcpls.toml`
See the main [README](../../README.md) for configuration examples and custom extension mapping.
## Options
| `-c, --config <PATH>` | Configuration file path |
| `-l, --log-level <LEVEL>` | trace, debug, info, warn, error |
| `--log-json` | JSON-formatted logs for tooling |
## Claude Code Integration
Add to your Claude Code configuration (`~/.claude/claude_desktop_config.json`):
```json
{
"mcpServers": {
"mcpls": { "command": "mcpls", "args": [] }
}
}
```
See the main [README](../../README.md) for full documentation.
## License
Dual-licensed under [Apache 2.0](../../LICENSE-APACHE) or [MIT](../../LICENSE-MIT).