keycardai-mcp 0.1.2 → 0.1.4
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 +14 -0
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/keycardai/mcp/auth_provider.rb +5 -0
- data/lib/keycardai/mcp/version.rb +1 -1
- data/lib/keycardai/mcp.rb +0 -2
- 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: a5706ca9b5378bc607efd8127c884e9b7565d22dcf54cf996ea69b21300d1fc9
|
|
4
|
+
data.tar.gz: 575c6193f7cfc41feda2ff46f90cea207bb53cac399e32f6024089b24be8b835
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 715cd9a2f702cd68d8b17671aad7bb25e04778a0e04f121fca58827f398bd4d3ed7d9870a6e9c3e286c8ffc94c79adc63371dddfb2936c6aef0bc1498c4864dd
|
|
7
|
+
data.tar.gz: 7809476c3a4dba4170a537fb800182074f34c64ae7a342bad9b1a761781ba9e374232e72cb66f8de662074a8b3914d23a48de10a7c5a52f2bc8e5d1ff2f90232
|
data/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,20 @@ protected-resource with path insertion, an RFC 8414 authorization-server proxy,
|
|
|
14
14
|
and JWKS), and an AuthProvider whose `grant` middleware exchanges the caller's
|
|
15
15
|
token per resource into an AccessContext. Wraps no MCP SDK.
|
|
16
16
|
|
|
17
|
+
## 0.1.4-keycardai-mcp (2026-11-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- fix(keycardai-mcp): reject an empty audience list at construction (#93)
|
|
21
|
+
- * fix(keycardai-mcp): reject an empty audience list at construction
|
|
22
|
+
- Co-Authored-By: Larry Osakwe <larry@keycard.ai>
|
|
23
|
+
- * test(keycardai-mcp): cover a nonempty AuthProvider audience list end to end
|
|
24
|
+
- ---------
|
|
25
|
+
- Co-authored-by: devin-ai-keycard <devin-ai@keycard.ai>
|
|
26
|
+
Co-authored-by: Larry Osakwe <larry@keycard.ai>
|
|
27
|
+
Co-authored-by: Larry Osakwe <>
|
|
28
|
+
|
|
29
|
+
## 0.1.3-keycardai-mcp (2026-11-24)
|
|
30
|
+
|
|
17
31
|
## 0.1.2-keycardai-mcp (2026-10-12)
|
|
18
32
|
|
|
19
33
|
|
data/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT LICENSE
|
|
2
2
|
|
|
3
|
-
Copyright
|
|
3
|
+
Copyright (c) 2026 Keycard Labs, Inc.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
data/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Keycard integration for MCP servers in Ruby, attached at the Rack seam.
|
|
|
9
9
|
bundle add keycardai-mcp
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
What it ships
|
|
12
|
+
What it ships:
|
|
13
13
|
|
|
14
14
|
- Bearer-token verification middleware: fail-closed 401 with an RFC 6750
|
|
15
15
|
`WWW-Authenticate` challenge advertising `resource_metadata`
|
|
@@ -22,8 +22,13 @@ module Keycardai
|
|
|
22
22
|
# @param audiences [String, Array<String>, nil] enforced on inbound tokens
|
|
23
23
|
# @param http_client [#get, #post_form] pluggable transport
|
|
24
24
|
# @param timeout [Numeric, nil]
|
|
25
|
+
# @raise [Keycardai::OAuth::ConfigurationError] explicitly empty audiences
|
|
25
26
|
def initialize(zone_url:, credential: nil, client_id: nil, client_secret: nil, audiences: nil,
|
|
26
27
|
http_client: Keycardai::OAuth::HTTP::NetHTTPClient.new, timeout: nil)
|
|
28
|
+
if audiences.is_a?(Array) && audiences.empty?
|
|
29
|
+
raise Keycardai::OAuth::ConfigurationError, "audiences must not be empty"
|
|
30
|
+
end
|
|
31
|
+
|
|
27
32
|
@zone_url = zone_url
|
|
28
33
|
@credential = credential || (client_id ? Keycardai::OAuth::ClientSecret.new(client_id, client_secret) : nil)
|
|
29
34
|
@audiences = audiences
|
data/lib/keycardai/mcp.rb
CHANGED
|
@@ -12,8 +12,6 @@ module Keycardai
|
|
|
12
12
|
# middleware (RFC 6750), OAuth metadata endpoints (RFC 9728 / RFC 8414), and
|
|
13
13
|
# an AuthProvider for delegated token exchange. Handlers read the verified
|
|
14
14
|
# identity and exchanged tokens from the Rack env.
|
|
15
|
-
#
|
|
16
|
-
# Contract: https://github.com/keycardai/keycard-sdk-spec
|
|
17
15
|
module MCP
|
|
18
16
|
# Rack env key holding the verified inbound token's AuthInfo.
|
|
19
17
|
ENV_AUTH_INFO = "keycardai.auth_info"
|