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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0880d377eb3029f73175e4ba00d78bca2c6bbdaf0c7ace5a8012efc44416033e'
4
- data.tar.gz: 73ba72fadb3d1f534847f171f46fed3c5db52744521f45658e9c1960979e4f21
3
+ metadata.gz: a5706ca9b5378bc607efd8127c884e9b7565d22dcf54cf996ea69b21300d1fc9
4
+ data.tar.gz: 575c6193f7cfc41feda2ff46f90cea207bb53cac399e32f6024089b24be8b835
5
5
  SHA512:
6
- metadata.gz: daf1d161bb279219b0c7abc1c2bb801fb6f7e77507b64309425722bb6449e8ca76b2191115a9571b3db1cfd50155e7ae3ec85994ab5bac2659906520d68b814a
7
- data.tar.gz: 104a2890048bfbda6935b39339946a82722e6c918dccda8b6f699aba27e8cea98bd243eae8b9d76a37e25f68b8a116dfab58c5f14f251bd033436a32582b5b01
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 © 2026 Keycard Labs, inc.
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 (per [keycard-sdk-spec](https://github.com/keycardai/keycard-sdk-spec)):
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Keycardai
4
4
  module MCP
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.4"
6
6
  end
7
7
  end
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycardai-mcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keycard