@kya-os/mcp-i-core 1.3.20 → 1.3.22

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.
@@ -688,12 +688,18 @@ function authorizationMatches(delegationAuth, toolAuth) {
688
688
  // Compare type
689
689
  if (delegationAuth.type !== toolAuth.type)
690
690
  return false;
691
- // For OAuth, compare provider
691
+ // For OAuth, compare provider (undefined in toolAuth means "any provider is acceptable")
692
692
  if (delegationAuth.type === 'oauth') {
693
+ // If tool doesn't specify a provider, any provider is acceptable
694
+ if (!toolAuth.provider)
695
+ return true;
693
696
  return delegationAuth.provider === toolAuth.provider;
694
697
  }
695
- // For credential, compare credentialType
698
+ // For credential, compare credentialType (undefined in toolAuth means "any type is acceptable")
696
699
  if (delegationAuth.type === 'credential') {
700
+ // If tool doesn't specify a credential type, any type is acceptable
701
+ if (!toolAuth.credentialType)
702
+ return true;
697
703
  return delegationAuth.credentialType === toolAuth.credentialType;
698
704
  }
699
705
  // For 'none' type, they match if both are 'none'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/mcp-i-core",
3
- "version": "1.3.20",
3
+ "version": "1.3.22",
4
4
  "description": "Core runtime and types for MCP-I framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-no-workspace.js"
29
29
  },
30
30
  "dependencies": {
31
- "@kya-os/contracts": "^1.6.12",
31
+ "@kya-os/contracts": "^1.6.15",
32
32
  "jose": "^5.6.3",
33
33
  "json-canonicalize": "^2.0.0",
34
34
  "zod": "^3.25.76"