foobara-mcp-connector-generator 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5604ce6d8c8ecdbcfd86bf738b720bde76a18a59eb7cf53ce84efd4a508da737
4
- data.tar.gz: 798cd79bb3144a4bb58c6932226b28055de127df30a8d2ead5a3b848d106e150
3
+ metadata.gz: 7d05889eef4ad70418a84df1bc66053e5de76381dc9e47d6d878032268c75c1e
4
+ data.tar.gz: 435239dde70d883248d5fa41c9a773b4189dd48420e2f4ffeddbee74a8b999da
5
5
  SHA512:
6
- metadata.gz: 2342fd9b62b0cfd45bd3459ed62c49db46d3079ed3b38064caa1a441a9ea9fc57cf369eb15a753a4ce4ac5ab878c83ff25a29d430fc2c901a6ba37342c6c386f
7
- data.tar.gz: 7f9f16463c29d97b9847407623c8cb8c225b89f2875909cf37cfe9cdc398e781e9fddd0f2fa868dbe0d8d19511196f257f4193f524d09948e60d69aa49d7ef57
6
+ metadata.gz: 6889dd6ca11138dcb8c4f38d556ffe2ba6c59690faec544df03dc51c3eca11faf68f1224ac4b9991e7f5b59ecae1041c7de99862acfe776a28a0f8f2a3440575
7
+ data.tar.gz: d6fd2e58d0c5d5d0661fa54b5d51cb1b58c40005b2b1b59f664a7bd2bf26286780a869c24db6608d017a0ffe08d932501eeeefaef90402e37875c7f73289b138
data/CHANGELOG.md CHANGED
@@ -1,19 +1,10 @@
1
- ## [0.0.5] - 2025-04-14
1
+ ## [0.0.6] - 2025-04-14
2
2
 
3
3
  - Don't bother running bundle or rubocop if they are not configured
4
4
  - Make sure server can be run even if it's not in PATH
5
5
  - Add an example command to the generated mcp-server file for demo purposes
6
-
7
- ## [0.0.4] - 2025-04-14
8
-
9
6
  - Fix bug generating .mcp.json with wrong file extension
10
-
11
- ## [0.0.3] - 2025-04-14
12
-
13
7
  - Do not require a Gemfile to be present to generate the other files
14
-
15
- ## [0.0.2] - 2025-04-14
16
-
17
8
  - Include templates in gem
18
9
 
19
10
  ## [0.0.1] - 2025-04-11
@@ -24,7 +24,7 @@ module Foobara
24
24
  new_entry = %(
25
25
  "#{mcp_server_name}": {
26
26
  "type": "stdio",
27
- "command": "#{program_path}",
27
+ "command": "#{executable_program_path}",
28
28
  "args": [],
29
29
  "env": {}
30
30
  },)
@@ -14,6 +14,18 @@ module Foobara
14
14
  def program_name
15
15
  @program_name ||= File.basename(program_path)
16
16
  end
17
+
18
+ def executable_program_path
19
+ return @executable_program_path if @executable_program_path
20
+
21
+ @executable_program_path = program_path
22
+
23
+ if program_path =~ /^\w/
24
+ @executable_program_path = "./#{@executable_program_path}"
25
+ end
26
+
27
+ @executable_program_path
28
+ end
17
29
  end
18
30
  end
19
31
  end
@@ -66,15 +66,7 @@ module Foobara
66
66
  end
67
67
 
68
68
  def program_path
69
- return @program_path if @program_path
70
-
71
- @program_path = mcp_connector_config.program_path
72
-
73
- if program_path =~ /^\w/
74
- @program_path = "./#{@program_path}"
75
- end
76
-
77
- @program_path
69
+ mcp_connector_config.program_path
78
70
  end
79
71
 
80
72
  def bundle_install
@@ -2,7 +2,7 @@
2
2
  "mcpServers": {
3
3
  "<%= mcp_server_name %>": {
4
4
  "type": "stdio",
5
- "command": "<%= program_path %>",
5
+ "command": "<%= executable_program_path %>",
6
6
  "args": [],
7
7
  "env": {}
8
8
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-mcp-connector-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi