Lsp MCP
未认领An MCP server that lets you interact with LSP servers
安装
$
npx tritlo/lsp-mcp <language> /path/to/lsp [lsp-args...]工具(9 个)
close_document
Close a file in the LSP server
get_code_actions
Get code actions for a specific range in a file
get_completions
Get completion suggestions at a specific location in a file
get_diagnostics
Get diagnostic messages (errors, warnings) for open files
get_info_on_location
Get hover information at a specific location in a file
open_document
Open a file in the LSP server for analysis
restart_lsp_server
Restart the LSP server without restarting the MCP server
set_log_level
Change the server's logging verbosity level at runtime
start_lsp
Start the LSP server with a specified root directory