LSP-MCP Bridge
Universal MCP bridge to LSP servers. One binary, 6 languages, config-driven.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
https://github.com/Stryk91/lsp-mcp-rs/releases/download/v0.1.0/lsp-mcp-rs.exeالتوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
lsp-mcp-rs
MCP server that bridges to any LSP. One binary, multiple language servers.
Build
cargo build --release
Binary: target/release/lsp-mcp-rs.exe
Configure
Create config.toml next to the binary:
[servers.lua]
command = "C:/path/to/lua-language-server.exe"
args = ["--stdio"]
extensions = [".lua"]
[servers.rust]
command = "rust-analyzer"
args = []
extensions = [".rs"]
[servers.python]
command = "pyright-langserver"
args = ["--stdio"]
extensions = [".py"]
Add to Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"lsp": {
"command": "X:\\path\\to\\lsp-mcp-rs.exe",
"args": []
}
}
}
Tools
| Tool | Description |
|---|---|
lsp_hover | Get docs/type at position |
lsp_definition | Go to definition |
lsp_references | Find all references |
lsp_symbols | List symbols in file |
lsp_diagnostics | Get errors/warnings |
lsp_servers | List configured servers |
All position arguments are 0-indexed.
How it works
- MCP request comes in with a file path
- File extension maps to configured LSP server
- LSP spawns on first use, stays running
- Request forwarded to LSP, response returned via MCP
License
MIT
Authors
DC, KALIC, Stryk9190
الأسئلة الشائعة
ما هو LSP-MCP Bridge؟
Universal MCP bridge to LSP servers. One binary, 6 languages, config-driven.
كيف أثبّت LSP-MCP Bridge؟
اتبع خطوات التثبيت في توثيقه المعروض في هذه الصفحة وفي مستودعه.
هل يحتاج LSP-MCP Bridge إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل LSP-MCP Bridge مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون LSP-MCP Bridge؟
ينشره Stryk91. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.