File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ class N8nMcp < Formula
2
+ desc "MCP for Claude Desktop, Claude Code, Windsurf, Cursor to build n8n workflows"
3
+ homepage "https://www.n8n-mcp.com/"
4
+ url "https://registry.npmjs.org/n8n-mcp/-/n8n-mcp-2.14.1.tgz"
5
+ sha256 "ca2d0f2e058ac61657b97902cce1826dd24ec6ac066b74ae929ea3aaf9fe6505"
6
+ license "MIT"
7
+
8
+ bottle do
9
+ sha256 cellar : :any_skip_relocation , arm64_tahoe : "fd82dc7c6d6ac62e7654fa9375c615914aedf413a63159a4381595b06812fe39"
10
+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "53a70a5a3751e38158564155aac14e7528033ab593031fe8244e3fd1c408b026"
11
+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "0f32421959461313da0356f8c3a68e2f9f22b00d8c3846bf7cd24cb0749c868d"
12
+ sha256 cellar : :any_skip_relocation , sonoma : "749459700bc0f0e69e292c7cc9e90d9f0294e393edbd6f16680a1da82b549899"
13
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "54818c49b1ef06f04cb4b775b337fb1685606861b10ff6f413558507e830f98b"
14
+ end
15
+
16
+ depends_on "node"
17
+
18
+ def install
19
+ system "npm" , "install" , *std_npm_args
20
+ bin . install_symlink Dir [ "#{ libexec } /bin/*" ]
21
+ end
22
+
23
+ test do
24
+ ENV [ "N8N_API_URL" ] = "https://your-n8n-instance.com"
25
+ ENV [ "N8N_API_KEY" ] = "your-api-key"
26
+
27
+ output_log = testpath /"output.log"
28
+ pid = spawn bin /"n8n-mcp" , testpath , [ :out , :err ] => output_log . to_s
29
+ sleep 10
30
+ assert_match "n8n Documentation MCP Server running on stdio transpor" , output_log . read
31
+ ensure
32
+ Process . kill ( "TERM" , pid )
33
+ Process . wait ( pid )
34
+ end
35
+ end
You can’t perform that action at this time.
0 commit comments