
mcpls
io.github.bug-ops由 GitHub 帳號 bug-ops 發布v0.9.1更新於 Nov 3, 2026
Universal MCP to LSP bridge exposing language server code intelligence as MCP tools
概覽
把 MCP 與語言伺服器(LSP)橋接起來,讓 AI 助理取得型別、參照、診斷與重構等 IDE 等級的程式碼理解能力。
- 可以做什麼
- 檢視程式碼:依位置或符號名稱取得懸停型別資訊與文件
- 導覽:定義、參照、實作、呼叫階層與型別階層
- 檢查:來自語言伺服器的真實編譯器診斷
- 修改:回傳重新命名與程式碼動作編輯,交由用戶端套用
- 探索:跨多個語言伺服器的工作區符號搜尋、格式化、內嵌提示、選取與摺疊範圍
- 管理:依需求重新啟動語言伺服器
- 適用情境
- 適合希望 AI 程式助理像 IDE 一樣理解真實專案的情境,例如解析型別、找出所有參照、取得編譯器診斷而非猜測,特別適用於 Rust、Python、Go 或多語言工作區。
- 執行需求
- 以單一 Rust 二進位檔在本機執行,可透過 Cargo 或提供的安裝腳本安裝。需要為目標語言安裝至少一個語言伺服器(例如 rust-analyzer)。預設使用 stdio,可選用 HTTP 傳輸並支援 Host 與 Origin 允許清單。未宣告任何憑證。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 mcpls,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcpls
[Crates.io] [docs.rs] [CI] [codecov] [MSRV] [License]
Give your AI coding agent a compiler's understanding of your code.
mcpls is a bridge between the Model Context Protocol (MCP) and the Language Server Protocol (LSP). It runs the language servers for your project (rust-analyzer, pyright, gopls, and others) and exposes their type information, references, diagnostics and refactoring as 31 MCP tools, so an AI client reasons about code the way an IDE does.
Documentation
The full documentation is the mcpls book: https://bug-ops.github.io/mcpls/
Installation
Linux and macOS:
Windows (PowerShell):
Or with Cargo:
Prebuilt archives for Linux, macOS and Windows (x86_64 and aarch64) with SHA256 checksums and build-provenance attestations are on GitHub Releases.
mcpls is also listed in the official MCP Registry as io.github.bug-ops/mcpls (cargo package, stdio transport), so registry-aware clients can discover it there. The listing installs the same crate as cargo install mcpls.
You also need at least one language server, for example rustup component add rust-analyzer. See Installation for other methods and servers.
Quick start
Register mcpls with Claude Code:
Then ask about your code:
Rust projects need no configuration. Other languages and clients are covered in the book.
Features
- Type information and documentation at any position
- Cross-references, definitions, implementations across the whole workspace
- Real diagnostics from the compiler, not guesses
- Rename and code-action edits returned for the client to apply
- Call and type hierarchies, formatting, inlay hints, selection and folding ranges
- Workspace symbol search across every language server of a polyglot project, with each symbol tagged by its server
- Address code by symbol name as well as by position, and restart language servers on demand
- Several language servers at once, started concurrently and stopped with mcpls, with graceful degradation when one fails
- stdio by default, optional HTTP transport with Host and Origin allowlists and resource subscriptions
- Untrusted-workspace mode for analyzing code you do not trust
- Single Rust binary, no runtime dependencies, no
unsafecode; release archives carry build-provenance attestations
Security
Language servers run code that comes with the workspace, and mcpls does not sandbox them. Read SECURITY.md and the Security and Trust chapter before pointing mcpls at code you did not write.
Agent skill
skills/mcpls is a packaged Agent Skill that teaches an AI coding agent to install, configure and run mcpls.
Development
Requires Rust 1.99 or later (edition 2024). The book lives in book/ and is built with mdBook. See CONTRIBUTING.md.
Community
Participation is governed by the Code of Conduct. Accessibility of the output and documentation is described in ACCESSIBILITY.md.
License
Dual-licensed under Apache 2.0 or MIT at your option.
來源:README.md,提交 f13ba47
工具
0版本歷史
2- v0.9.1最新Nov 3, 2026
- v0.9.0Nov 1, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分