fast-mcp 1.5.0 → 1.6.0

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.
@@ -136,7 +136,7 @@ module FastMcp
136
136
 
137
137
  private
138
138
 
139
- def validate_client_ip(request)
139
+ def valid_client_ip?(request)
140
140
  client_ip = request.ip
141
141
 
142
142
  # Check if we're in localhost-only mode
@@ -204,7 +204,7 @@ module FastMcp
204
204
  # Handle MCP-specific requests
205
205
  def handle_mcp_request(request, env)
206
206
  # Validate client IP to ensure it's connecting from allowed sources
207
- return forbidden_response('Forbidden: Remote IP not allowed') unless validate_client_ip(request)
207
+ return forbidden_response('Forbidden: Remote IP not allowed') unless valid_client_ip?(request)
208
208
 
209
209
  # Validate Origin header to prevent DNS rebinding attacks
210
210
  return forbidden_response('Forbidden: Origin validation failed') unless validate_origin(request, env)
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.5.0'
4
+ VERSION = '1.6.0'
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.5.0
4
+ version: 1.6.0
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-06-01 00:00:00.000000000 Z
11
+ date: 2025-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -84,16 +84,22 @@ dependencies:
84
84
  name: rack
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '2.0'
90
+ - - "<"
88
91
  - !ruby/object:Gem::Version
89
- version: '3.1'
92
+ version: '4.0'
90
93
  type: :runtime
91
94
  prerelease: false
92
95
  version_requirements: !ruby/object:Gem::Requirement
93
96
  requirements:
94
- - - "~>"
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '2.0'
100
+ - - "<"
95
101
  - !ruby/object:Gem::Version
96
- version: '3.1'
102
+ version: '4.0'
97
103
  description: A flexible and powerful implementation of the MCP with multiple approaches
98
104
  for defining tools.
99
105
  email: