File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ class McpLanguageServer < Formula
2+ desc "Gives MCP enabled clients access semantic tools provided by LSP"
3+ homepage "https://github.com/isaacphi/mcp-language-server"
4+ url "https://github.com/isaacphi/mcp-language-server/archive/refs/tags/v0.1.1.tar.gz"
5+ sha256 "cc8a052d6c0283545edaf6d50e452660baa726bc18e76591680f9a611f9d2b48"
6+ license "BSD-3-Clause"
7+ head "https://github.com/isaacphi/mcp-language-server.git" , branch : "main"
8+
9+ depends_on "go" => :build
10+
11+ def install
12+ system "go" , "build" , *std_go_args ( ldflags : "-s -w" )
13+ end
14+
15+ test do
16+ output = shell_output ( "#{ bin } /mcp-language-server -lsp tee -workspace #{ testpath } 2>&1" , 1 )
17+ assert_match "[INFO][core] MCP Language Server starting" , output
18+ assert_match "[ERROR][lsp] Request failed: method not found: initialize" , output
19+ end
20+ end
You can’t perform that action at this time.
0 commit comments