cf-mcp 0.15.1 → 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 +15 -0
- data/Manifest.txt +1 -0
- data/lib/cf/mcp/public/favicon.png +0 -0
- data/lib/cf/mcp/server.rb +6 -4
- data/lib/cf/mcp/templates/index.erb +1 -0
- 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,19 @@ 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
|
+
|
|
14
|
+
## [0.15.2] - 2026-01-26
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Favicon support (48x48 PNG) served at `/favicon.png` and `/favicon.ico`
|
|
19
|
+
- Favicon link tag in HTML template for browser tab icons
|
|
20
|
+
|
|
8
21
|
## [0.15.1] - 2026-01-26
|
|
9
22
|
|
|
10
23
|
### Added
|
|
@@ -205,6 +218,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
205
218
|
- `cf_list_category` - List items by category
|
|
206
219
|
- `cf_get_details` - Get full documentation by name
|
|
207
220
|
|
|
221
|
+
[0.15.3]: https://github.com/pusewicz/cf-mcp/compare/v0.15.2...v0.15.3
|
|
222
|
+
[0.15.2]: https://github.com/pusewicz/cf-mcp/compare/v0.15.1...v0.15.2
|
|
208
223
|
[0.15.1]: https://github.com/pusewicz/cf-mcp/compare/v0.15.0...v0.15.1
|
|
209
224
|
[0.15.0]: https://github.com/pusewicz/cf-mcp/compare/v0.14.3...v0.15.0
|
|
210
225
|
[0.14.3]: https://github.com/pusewicz/cf-mcp/compare/v0.14.2...v0.14.3
|
data/Manifest.txt
CHANGED
|
Binary file
|
data/lib/cf/mcp/server.rb
CHANGED
|
@@ -120,9 +120,10 @@ module CF
|
|
|
120
120
|
[404, {"content-type" => "application/json"}, ['{"error":"Not found"}']]
|
|
121
121
|
when %r{^/http(/|$)}
|
|
122
122
|
http_transport.handle_request(request)
|
|
123
|
-
when "/logo.svg", "/logo.png"
|
|
124
|
-
# Serve
|
|
123
|
+
when "/logo.svg", "/logo.png", "/favicon.png", "/favicon.ico"
|
|
124
|
+
# Serve static assets from public directory
|
|
125
125
|
filename = path.delete_prefix("/")
|
|
126
|
+
filename = "favicon.png" if filename == "favicon.ico" # Serve PNG for .ico requests
|
|
126
127
|
logo_path = File.join(public_dir, filename)
|
|
127
128
|
if File.exist?(logo_path)
|
|
128
129
|
content_type = filename.end_with?(".svg") ? "image/svg+xml" : "image/png"
|
|
@@ -133,10 +134,11 @@ module CF
|
|
|
133
134
|
else
|
|
134
135
|
# Default route - show landing page for browsers
|
|
135
136
|
accept = request.get_header("HTTP_ACCEPT") || ""
|
|
136
|
-
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
|
|
137
139
|
[200, {"content-type" => "text/html; charset=utf-8"}, [landing_page.call(index, tools)]]
|
|
138
140
|
else
|
|
139
|
-
# For
|
|
141
|
+
# For JSON clients or non-GET requests, redirect to MCP endpoint
|
|
140
142
|
[301, {"location" => "/http", "content-type" => "text/plain"}, ["Redirecting to /http"]]
|
|
141
143
|
end
|
|
142
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
|