actionmcp 0.7.1 → 0.7.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bea2e23118051ba1a05eb00dfb44395841068fe6358b341e01a1951f7064a259
|
4
|
+
data.tar.gz: e1ff02d641a4684c0369fa252139edeb8bf1dae41193deeca122832bcb0ac318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '097b59b77ef2028887ef159f211a314a9a9fa83edb7ff26f50d62fc56a834bf5df96e7781c5cd715d511ee957736f242971f76baac3d8b1fffd213f6373afe5c'
|
7
|
+
data.tar.gz: 13582b839164819da648df7e319df9e8aac565f2792bee75c44d23d1fd7af531e01d6c7a8e82f63d46fc9cd68f7d42fe10622748202a6ca10dc99ff332d8d7a5
|
data/lib/action_mcp/engine.rb
CHANGED
@@ -15,6 +15,10 @@ module ActionMCP
|
|
15
15
|
# Provide a configuration namespace for ActionMCP
|
16
16
|
config.action_mcp = ActionMCP.configuration
|
17
17
|
|
18
|
+
config.to_prepare do
|
19
|
+
ActionMCP::ResourceTemplate.registered_templates.clear
|
20
|
+
end
|
21
|
+
|
18
22
|
# Configure autoloading for the mcp/tools directory
|
19
23
|
initializer "action_mcp.autoloading", before: :set_autoload_paths do |app|
|
20
24
|
mcp_path = app.root.join("app/mcp")
|
@@ -179,6 +179,8 @@ module ActionMCP
|
|
179
179
|
ResourceTemplate.registered_templates.each do |registered_class|
|
180
180
|
next if registered_class == self || registered_class.abstract?
|
181
181
|
next unless registered_class.uri_template
|
182
|
+
# Ignore conflicts with resource templates that have the same name
|
183
|
+
next if registered_class.name == self.name
|
182
184
|
|
183
185
|
existing_template_data = parse_uri_template(registered_class.uri_template)
|
184
186
|
|
data/lib/action_mcp/tool.rb
CHANGED
@@ -74,7 +74,7 @@ module ActionMCP
|
|
74
74
|
|
75
75
|
return unless %w[number integer].include?(type)
|
76
76
|
|
77
|
-
validates prop_name, numericality: true
|
77
|
+
validates prop_name, numericality: true, allow_nil: true
|
78
78
|
end
|
79
79
|
|
80
80
|
# --------------------------------------------------------------------------
|
data/lib/action_mcp/version.rb
CHANGED