actionmcp 0.50.0 → 0.50.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: 845438ee87dd1b7c0453604f5716981ab1ac345a3413b135237aa82d6329cdd3
4
- data.tar.gz: 0a8666f43de743705899d20a784de5796d9be421619f736db067d3143f38a495
3
+ metadata.gz: 6673ed8cefa0458b617bcb9ceb865c4aef47a5448752cbe230dc950afea1941f
4
+ data.tar.gz: 68b8c888e2983cea309cd9498d1bde1887025d37058deabeb1b844c0ae3213d8
5
5
  SHA512:
6
- metadata.gz: fdeb2ef3b774d957a812cf1a82ee5135ddacb352746c83ef45aacd3bcf715b900467d7d6154b83b0a2024aa611671102addf4ab97884d43b928c89d7c78f68ac
7
- data.tar.gz: 8ad56c0ff5a39e299d4133e39b5eae5acffaf24c6f07bd49c5f33a40afe71d6e158bf3d071ee28a4926ecf1f189e4b91d60bd76bf8d91088c9f68be4b4eeb93a
6
+ metadata.gz: 1493f47a18bcc5892c84efcfd51840b50cb6d69c9834c0d114cdaa8fe4a7f040d2ac9d84aec06a9599f25135e797bf85e056c7f602571fe6c47f07928e3c6aa9
7
+ data.tar.gz: a4d9cf8658e976d05d8330b9349d143cdf49abc281e974d40f9b70d11592ec619d1e55b47f74c5e6e94865d05a7d8c8fae363e1d98d1bed738fa7be2ee5c4ff2
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "gem_version"
4
4
  module ActionMCP
5
- VERSION = "0.50.0"
5
+ VERSION = "0.50.1"
6
6
 
7
7
  class << self
8
8
  alias version gem_version
data/lib/action_mcp.rb CHANGED
@@ -38,7 +38,21 @@ module ActionMCP
38
38
  CURRENT_VERSION = "2025-03-26" # Current version
39
39
  SUPPORTED_VERSIONS = %w[2025-03-26].freeze
40
40
  class << self
41
- delegate :server, to: "ActionMCP::Server"
41
+ # Returns a Rack-compatible application for serving MCP requests
42
+ # This makes ActionMCP.server work similar to ActionCable.server
43
+ # @return [#call] A Rack application that can be used with `run ActionMCP.server`
44
+ def server
45
+ @server ||= begin
46
+ # Initialize the actual server for PubSub.
47
+ # The return value is intentionally discarded as only the side effects are needed.
48
+ Server.server
49
+
50
+ # Return the Engine as the Rack application
51
+ # The Engine will handle routing to the UnifiedController
52
+ Engine
53
+ end
54
+ end
55
+
42
56
  # Returns the configuration instance.
43
57
  #
44
58
  # @return [Configuration] the configuration instance
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.50.0
4
+ version: 0.50.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih