agent-lsp
by blackwell-systems·★ 26·综合分 45
agent-lsp 是一个连接语言服务器与 AI 智能体的 MCP 服务器,提供类型感知导航、影响半径分析和预验证编辑功能,支持 30 多种编程语言。
概述
agent-lsp 是一个状态运行时,专门连接语言服务器与 AI 智能体,提供 65+ 种工具,用于类型感知代码导航、影响半径分析和预验证编辑。它解决了 AI 智能体因缺乏完整代码视野而做出错误修改的问题。系统只需索引工作区一次,保持索引活跃状态,并添加技能层以编码正确的多步操作。与其他 MCP-LSP 实现不同,它已针对 30 种真实语言服务器进行了 CI 验证,并提供了模拟执行和阶段强制执行等独特功能。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当在大型代码库中进行类型感知导航、影响分析和安全重构很重要时,选择agent-lsp。这对于需要在多种编程语言中保持代码质量的团队来说是理想选择。
什么时候不要选它
如果您正在处理小项目,持久守护进程的开销不值得,或者您需要在其30种语言验证列表之外的语言支持,则应避免使用agent-lsp。
此 server 暴露的工具
从 README 抽取出 12 个工具blast_radiusFind all call sites of a symbol with test/non-test partitioning
go_to_implementationFind all concrete implementations of an interface
preview_editPreview the diagnostic impact of an edit without writing to disk
simulate_chainEvaluate a sequence of dependent edits and find where the first error occurs
find_referencesFind all references to a symbol in the codebase
get_diagnosticsGet current diagnostic issues (errors, warnings) in a file or workspace
replace_symbol_bodyReplace the implementation of a symbol while preserving its signature
safe_apply_editPreview edits and apply to disk only if no new errors are introduced
find_callersFind functions that call a specific symbol
get_definitionGo to the definition location of a symbol
get_hoverGet hover information (type, documentation) for a symbol
safe_delete_symbolDelete a symbol safely after finding all its references
可对比工具
安装
安装 agent-lsp 作为 Go 二进制文件:
go install github.com/blackwell-systems/agent-lsp@latest对于 Claude Desktop,添加到 .mcp.json:
{
"mcpServers": {
"agent-lsp": {
"command": "agent-lsp",
"args": ["stdio"]
}
}
}每种语言都有对应的 Docker 镜像可用(go、typescript、python 等)
FAQ
- 支持哪些编程语言?
- agent-lsp 支持 30+ 种经过 CI 验证的语言,包括 Go、TypeScript、Python、Rust、Java、C/C++、C#、Ruby、PHP、Kotlin、Swift、Scala、Zig、Lua、Elixir 等。每种语言服务器都在 CI 中实际测试过。
- agent-lsp 与其他 MCP-LSP 实现有何不同?
- 与其他实现不同,agent-lsp 是一个状态运行时,保持索引活跃,提供 CI 验证的语言服务器支持,具有模拟执行功能,强制执行工作流阶段,并包含并发分析和令牌节省等特性。
agent-lsp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。