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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Manifest.txt +1 -0
- data/lib/cf/mcp/public/favicon.png +0 -0
- data/lib/cf/mcp/server.rb +3 -2
- data/lib/cf/mcp/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28a4f34409fb4ba5cfdd9ffdbcd8a361a54e018bab3812e6cb8a785e1598084a
|
|
4
|
+
data.tar.gz: 62e79656a915e2e1de0b3d12a0010920c9016f99d96f370d9312c7b4660d2c78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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?("
|
|
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
|
|
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
|
data/lib/cf/mcp/version.rb
CHANGED
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.
|
|
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
|