fast-mcp 1.3.0 → 1.3.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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/mcp/tool.rb +1 -0
- data/lib/mcp/transports/rack_transport.rb +2 -2
- data/lib/mcp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 774d646b14c0d304b8d28b5d7f9d6edd984482c847d456efe0e47b3571db2456
|
4
|
+
data.tar.gz: d6d52a918b1d323d7b045dd159c0e610a1048ba601e4bd459dd59c50f7c35b67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc1937904870226d9b9b7bc46fa246aa36be3ce92e98f0ab6809aba3fe35b4fd6e99d817b8582eed8aa25adf985228065eda342ff721335e6e9f9d661561d345
|
7
|
+
data.tar.gz: a666411a8a67e125b8e667c90ad76705703a4ad103ca37b7f290b5528909d156c0d228a2004b0531759a967487bd80068eb41292dce3c6a84ccec8e3907bbba2
|
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.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.3.1] - 2025-04-30
|
9
|
+
### Fixed
|
10
|
+
- Allow ipv4 mapped to ipv6 (#56) [#56 @josevalim](https://github.com/yjacquin/fast-mcp/pull/56)
|
11
|
+
- Add items to array (#55) [#55 @josevalim](https://github.com/yjacquin/fast-mcp/pull/56)
|
12
|
+
- Ping is a regular message event (#54) [#56 @josevalim](https://github.com/yjacquin/fast-mcp/pull/56)
|
13
|
+
|
8
14
|
## [1.3.0] - 2025-04-28
|
9
15
|
### Added
|
10
16
|
- Added automatic forwarding of query params from to the messages endpoint [@yjacquin](https://github.com/yjacquin/fast-mcp/commit/011d968ac982d0b0084f7753dcac5789f66339ee)
|
data/lib/mcp/tool.rb
CHANGED
@@ -12,7 +12,7 @@ module FastMcp
|
|
12
12
|
class RackTransport < BaseTransport # rubocop:disable Metrics/ClassLength
|
13
13
|
DEFAULT_PATH_PREFIX = '/mcp'
|
14
14
|
DEFAULT_ALLOWED_ORIGINS = ['localhost', '127.0.0.1', '[::1]'].freeze
|
15
|
-
DEFAULT_ALLOWED_IPS = ['127.0.0.1', '::1'].freeze
|
15
|
+
DEFAULT_ALLOWED_IPS = ['127.0.0.1', '::1', '::ffff:127.0.0.1'].freeze
|
16
16
|
|
17
17
|
SSE_HEADERS = {
|
18
18
|
'Content-Type' => 'text/event-stream',
|
@@ -455,7 +455,7 @@ module FastMcp
|
|
455
455
|
method: 'ping',
|
456
456
|
id: rand(1_000_000)
|
457
457
|
}
|
458
|
-
io.write("event:
|
458
|
+
io.write("event: message\ndata: #{JSON.generate(ping_message)}\n\n")
|
459
459
|
io.flush
|
460
460
|
end
|
461
461
|
|
data/lib/mcp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fast-mcp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yorick Jacquin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|