New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

mclsp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mclsp

MCP server bridging coding agents to LSP capabilities

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

mclsp

MCP server that bridges coding agents to Language Server Protocol (LSP) capabilities.

Configure one or more LSP servers, and mclsp exposes their features — go-to-definition, find references, diagnostics, rename, and more — as MCP tools.

Quick Start

claude mcp add mclsp -- npx -y mclsp

Then create a .mclsp.json in your project root:

{
  "servers": {
    "typescript": {
      "command": ["typescript-language-server", "--stdio"],
      "filePatterns": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
      "rootMarkers": ["package.json", "tsconfig.json"]
    }
  }
}

Configuration

Each server entry supports:

FieldRequiredDescription
commandYesCommand to start the LSP server (string array)
filePatternsYesGlob patterns for files this server handles
rootMarkersNoFiles that must exist in the project root for this server to start
initializationOptionsNoOptions passed to the LSP server on initialization
rootUriNoOverride the workspace root URI
envNoEnvironment variables for the LSP server process

Multiple servers can be configured for different languages. See .mclsp.json.example for a multi-language configuration.

Tools

Tools are registered dynamically based on what the configured LSP servers support.

Navigation: goto_definition, goto_type_definition, goto_implementation, goto_declaration, find_references

Inspection: hover, signature_help, document_symbols, workspace_symbols

Refactoring: code_actions, rename_prepare, rename

Hierarchy: call_hierarchy_incoming, call_hierarchy_outgoing, type_hierarchy

Always available: open_file, diagnostics

All position-based tools take file (relative path), line (1-indexed), and col (1-indexed).

License

MIT

FAQs

Package last updated on 12 Feb 2026

Related posts