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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9bf1821cef23dc83ceb6798b128cecc43a2585d3bd7c75996824cbfb960f085a
4
- data.tar.gz: fb1b755390487c5b4fff6a75e94540470ef21135bed4978465da9f16f8f201c3
3
+ metadata.gz: d01a1c6af1a49f9992d61bfe0e0bb6aa6ab8429dbdd21e977c27506fd21cb90e
4
+ data.tar.gz: 650eac8eb9711cafffee1b5e27d45873f8a28b3a9c07d27ca91d4bada3c72436
5
5
  SHA512:
6
- metadata.gz: a0764d4fea510580d99b6b51428b91545bfd17d9e6ae9828a88b127e6d91c2f5f1d77fb0816f4043ed6de596c0c55719d2b16c73efc38a7dedf5ff027a5236a4
7
- data.tar.gz: d828f74be45e7b33877b01265a159fcc76961bba326ac4f31205243bd6bbcd5cb1f4935be627d5ae6bb8aad1fa7644f8611b2514637f94cab74eab7f6184a2d8
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
- resource_data = super.merge(uri: @uri, mimeType: @mime_type)
35
- resource_data[:text] = @text if @text
36
- resource_data[:blob] = @blob if @blob
37
- resource_data
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "gem_version"
4
4
  module ActionMCP
5
- VERSION = "0.101.0"
5
+ VERSION = "0.102.0"
6
6
 
7
7
  class << self
8
8
  alias version gem_version
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.101.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: 3.6.9
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: []