MCP-MultilspyLSP

by asimihsan
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Supports language intelligence for Dart code through the Dart Language Server, offering completions, definitions, and static analysis capabilities

  • Provides language intelligence features for JavaScript code including completions, definitions, references, and document symbols through TypeScriptLanguageServer

  • Required for JavaScript/TypeScript language server support, enabling intelligence features for Node.js projects

MCP-多信令链路监控

通过 multilspy 公开语言服务器协议 (LSP) 功能的 MCP 服务器。

这是什么?

该项目提供了一个MCP(模型上下文协议)服务器,使语言模型能够访问来自语言服务器协议 (LSP) 的语言智能功能。它使用了multilspy ,这是一个简化与各种语言服务器接口的 Python 库。

特征

  • 语言智能:获取代码补全、查找定义、引用等
  • 多语言支持:支持多种编程语言,包括 Python、Java、TypeScript 等
  • 轻松集成:可与任何兼容 MCP 的客户端(如 Claude Desktop)配合使用
  • 静态分析:利用语言服务器的强大功能来理解代码

安装

pip install mcp-multilspy

用法

直接启动服务器:

mcp-multilspy

或者在 Claude Desktop 中安装:

mcp install mcp-multilspy

支持的语言

  • Java(Eclipse JDTLS)
  • Python(绝地语言服务器)
  • Rust(锈蚀分析仪)
  • C#(OmniSharp/RazorSharp)
  • TypeScript(TypeScript语言服务器)
  • JavaScript(TypeScript语言服务器)
  • Go(gopls)
  • Dart(Dart 语言服务器)
  • 红宝石(太阳图)

例子

以下是如何将此服务器与 MCP 客户端一起使用:

# Initialize a TypeScript language server session session = await initialize_language_server( session_id="ts-session", project_root="/path/to/project", language="typescript" ) # Find where a symbol is defined definitions = await request_definition( session_id="ts-session", file_path="src/index.ts", line=10, # 0-indexed column=15 # 0-indexed ) # Find all references to a symbol references = await request_references( session_id="ts-session", file_path="src/index.ts", line=10, column=15 ) # Get code completion suggestions completions = await request_completions( session_id="ts-session", file_path="src/index.ts", line=10, column=15 ) # Get hover information hover_info = await request_hover( session_id="ts-session", file_path="src/index.ts", line=10, column=15 ) # Get document symbols symbols = await request_document_symbols( session_id="ts-session", file_path="src/index.ts" ) # Clean up when done await shutdown_language_server(session_id="ts-session")

要求

  • Python 3.12 或更高版本
  • 特定语言的要求:
    • 对于 Java:JDK 17.0.6 或更高版本
    • 对于 JavaScript/TypeScript:Node.js v18.16.0 或更高版本

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

MCP 服务器使语言模型能够通过语言服务器协议访问跨多种编程语言的代码智能功能,如完成、定义和引用。

  1. What is this?
    1. Features
      1. Installation
        1. Usage
          1. Supported Languages
            1. Example
              1. Requirements
                1. License
                  ID: fiqpd5q1l6