active_mcp 0.10.1 → 0.10.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: b553c506022715ad2f57af006408ab14b08167505efd4aac1fc0bb08ffdde6c4
4
- data.tar.gz: b6c2818a416c3da6021e04a8852e08820f757a33cba12b4ca88e7d0ad212caa5
3
+ metadata.gz: 52bc4e16d14575dbf11222fbdcbd59282551f3c6ead55fb8bd16be7d98ab45c0
4
+ data.tar.gz: 653b86697f28c509738527af695080c2976e9bef9184fa3b4b5761ff1ec0d3c2
5
5
  SHA512:
6
- metadata.gz: f022889f1b6dba59d4fe68586d102cd6671948e8b402e8ebcf268fa68d2a6c45b1f8cfaecc097e70499f941d9e432e8efd53c25637ce480a6b4b45f4dfb5a294
7
- data.tar.gz: 5c9293d59c6d9f2f66d756baa505daaec323108b5921e761502894a54bdb008e879441ba873f0cae57b4813bdd741d50310fcce92af4656875176fbf2f2bf54d
6
+ metadata.gz: d74b26b70a1f3eb5c17c487078d93e94ba1e53080de4a8a12d09f3b9195bc5f60bba406e357d5a093c7d07a0882da2f9cf8ba57be7f87e9b4568b49081a2042b
7
+ data.tar.gz: cafb6a68accab2b5e0a080121580634c3bac4c0993d6ecd56fe0e052e85800ba9c96fc3391cfde5160ee948bdec867213dc9bcd9e6fce3958013941a89d362ce
@@ -6,7 +6,7 @@ json.result do
6
6
  json.array!(@prompts) do |prompt|
7
7
  json.name prompt.prompt_name
8
8
  json.description prompt.description
9
- json.arguments prompt.class.arguments.map { _1.except(:complete) }
9
+ json.arguments prompt.class.arguments ? prompt.class.arguments.map { _1.except(:complete) } : []
10
10
  end
11
11
  end
12
12
  end
@@ -11,8 +11,8 @@ module ActiveMcp
11
11
  values = resource_class.arguments[arg_name.to_sym].call(value)
12
12
  {values:, total: values.length}
13
13
  elsif ref_name
14
- prompt_class = refs.find { _1.prompt_name == ref_name }
15
- values = prompt_class.arguments.find { _1[:name] == arg_name.to_sym }[:complete].call(value)
14
+ prompt = refs.find { _1.prompt_name == ref_name }
15
+ values = prompt.class.arguments.find { _1[:name] == arg_name.to_sym }[:complete].call(value)
16
16
  {values:, total: values.length}
17
17
  end
18
18
  end
@@ -62,7 +62,7 @@ module ActiveMcp
62
62
  error_response(request[:id], ErrorCode::METHOD_NOT_FOUND, "Unknown method: #{request[:method]}")
63
63
  end
64
64
  rescue => e
65
- Server.log_error("Error #{name}", e)
65
+ Server.log_error("Error #{request[:method]}", e)
66
66
  error_response(request[:id], ErrorCode::INTERNAL_ERROR, "An error occurred")
67
67
  end
68
68
 
@@ -1,3 +1,3 @@
1
1
  module ActiveMcp
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.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.10.1
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moeki Kawakami