lsp-mcp

v0.1.6
io.github.theUpsider/lsp-mcp Checked 4 hours ago Published 7 months ago

Universal LSP MCP server

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

lsp_init

Initialize LSP for a project root. Pass languages to pre-warm specific servers; omit to auto-detect from project files (lazy startup per file if none found).

ParameterTypeDescription
root *string
languagesarray

lsp_hover

Show hover information

ParameterTypeDescription
character *integer
file *string
line *integer

lsp_definition

Find definitions

ParameterTypeDescription
character *integer
file *string
line *integer

lsp_references

Find references

ParameterTypeDescription
character *integer
file *string
line *integer
includeDeclarationboolean

lsp_document_symbols

List document symbols

ParameterTypeDescription
file *string

lsp_workspace_symbols

Search workspace symbols

ParameterTypeDescription
querystring

lsp_completion

Get completions

ParameterTypeDescription
character *integer
file *string
line *integer

lsp_diagnostics

Get errors and warnings. Pass a file path to trigger analysis of that file and its language server, then return diagnostics for that file (scope: file) or all files seen so far (scope: workspace). Omit file for workspace scope to query whatever has been opened previously.

ParameterTypeDescription
filestring
languagestring
scopestring

lsp_signature_help

Show signature help

ParameterTypeDescription
character *integer
file *string
line *integer

lsp_type_definition

Find type definitions

ParameterTypeDescription
character *integer
file *string
line *integer

lsp_implementation

Find implementations

ParameterTypeDescription
character *integer
file *string
line *integer

lsp_health

Show LSP server health

lsp_rename

Rename symbol

ParameterTypeDescription
character *integer
file *string
line *integer
newName *string

lsp_code_action

List or apply code actions

ParameterTypeDescription
character *integer
file *string
line *integer
apply
rangeobject

lsp_formatting

Format document

ParameterTypeDescription
file *string
optionsobject

lsp_range_formatting

Format selected range

ParameterTypeDescription
file *string
range *object
optionsobject

lsp_apply_workspace_edit

Apply raw workspace edit

ParameterTypeDescription
edit *object