actionmcp 0.101.0 → 0.102.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.
- checksums.yaml +4 -4
- data/lib/action_mcp/content/resource.rb +7 -4
- data/lib/action_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: d01a1c6af1a49f9992d61bfe0e0bb6aa6ab8429dbdd21e977c27506fd21cb90e
|
|
4
|
+
data.tar.gz: 650eac8eb9711cafffee1b5e27d45873f8a28b3a9c07d27ca91d4bada3c72436
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 750107898a375f73d7055cb1b346971e5f1bdfe5ca82d8839a280a67c03a396970e9e7919dac5146e456cc0a49ffbe6013bfac0ec8ded7da515bd3691147a18d
|
|
7
|
+
data.tar.gz: a1701f0a82a4320896731bc33f7db4968524133e5b6f407ac0174fed70165a36d36079e6f6f179d149305bbbbfb4977320f63d7e36afc78bc16d2f012911dac5
|
|
@@ -28,13 +28,16 @@ module ActionMCP
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
# Returns a hash representation of the resource content.
|
|
31
|
+
# Per MCP spec, embedded resources have type "resource" with a nested resource object.
|
|
31
32
|
#
|
|
32
33
|
# @return [Hash] The hash representation of the resource content.
|
|
33
34
|
def to_h
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
inner = { uri: @uri, mimeType: @mime_type }
|
|
36
|
+
inner[:text] = @text if @text
|
|
37
|
+
inner[:blob] = @blob if @blob
|
|
38
|
+
inner[:annotations] = @annotations if @annotations
|
|
39
|
+
|
|
40
|
+
{ type: @type, resource: inner }
|
|
38
41
|
end
|
|
39
42
|
end
|
|
40
43
|
end
|
data/lib/action_mcp/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.102.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Abdelkader Boudih
|
|
@@ -327,7 +327,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
327
327
|
- !ruby/object:Gem::Version
|
|
328
328
|
version: '0'
|
|
329
329
|
requirements: []
|
|
330
|
-
rubygems_version:
|
|
330
|
+
rubygems_version: 4.0.1
|
|
331
331
|
specification_version: 4
|
|
332
332
|
summary: Lightweight Model Context Protocol (MCP) server toolkit for Ruby/Rails
|
|
333
333
|
test_files: []
|