robot_lab 0.5.0 → 0.5.1
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/CHANGELOG.md +6 -0
- data/lib/robot_lab/mcp.rb +9 -1
- data/lib/robot_lab/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: 7830657dbfe2508c38884f5a117e3b1eb6db6223c0c5336ba8fdbdd3c8718732
|
|
4
|
+
data.tar.gz: 3df367453aef2881e24e7e718c7778416e932e4f265deca27961bbe1952db483
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f12198c217fa3465274de33a0dfac869eecc51e679f5f65d6d0ee3f0ad18ce9cb14e346b12f35fff6f0fc948ec8dc19e2dfc4eae66afd94a6e4f469a9d2458b
|
|
7
|
+
data.tar.gz: 7e91d8448bc45512216c1e53ba4dee007c0f40f225a6a34b1b8a51238962b99fd6b26757a6dc842d332ed34ccc73f7a381e404d622ad1e847bfeff5da29c1df0
|
data/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **OAuth `grant:` from YAML.** An MCP server config such as `oauth: { grant: client_credentials }` raised `ArgumentError: Unknown OAuth grant`, because ruby_llm accepts the grant only as a Symbol. `RobotLab::MCP.define` now converts a String grant to a Symbol.
|
|
14
|
+
|
|
15
|
+
## [0.5.0] - 2026-11-01
|
|
16
|
+
|
|
11
17
|
robot_lab 0.4.0: MCP (Model Context Protocol) now runs on ruby_llm 2.1's
|
|
12
18
|
built-in client. robot_lab's own JSON-RPC client, four transports and
|
|
13
19
|
connection poller are gone; a robot's MCP servers are `RubyLLM::MCP`
|
data/lib/robot_lab/mcp.rb
CHANGED
|
@@ -207,10 +207,18 @@ module RobotLab
|
|
|
207
207
|
case oauth
|
|
208
208
|
when nil, false then nil
|
|
209
209
|
when true then klass.oauth
|
|
210
|
-
else klass.oauth(**oauth
|
|
210
|
+
else klass.oauth(**oauth_settings(oauth))
|
|
211
211
|
end
|
|
212
212
|
end
|
|
213
213
|
|
|
214
|
+
# Symbolize keys, and the grant: ruby_llm compares it against Symbols
|
|
215
|
+
# (:client_credentials, ...) but YAML configs give Strings.
|
|
216
|
+
def oauth_settings(oauth)
|
|
217
|
+
settings = oauth.to_h.transform_keys(&:to_sym)
|
|
218
|
+
settings[:grant] = settings[:grant].to_sym if settings[:grant].is_a?(String)
|
|
219
|
+
settings
|
|
220
|
+
end
|
|
221
|
+
|
|
214
222
|
def apply_extensions(klass, extensions)
|
|
215
223
|
case extensions
|
|
216
224
|
when nil then nil
|
data/lib/robot_lab/version.rb
CHANGED