language-server-mcp

v0.3.1
language-server-mcp Checked 2 days ago Published 6 months ago

MCP server exposing Language Server Protocol capabilities over stdio.

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

list_servers List LSP servers

Lists configured and built-in LSP servers without starting them.

server_status Get LSP server status

Reports install, runtime, health, capability, and idle status.

ParameterTypeDescription
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring

search_servers Search LSP servers

Searches configured and built-in LSP servers by ID, alias, language, and command.

ParameterTypeDescription
query *string
filePathstring
languageIdstring
limitinteger
workspaceRootstring

stop_server Stop an LSP server

Stops one running LSP session for a workspace and server ID.

ParameterTypeDescription
serverId *string
workspaceRoot *string

stop_workspace Stop workspace LSP servers

Stops all running LSP sessions for a workspace.

ParameterTypeDescription
workspaceRoot *string

execute_command Execute LSP command

Runs workspace/executeCommand on matching LSP servers with command allow-list enforcement.

ParameterTypeDescription
command *string
workspaceRoot *string
argumentsarray
filePathstring
languageIdstring
serverIdstring

request Send raw LSP request

Sends a native LSP request to resolved workspace or file-matching servers.

ParameterTypeDescription
method *string
workspaceRoot *string
filePathstring
languageIdstring
params
serverIdstring

notify Send raw LSP notification

Sends a native LSP notification to resolved workspace or file-matching servers.

ParameterTypeDescription
method *string
workspaceRoot *string
filePathstring
languageIdstring
params
serverIdstring

diagnostics Get diagnostics

Returns diagnostics from matching LSP servers.

ParameterTypeDescription
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring

rename Rename symbol

Returns or applies a symbol rename workspace edit.

ParameterTypeDescription
character *integer
filePath *string
line *integer
newName *string
workspaceRoot *string
applyboolean
languageIdstring
serverIdstring

format_document Format document

Returns or applies document formatting edits.

ParameterTypeDescription
filePath *string
workspaceRoot *string
applyboolean
languageIdstring
serverIdstring

format_range Format range

Returns or applies formatting edits for a range.

ParameterTypeDescription
endCharacter *integer
endLine *integer
filePath *string
startCharacter *integer
startLine *integer
workspaceRoot *string
applyboolean
languageIdstring
serverIdstring

format_on_type Format on type

Returns or applies on-type formatting edits.

ParameterTypeDescription
ch *string
character *integer
filePath *string
line *integer
workspaceRoot *string
applyboolean
languageIdstring
serverIdstring

code_actions Code actions

Returns or applies code actions for a range.

ParameterTypeDescription
endCharacter *integer
endLine *integer
filePath *string
startCharacter *integer
startLine *integer
workspaceRoot *string
actionIndexinteger
applyboolean
languageIdstring
serverIdstring

hover hover

Returns hover information at a document position.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

completion completion

Returns completion items at a document position.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

completion_resolve completion_resolve

Resolves a completion item.

ParameterTypeDescription
item *
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring
strictboolean

signature_help signature_help

Returns signature help at a document position.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

declaration declaration

Returns declaration locations.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

definition definition

Returns definition locations.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

type_definition type_definition

Returns type definition locations.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

implementation implementation

Returns implementation locations.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

references references

Returns reference locations.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

document_highlight document_highlight

Returns document highlights.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

document_symbols document_symbols

Returns symbols in a document.

ParameterTypeDescription
filePath *string
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

workspace_symbols workspace_symbols

Returns workspace symbols matching a query.

ParameterTypeDescription
query *string
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring
strictboolean

workspace_symbol_resolve workspace_symbol_resolve

Resolves a workspace symbol.

ParameterTypeDescription
item *
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring
strictboolean

code_lens code_lens

Returns code lenses for a document.

ParameterTypeDescription
filePath *string
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

code_lens_resolve code_lens_resolve

Resolves a code lens.

ParameterTypeDescription
item *
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring
strictboolean

document_colors document_colors

Returns document colors.

ParameterTypeDescription
filePath *string
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

color_presentation color_presentation

Returns color presentations for a range.

ParameterTypeDescription
color *object
endCharacter *integer
endLine *integer
filePath *string
startCharacter *integer
startLine *integer
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

folding_ranges folding_ranges

Returns folding ranges.

ParameterTypeDescription
filePath *string
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

selection_ranges selection_ranges

Returns selection ranges.

ParameterTypeDescription
filePath *string
positions *array
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

semantic_tokens_full semantic_tokens_full

Returns full semantic tokens.

ParameterTypeDescription
filePath *string
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

semantic_tokens_full_delta semantic_tokens_full_delta

Returns semantic token edits since a previous full result.

ParameterTypeDescription
filePath *string
previousResultId *string
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

semantic_tokens_range semantic_tokens_range

Returns range semantic tokens.

ParameterTypeDescription
endCharacter *integer
endLine *integer
filePath *string
startCharacter *integer
startLine *integer
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

linked_editing_range linked_editing_range

Returns linked editing ranges.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

monikers monikers

Returns monikers at a position.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

inlay_hints inlay_hints

Returns inlay hints for a range.

ParameterTypeDescription
endCharacter *integer
endLine *integer
filePath *string
startCharacter *integer
startLine *integer
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

inlay_hint_resolve inlay_hint_resolve

Resolves an inlay hint.

ParameterTypeDescription
item *
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring
strictboolean

inline_values inline_values

Returns inline values for a range.

ParameterTypeDescription
context *object
endCharacter *integer
endLine *integer
filePath *string
startCharacter *integer
startLine *integer
workspaceRoot *string
languageIdstring
serverIdstring
strictboolean

call_hierarchy_prepare call_hierarchy_prepare

Prepares call hierarchy items.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

call_hierarchy_incoming call_hierarchy_incoming

Returns incoming call hierarchy calls.

ParameterTypeDescription
item *
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring
strictboolean

call_hierarchy_outgoing call_hierarchy_outgoing

Returns outgoing call hierarchy calls.

ParameterTypeDescription
item *
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring
strictboolean

type_hierarchy_prepare type_hierarchy_prepare

Prepares type hierarchy items.

ParameterTypeDescription
character *integer
filePath *string
line *integer
workspaceRoot *string
includeAllboolean
languageIdstring
limitinteger
querystring
serverIdstring
strictboolean

type_hierarchy_supertypes type_hierarchy_supertypes

Returns type hierarchy supertypes.

ParameterTypeDescription
item *
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring
strictboolean

type_hierarchy_subtypes type_hierarchy_subtypes

Returns type hierarchy subtypes.

ParameterTypeDescription
item *
workspaceRoot *string
filePathstring
languageIdstring
serverIdstring
strictboolean