active_mcp 0.9.2 → 0.9.3

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: a2bdc655ae59a42ab77ecf1767f4a6717be9586100b51d1f6436da37346be92f
4
- data.tar.gz: 682c5b2b9ce9d08983172d3cca17ee0a12c98169c081bbf06bb90ad361d8bd73
3
+ metadata.gz: faf657746457a11ca96f625b591bfbf82a9e2fe0f89e63629fd9402b14b414af
4
+ data.tar.gz: 4b457a166d61a70751546a2c30a77d4d650e4ed018f4d2e7225a9fad77a4cbaa
5
5
  SHA512:
6
- metadata.gz: 53e87889ab3a2a9dc1a87a97f9c0181ee9d38d57ce332e70c9096da99df0630b6f16ce2d3e6fff16642216bf1cc509121b0ca6817118dd48e811b1bc62db4a04
7
- data.tar.gz: edbff3c0e32089eda22d0c6aa90670f7857b31a253142e3f60517e37c509bb46c7ab488ad6577f3dd991c1d3fb29f21984750d6a83b2465e061ff856be90eed6
6
+ metadata.gz: e46fa704ad3ec0a901c506c15616f82cf54de6614fd9dba1433cdbe8948e8901c9baa540ed1b0472f76c80eb3547b676cbad9ae8de4e9f17f06a4e5b235c9eff
7
+ data.tar.gz: be0fc4c8a010d6be63efd0985ab256c685a1e2325b9eb1d35dd6bd84c021f0b960e6bba38dc57567b0079d346e68559930a3a5b24797b3c6fa02e42896fff7bf
@@ -1,12 +1,14 @@
1
1
  json.jsonrpc ActiveMcp::JSON_RPC_VERSION if @format == :jsonrpc
2
2
  json.id @id if @format == :jsonrpc && @id.present?
3
3
 
4
- json.isError @resource[:isError] if @resource[:isError]
5
- json.contents do
6
- json.array!(@resource[:contents]) do |content|
7
- json.uri content[:uri]
8
- json.mimeType raw content[:mimeType]
9
- json.text raw content[:text] if content[:text]
10
- json.blob content[:blob] if content[:blob]
4
+ json.result do
5
+ json.isError @resource[:isError] if @resource[:isError]
6
+ json.contents do
7
+ json.array!(@resource[:contents]) do |content|
8
+ json.uri content[:uri]
9
+ json.mimeType raw content[:mimeType]
10
+ json.text raw content[:text] if content[:text]
11
+ json.blob content[:blob] if content[:blob]
12
+ end
11
13
  end
12
14
  end
@@ -174,7 +174,7 @@ module ActiveMcp
174
174
  arguments = request.dig(:params, :arguments)
175
175
  result = @server.fetch(params: {method: Method::PROMPTS_GET, params: {name:, arguments:}})
176
176
 
177
- success_response(request[:id], result)
177
+ success_response(request[:id], result[:result])
178
178
  end
179
179
 
180
180
  def success_response(id, result)
@@ -1,3 +1,3 @@
1
1
  module ActiveMcp
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moeki Kawakami