language-server-mcp
v0.3.1MCP 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.
| Parameter | Type | Description |
|---|---|---|
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string |
search_servers Search LSP servers
Searches configured and built-in LSP servers by ID, alias, language, and command.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
filePath | string | |
languageId | string | |
limit | integer | |
workspaceRoot | string |
stop_server Stop an LSP server
Stops one running LSP session for a workspace and server ID.
| Parameter | Type | Description |
|---|---|---|
serverId * | string | |
workspaceRoot * | string |
stop_workspace Stop workspace LSP servers
Stops all running LSP sessions for a workspace.
| Parameter | Type | Description |
|---|---|---|
workspaceRoot * | string |
execute_command Execute LSP command
Runs workspace/executeCommand on matching LSP servers with command allow-list enforcement.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
workspaceRoot * | string | |
arguments | array | |
filePath | string | |
languageId | string | |
serverId | string |
request Send raw LSP request
Sends a native LSP request to resolved workspace or file-matching servers.
| Parameter | Type | Description |
|---|---|---|
method * | string | |
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
params | ||
serverId | string |
notify Send raw LSP notification
Sends a native LSP notification to resolved workspace or file-matching servers.
| Parameter | Type | Description |
|---|---|---|
method * | string | |
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
params | ||
serverId | string |
diagnostics Get diagnostics
Returns diagnostics from matching LSP servers.
| Parameter | Type | Description |
|---|---|---|
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string |
rename Rename symbol
Returns or applies a symbol rename workspace edit.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
newName * | string | |
workspaceRoot * | string | |
apply | boolean | |
languageId | string | |
serverId | string |
format_document Format document
Returns or applies document formatting edits.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
workspaceRoot * | string | |
apply | boolean | |
languageId | string | |
serverId | string |
format_range Format range
Returns or applies formatting edits for a range.
| Parameter | Type | Description |
|---|---|---|
endCharacter * | integer | |
endLine * | integer | |
filePath * | string | |
startCharacter * | integer | |
startLine * | integer | |
workspaceRoot * | string | |
apply | boolean | |
languageId | string | |
serverId | string |
format_on_type Format on type
Returns or applies on-type formatting edits.
| Parameter | Type | Description |
|---|---|---|
ch * | string | |
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
apply | boolean | |
languageId | string | |
serverId | string |
code_actions Code actions
Returns or applies code actions for a range.
| Parameter | Type | Description |
|---|---|---|
endCharacter * | integer | |
endLine * | integer | |
filePath * | string | |
startCharacter * | integer | |
startLine * | integer | |
workspaceRoot * | string | |
actionIndex | integer | |
apply | boolean | |
languageId | string | |
serverId | string |
hover hover
Returns hover information at a document position.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
completion completion
Returns completion items at a document position.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
completion_resolve completion_resolve
Resolves a completion item.
| Parameter | Type | Description |
|---|---|---|
item * | ||
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |
signature_help signature_help
Returns signature help at a document position.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
declaration declaration
Returns declaration locations.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
definition definition
Returns definition locations.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
type_definition type_definition
Returns type definition locations.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
implementation implementation
Returns implementation locations.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
references references
Returns reference locations.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
document_highlight document_highlight
Returns document highlights.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
document_symbols document_symbols
Returns symbols in a document.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
workspace_symbols workspace_symbols
Returns workspace symbols matching a query.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |
workspace_symbol_resolve workspace_symbol_resolve
Resolves a workspace symbol.
| Parameter | Type | Description |
|---|---|---|
item * | ||
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |
code_lens code_lens
Returns code lenses for a document.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
code_lens_resolve code_lens_resolve
Resolves a code lens.
| Parameter | Type | Description |
|---|---|---|
item * | ||
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |
document_links document_links
Returns document links.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
document_link_resolve document_link_resolve
Resolves a document link.
| Parameter | Type | Description |
|---|---|---|
item * | ||
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |
document_colors document_colors
Returns document colors.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
color_presentation color_presentation
Returns color presentations for a range.
| Parameter | Type | Description |
|---|---|---|
color * | object | |
endCharacter * | integer | |
endLine * | integer | |
filePath * | string | |
startCharacter * | integer | |
startLine * | integer | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
folding_ranges folding_ranges
Returns folding ranges.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
selection_ranges selection_ranges
Returns selection ranges.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
positions * | array | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
semantic_tokens_full semantic_tokens_full
Returns full semantic tokens.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
semantic_tokens_full_delta semantic_tokens_full_delta
Returns semantic token edits since a previous full result.
| Parameter | Type | Description |
|---|---|---|
filePath * | string | |
previousResultId * | string | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
semantic_tokens_range semantic_tokens_range
Returns range semantic tokens.
| Parameter | Type | Description |
|---|---|---|
endCharacter * | integer | |
endLine * | integer | |
filePath * | string | |
startCharacter * | integer | |
startLine * | integer | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
linked_editing_range linked_editing_range
Returns linked editing ranges.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
monikers monikers
Returns monikers at a position.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
inlay_hints inlay_hints
Returns inlay hints for a range.
| Parameter | Type | Description |
|---|---|---|
endCharacter * | integer | |
endLine * | integer | |
filePath * | string | |
startCharacter * | integer | |
startLine * | integer | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
inlay_hint_resolve inlay_hint_resolve
Resolves an inlay hint.
| Parameter | Type | Description |
|---|---|---|
item * | ||
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |
inline_values inline_values
Returns inline values for a range.
| Parameter | Type | Description |
|---|---|---|
context * | object | |
endCharacter * | integer | |
endLine * | integer | |
filePath * | string | |
startCharacter * | integer | |
startLine * | integer | |
workspaceRoot * | string | |
languageId | string | |
serverId | string | |
strict | boolean |
call_hierarchy_prepare call_hierarchy_prepare
Prepares call hierarchy items.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
call_hierarchy_incoming call_hierarchy_incoming
Returns incoming call hierarchy calls.
| Parameter | Type | Description |
|---|---|---|
item * | ||
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |
call_hierarchy_outgoing call_hierarchy_outgoing
Returns outgoing call hierarchy calls.
| Parameter | Type | Description |
|---|---|---|
item * | ||
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |
type_hierarchy_prepare type_hierarchy_prepare
Prepares type hierarchy items.
| Parameter | Type | Description |
|---|---|---|
character * | integer | |
filePath * | string | |
line * | integer | |
workspaceRoot * | string | |
includeAll | boolean | |
languageId | string | |
limit | integer | |
query | string | |
serverId | string | |
strict | boolean |
type_hierarchy_supertypes type_hierarchy_supertypes
Returns type hierarchy supertypes.
| Parameter | Type | Description |
|---|---|---|
item * | ||
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |
type_hierarchy_subtypes type_hierarchy_subtypes
Returns type hierarchy subtypes.
| Parameter | Type | Description |
|---|---|---|
item * | ||
workspaceRoot * | string | |
filePath | string | |
languageId | string | |
serverId | string | |
strict | boolean |