Skip to content

Commit 7022f68

Browse files
henryhchchcchenrui333
authored andcommitted
mcp-language-server: 0.1.1 (new formula)
mcp-language-server: update test and add head build Signed-off-by: Rui Chen <[email protected]>
1 parent cbfba99 commit 7022f68

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Formula/m/mcp-language-server.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)