active_mcp 1.0.0 → 1.1.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/app/controllers/concerns/active_mcp/tool_executable.rb +1 -17
- data/lib/active_mcp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 740ed39a9560785cd7b554d314d5097d970d443a00db90a1f5aa46cd1c4c17ea
|
4
|
+
data.tar.gz: '079562286b1268d1c62796de7706eccc105622a55b8c66475fe95363efc31bf4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 337e3d23396f2919ddab942f6e26aeaabde3d44f97ce6617342624bd5441f11a8e3e364d924a4015b818eee200b944095f06b5f84fe7363bb8d707303b3bb20b
|
7
|
+
data.tar.gz: 56a9d4684124759e6448855814c4002e02f04280301b6f6d7d175d342ce4631eefcb9d7af8328c7d2ce4759141dc5e7ae3071a308aba863e7491ab946350a5c2
|
@@ -83,12 +83,7 @@ module ActiveMcp
|
|
83
83
|
# Execute the tool
|
84
84
|
begin
|
85
85
|
{
|
86
|
-
content:
|
87
|
-
{
|
88
|
-
type: "text",
|
89
|
-
text: formatted(tool.call(**arguments, context:))
|
90
|
-
}
|
91
|
-
]
|
86
|
+
content: tool.call(**arguments, context:)
|
92
87
|
}
|
93
88
|
rescue => e
|
94
89
|
{
|
@@ -102,16 +97,5 @@ module ActiveMcp
|
|
102
97
|
}
|
103
98
|
end
|
104
99
|
end
|
105
|
-
|
106
|
-
def formatted(object)
|
107
|
-
case object
|
108
|
-
when String
|
109
|
-
object
|
110
|
-
when Hash
|
111
|
-
object.to_json
|
112
|
-
else
|
113
|
-
object.to_s
|
114
|
-
end
|
115
|
-
end
|
116
100
|
end
|
117
101
|
end
|
data/lib/active_mcp/version.rb
CHANGED