
一个通用的VS Code扩展,将任何语言服务器协议(LSP)功能与MCP工具和GitHub Copilot语言模型工具连接起来,实现智能代码导航和分析......
概览
一个 Visual Studio Code 扩展,将功能展示为模型上下文协议(MCP)工具和 。该通用扩展适用于任何在 VSCode 中拥有活跃语言服务器的编程语言。 我创建这个是因为我在一个非常庞大的C++项目(用clangd),Copilot无法高效地找到对象。 或者直接在 VS Code 里安装:按 Ctrl+Shift+X,搜索“LSP MCP Bridge”,点击安装 这里有一个快速示例,展示了该扩展如何提升 GitHub Copilot 对 C++ 代码库的理解。 演示中使用的C++项目一小段摘录。 副驾驶的回复补充了LSP-MCP桥梁提供的精确定义、参考文献和悬停信息。 Copilot 查询注册的 LSP 工具(工作区/文档符号、引用)以查找符号及其实现。 该扩展弥合了现有语言服务器能力与MCP客户端+GitHub Copilot之间的差距,使AI模型和工具能够:
概述(AI 翻译)
一个Visual Studio Code扩展,将任何语言服务器协议(LSP)功能暴露为模型上下文协议(MCP)工具和GitHub Copilot语言模型工具。该通用扩展适用于任何在VSCode中拥有活跃语言服务器的编程语言。
我创建这个是因为我正在做一个非常庞大的C++项目(用的是clangd),Copilot无法高效地找到对象。
** 📥 从 VS Code 市场安装**
或者直接在 VS Code 中安装:按 Ctrl+Shift+X,搜索“LSP MCP Bridge”,然后点击安装
✨ 演示
这里有一个快速示例,展示了该扩展如何提升 GitHub Copilot 对 C++ 代码库的理解。
1.一个示例C++项目:
演示中使用的C++项目的一小段摘录。
2.副驾驶的增强回答:
副驾驶的回复补充了LSP-MCP桥桥提供的精确定义、参考资料和悬停信息。
3.询问副驾驶关于代码的事:
Copilot 查询注册的 LSP 工具(工作区/文档符号、引用)以查找符号及其实现。
🎯 目的
本页由 AI 翻译,技术细节请以原文为准。
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:
lsp_definition- Find symbol definitionslsp_references- Find all references to a symbollsp_hover- Get symbol information and documentation
安装
npx @vscode/vsce package