File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-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
+ depends_on "node"
9
+
10
+ def install
11
+ system "npm" , "install" , *std_npm_args
12
+ bin . install_symlink Dir [ "#{ libexec } /bin/*" ]
13
+ end
14
+
15
+ test do
16
+ ENV [ "N8N_API_URL" ] = "https://your-n8n-instance.com"
17
+ ENV [ "N8N_API_KEY" ] = "your-api-key"
18
+
19
+ output_log = testpath /"output.log"
20
+ pid = spawn bin /"n8n-mcp" , testpath , [ :out , :err ] => output_log . to_s
21
+ sleep 10
22
+ assert_match "n8n Documentation MCP Server running on stdio transpor" , output_log . read
23
+ ensure
24
+ Process . kill ( "TERM" , pid )
25
+ Process . wait ( pid )
26
+ end
27
+ end
You can’t perform that action at this time.
0 commit comments