Skip to content

Commit 9c88fa8

Browse files
committed
mcp-language-server 0.1.1 (new formula)
1 parent bfb2c2e commit 9c88fa8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Formula/m/mcp-language-server.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
8+
depends_on "go" => :build
9+
10+
def install
11+
system "go", "build", *std_go_args(ldflags: "-s -w")
12+
end
13+
14+
test do
15+
shell_output("#{bin}/mcp-language-server -lsp tee -workspace #{testpath} -- lsp_log.txt 2&>1", OS.linux? ? 0 : 1)
16+
assert_match "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\"", (testpath/"lsp_log.txt").read
17+
end
18+
end

0 commit comments

Comments
 (0)