SL

sehejjain/language-server-mcp-bridge

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

32 stars 7 forks 品質 55 トレンド 11MIT

A universal VS Code extension that bridges any Language Server Protocol (LSP) capabilities to MCP tools and GitHub Copilot Language Model Tools, enabling intelligent code navigation and analysis...

概要

A Visual Studio Code extension that exposes capabilities as Model Context Protocol (MCP) tools and . This universal extension works with any programming language that has an active language server in VSCode. I created this because I work on an incredibly large C++ project (with clangd) and Copilot is not able find objects efficiently. Or install directly in VS Code: Press Ctrl+Shift+X, search for "LSP MCP Bridge", and click Install Here's a quick example of how the extension enhances GitHub Copilot's understanding of a C++ codebase. A small excerpt of the C++ project used in the demo. Copilot's response enriched with precise definitions, references, and hover info provided by the LSP-MCP bridge. Copilot queries the registered LSP tools (workspace/document symbols, references) to find the symbol and its implementation. This extension bridges the gap between any existing language server's capabilities and MCP clients + GitHub Copilot, enabling AI models and tools to:

README

以下は原文 README の抜粋です。原文を見る。

Language Server tools for Copilot

A Visual Studio Code extension that exposes any Language Server Protocol (LSP) capabilities as Model Context Protocol (MCP) tools and GitHub Copilot Language Model Tools. This universal extension works with any programming language that has an active language server in VSCode.

I created this because I work on an incredibly large C++ project (with clangd) and Copilot is not able find objects efficiently.

✨ Demo

Here’s a quick example of how the extension enhances GitHub Copilot’s understanding of a C++ codebase.

🎯 Purpose

This extension bridges the gap between any existing language server’s capabilities and MCP clients + GitHub Copilot, enabling AI models and tools to:

  • Navigate codebases intelligently across any programming language
  • Provide context-aware code suggestions and analysis
  • Answer questions about code structure and functionality
  • Assist with code refactoring and analysis
  • Automatically enhance GitHub Copilot with deep language server insights

🚀 Features

Language Model Tools for GitHub Copilot (10 Tools)

The extension exposes comprehensive LSP capabilities as GitHub Copilot tools that can be used automatically:

  1. lsp_definition - Find symbol definitions
  2. lsp_references - Find all references to a symbol
  3. lsp_hover - Get symbol information and documentation
GitHub で README 全文を見る

インストール

npx @vscode/vsce package
MCP 初心者?mcpskill.org のガイドから始めましょう →