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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 688719b076ec2db4860e3e8a0d40d5417b485cdafbaebb777975d680600c1b9b
4
- data.tar.gz: e367624636eecd848a48fd89eff2fd0860b7b1468287d63da77e529d76e96f6f
3
+ metadata.gz: 774d646b14c0d304b8d28b5d7f9d6edd984482c847d456efe0e47b3571db2456
4
+ data.tar.gz: d6d52a918b1d323d7b045dd159c0e610a1048ba601e4bd459dd59c50f7c35b67
5
5
  SHA512:
6
- metadata.gz: c861b5abf1a982e435b5954075ebaeeece64559a79bae67e36a7d91313a05eba45d5bd61924b87eddc2f6a12f63e69187e3821c4856329e0b2f48b68834bec0f
7
- data.tar.gz: 53b8d45da7985600f6b4bb8c131159c769c7458ad2b94471cbfbcd8497154f21c50061fba8a6ac3768bb54c21375035d3fd9f18bc79c008504e54e087017553e
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
@@ -382,6 +382,7 @@ module FastMcp
382
382
  case predicate_name
383
383
  when :array?
384
384
  property[:type] = 'array'
385
+ property[:items] = {}
385
386
  when :bool?
386
387
  property[:type] = 'boolean'
387
388
  when :int?, :decimal?, :float?
@@ -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: ping\ndata: #{JSON.generate(ping_message)}\n\n")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastMcp
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2025-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64