cf-mcp 0.10.0 → 0.10.1

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: fa40d95e95c2179eeaa55f22e374232510ee6857aec12ca73ab5c438d9808f16
4
- data.tar.gz: 1047aa59ffc741fb792778037a9e958ee3af42fec332a0653882a351277ef10f
3
+ metadata.gz: 4766c9f8bb80d8be199403996163b2e21b7898ea2a8f14e0426d75bbf620364c
4
+ data.tar.gz: bd23236c47957a598c6b69c3f7d3d738d40701ceb2dba97b3afc84a94421ccb7
5
5
  SHA512:
6
- metadata.gz: dac224a9ccf242b04a8d8a801b148f71bf1e9326bf8550560045b2e34ef8501e60f44a7bfd0ea14b06d762c0ddde9b82e50e4896dd2dd7a2489ee823658f9fa3
7
- data.tar.gz: 8ebd60174ed5d853121255db222fb34ee4baa7c033d2ebfdd0fc246d9f5cdfe5cf824a18926e49591c34b052154fdd78623e5b25675bcf4b09521f6107260796
6
+ metadata.gz: 1ea224066e2bb647782d8acc1c5c63855b11eafa4b31c6f649e77b74675443d8c4495b029ba6b0b21c4c85b34cf392f562d80c61d1a2d76d53429d6d94ff3732
7
+ data.tar.gz: 6158b7385eac465183b837e058042f2d648ab108d5a3b9deacadc7bdbe1e013d3bfec1eca58ecd2df1e2c8628b431a2c168d207035ba2bcd39657c6ae63c7992
data/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.10.1] - 2026-01-14
9
+
10
+ ### Added
11
+
12
+ - `--host` CLI option for binding address (defaults to `0.0.0.0`)
13
+
14
+ ### Changed
15
+
16
+ - Unified boot process: Procfile now uses `cf-mcp combined --download` instead of rackup
17
+
18
+ ### Removed
19
+
20
+ - `config.ru` (no longer needed, CLI handles all server modes)
21
+
8
22
  ## [0.10.0] - 2026-01-14
9
23
 
10
24
  ### Added
@@ -112,6 +126,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
112
126
  - `cf_list_category` - List items by category
113
127
  - `cf_get_details` - Get full documentation by name
114
128
 
129
+ [0.10.1]: https://github.com/pusewicz/cf-mcp/compare/v0.10.0...v0.10.1
115
130
  [0.10.0]: https://github.com/pusewicz/cf-mcp/compare/v0.9.3...v0.10.0
116
131
  [0.9.3]: https://github.com/pusewicz/cf-mcp/compare/v0.9.2...v0.9.3
117
132
  [0.9.2]: https://github.com/pusewicz/cf-mcp/compare/v0.9.1...v0.9.2
data/Manifest.txt CHANGED
@@ -3,7 +3,6 @@ LICENSE.txt
3
3
  Manifest.txt
4
4
  README.md
5
5
  Rakefile
6
- config.ru
7
6
  exe/cf-mcp
8
7
  lib/cf/mcp.rb
9
8
  lib/cf/mcp/cli.rb
data/lib/cf/mcp/cli.rb CHANGED
@@ -41,6 +41,7 @@ module CF
41
41
  options = {
42
42
  command: nil,
43
43
  port: nil,
44
+ host: "0.0.0.0",
44
45
  root: nil,
45
46
  download: false
46
47
  }
@@ -64,6 +65,10 @@ module CF
64
65
  options[:port] = port
65
66
  end
66
67
 
68
+ opts.on("-H", "--host HOST", "Host to bind to (default: 0.0.0.0)") do |host|
69
+ options[:host] = host
70
+ end
71
+
67
72
  opts.on("-d", "--download", "Download Cute Framework headers from GitHub") do
68
73
  options[:download] = true
69
74
  end
@@ -136,12 +141,13 @@ module CF
136
141
  warn "Indexed #{index.stats[:total]} items (#{index.stats[:functions]} functions, #{index.stats[:structs]} structs, #{index.stats[:enums]} enums)"
137
142
 
138
143
  port = @options[:port] || 9292
144
+ host = @options[:host]
139
145
  server = CombinedServer.new(index)
140
146
  app = server.rack_app
141
147
 
142
- warn "Starting combined server on port #{port}..."
148
+ warn "Starting combined server on #{host}:#{port}..."
143
149
  warn "Web interface available at http://localhost:#{port}/"
144
- Rackup::Server.start(app: app, Port: port, Logger: $stderr)
150
+ Rackup::Server.start(app: app, Host: host, Port: port, Logger: $stderr)
145
151
  end
146
152
 
147
153
  def resolve_headers_path
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CF
4
4
  module MCP
5
- VERSION = "0.10.0"
5
+ VERSION = "0.10.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-mcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Usewicz
@@ -93,7 +93,6 @@ files:
93
93
  - Manifest.txt
94
94
  - README.md
95
95
  - Rakefile
96
- - config.ru
97
96
  - exe/cf-mcp
98
97
  - lib/cf/mcp.rb
99
98
  - lib/cf/mcp/cli.rb
data/config.ru DELETED
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/cf/mcp"
4
-
5
- # Download headers from GitHub if not already present
6
- warn "Initializing CF::MCP server..."
7
- downloader = CF::MCP::Downloader.new
8
- headers_path = downloader.download_and_extract
9
- warn "Using headers from: #{headers_path}"
10
-
11
- # Build the index
12
- warn "Parsing headers..."
13
- parser = CF::MCP::Parser.new
14
- index = CF::MCP::Index.new
15
-
16
- parser.parse_directory(headers_path).each do |item|
17
- index.add(item)
18
- end
19
-
20
- warn "Indexed #{index.stats[:total]} items (#{index.stats[:functions]} functions, #{index.stats[:structs]} structs, #{index.stats[:enums]} enums)"
21
-
22
- # Create and run the combined server with both SSE and HTTP transports
23
- # - / and /sse - SSE transport (stateful, for Claude Desktop)
24
- # - /http - HTTP transport (stateless, for simple integrations)
25
- server = CF::MCP::CombinedServer.new(index)
26
- run server.rack_app