Skip to content

Commit fa7044f

Browse files
authored
Merge pull request #245461 from Homebrew/mcp-server-chart
mcp-server-chart 0.9.0 (new formula)
2 parents fa94067 + cbfe6f7 commit fa7044f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Formula/m/mcp-server-chart.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
class McpServerChart < Formula
2+
desc "MCP with 25+ @antvis charts for visualization, generation, and analysis"
3+
homepage "https://github.com/antvis/mcp-server-chart"
4+
url "https://registry.npmjs.org/@antv/mcp-server-chart/-/mcp-server-chart-0.9.0.tgz"
5+
sha256 "fce8f5edc722e7e78da36237fddd0226c37ff4a8a778a84d26d9b0a51a47943d"
6+
license "MIT"
7+
8+
bottle do
9+
sha256 cellar: :any_skip_relocation, all: "7e41e62bba63eca45a9be778f3dce98e8c9bb5d4a20f47b91b55d43f0ad23c1f"
10+
end
11+
12+
depends_on "node"
13+
14+
def install
15+
system "npm", "install", *std_npm_args
16+
bin.install_symlink Dir["#{libexec}/bin/*"]
17+
end
18+
19+
test do
20+
json = <<~JSON
21+
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26"}}
22+
{"jsonrpc":"2.0","id":2,"method":"tools/list"}
23+
JSON
24+
25+
output = pipe_output("#{bin}/mcp-server-chart 2>&1", json, 0)
26+
assert_match "Background color of the chart, such as, '#fff'", output
27+
end
28+
end

0 commit comments

Comments
 (0)