cf-mcp 0.15.2 → 0.15.3

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: 1658219b52900e3a60a06fae6b80bd90fd571a8bcf2160c8f0df5a7a3b511d25
4
- data.tar.gz: 39710ad835537043a3474fddaa19489ffaca49b7cc2557ea0fee8a48a7085350
3
+ metadata.gz: 28a4f34409fb4ba5cfdd9ffdbcd8a361a54e018bab3812e6cb8a785e1598084a
4
+ data.tar.gz: 62e79656a915e2e1de0b3d12a0010920c9016f99d96f370d9312c7b4660d2c78
5
5
  SHA512:
6
- metadata.gz: 8ed0f8a7ba2103e65a3f39feca6a511290401483ef552365e8a8738ccdbecb220eb160cb27a9bc48f95cad595a9ab17a8fc67221fa47012e33a6490735b38624
7
- data.tar.gz: e558148330f15b8b68a65a8b033cd3ea860c9af480d4b41faf512635e73dae5dbe5b25e78608dc5626e2268e6a17d0091d39839c04c2f8c9d7ebdc9f937bada5
6
+ metadata.gz: 59ca95645525df79d7c585d86528316b97ab200ac0fee375c6cced8bb960b266aca2540e729dce43fb18186106245e39c61816198d51c6d841fbc9fc20ae1a25
7
+ data.tar.gz: 4a6c9b56905322f5e36a60f2f1c42b23abad76be5150652f78a8d77d5e7d1e3267234e487f617729b846df874c4943260d64a33c7ffb39882daff7eb9bb235d7
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ 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.15.3] - 2026-01-26
9
+
10
+ ### Fixed
11
+
12
+ - Landing page now serves HTML by default for GET requests without an explicit `Accept: application/json` header, fixing W3C validator compatibility
13
+
8
14
  ## [0.15.2] - 2026-01-26
9
15
 
10
16
  ### Added
@@ -212,6 +218,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
212
218
  - `cf_list_category` - List items by category
213
219
  - `cf_get_details` - Get full documentation by name
214
220
 
221
+ [0.15.3]: https://github.com/pusewicz/cf-mcp/compare/v0.15.2...v0.15.3
215
222
  [0.15.2]: https://github.com/pusewicz/cf-mcp/compare/v0.15.1...v0.15.2
216
223
  [0.15.1]: https://github.com/pusewicz/cf-mcp/compare/v0.15.0...v0.15.1
217
224
  [0.15.0]: https://github.com/pusewicz/cf-mcp/compare/v0.14.3...v0.15.0
data/Manifest.txt CHANGED
@@ -16,6 +16,7 @@ lib/cf/mcp/models/function_doc.rb
16
16
  lib/cf/mcp/models/struct_doc.rb
17
17
  lib/cf/mcp/models/topic_doc.rb
18
18
  lib/cf/mcp/parser.rb
19
+ lib/cf/mcp/public/favicon.png
19
20
  lib/cf/mcp/public/logo.png
20
21
  lib/cf/mcp/public/logo.svg
21
22
  lib/cf/mcp/server.rb
Binary file
data/lib/cf/mcp/server.rb CHANGED
@@ -134,10 +134,11 @@ module CF
134
134
  else
135
135
  # Default route - show landing page for browsers
136
136
  accept = request.get_header("HTTP_ACCEPT") || ""
137
- if request.get? && accept.include?("text/html")
137
+ if request.get? && !accept.include?("application/json")
138
+ # Serve HTML by default for GET requests unless client specifically requests JSON
138
139
  [200, {"content-type" => "text/html; charset=utf-8"}, [landing_page.call(index, tools)]]
139
140
  else
140
- # For non-browser clients at root, redirect to /http
141
+ # For JSON clients or non-GET requests, redirect to MCP endpoint
141
142
  [301, {"location" => "/http", "content-type" => "text/plain"}, ["Redirecting to /http"]]
142
143
  end
143
144
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CF
4
4
  module MCP
5
- VERSION = "0.15.2"
5
+ VERSION = "0.15.3"
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.15.2
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Usewicz
@@ -106,6 +106,7 @@ files:
106
106
  - lib/cf/mcp/models/struct_doc.rb
107
107
  - lib/cf/mcp/models/topic_doc.rb
108
108
  - lib/cf/mcp/parser.rb
109
+ - lib/cf/mcp/public/favicon.png
109
110
  - lib/cf/mcp/public/logo.png
110
111
  - lib/cf/mcp/public/logo.svg
111
112
  - lib/cf/mcp/server.rb