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 +4 -4
- data/lib/action_mcp/version.rb +1 -1
- data/lib/action_mcp.rb +15 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6673ed8cefa0458b617bcb9ceb865c4aef47a5448752cbe230dc950afea1941f
|
4
|
+
data.tar.gz: 68b8c888e2983cea309cd9498d1bde1887025d37058deabeb1b844c0ae3213d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1493f47a18bcc5892c84efcfd51840b50cb6d69c9834c0d114cdaa8fe4a7f040d2ac9d84aec06a9599f25135e797bf85e056c7f602571fe6c47f07928e3c6aa9
|
7
|
+
data.tar.gz: a4d9cf8658e976d05d8330b9349d143cdf49abc281e974d40f9b70d11592ec619d1e55b47f74c5e6e94865d05a7d8c8fae363e1d98d1bed738fa7be2ee5c4ff2
|
data/lib/action_mcp/version.rb
CHANGED
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
|
-
|
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
|