@kya-os/mcp-i-core 1.4.18 → 1.6.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.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +14 -0
  3. package/dist/auth/handshake.d.ts +119 -0
  4. package/dist/auth/handshake.js +250 -0
  5. package/dist/auth/index.d.ts +6 -0
  6. package/dist/auth/index.js +11 -0
  7. package/dist/auth/types.d.ts +46 -0
  8. package/dist/auth/types.js +10 -0
  9. package/dist/delegation/index.d.ts +1 -0
  10. package/dist/delegation/index.js +1 -0
  11. package/dist/delegation/outbound-proof.d.ts +70 -0
  12. package/dist/delegation/outbound-proof.js +67 -0
  13. package/dist/identity/user-did-manager.js +5 -3
  14. package/dist/index.d.ts +5 -0
  15. package/dist/index.js +25 -2
  16. package/dist/proof/generator.d.ts +109 -0
  17. package/dist/proof/generator.js +236 -0
  18. package/dist/proof/index.d.ts +5 -0
  19. package/dist/proof/index.js +11 -0
  20. package/dist/providers/base.d.ts +5 -1
  21. package/dist/runtime/base.d.ts +127 -13
  22. package/dist/runtime/base.js +199 -51
  23. package/dist/runtime/ext-apps-constants.d.ts +14 -0
  24. package/dist/runtime/ext-apps-constants.js +17 -0
  25. package/dist/services/batch-delegation.service.d.ts +1 -1
  26. package/dist/services/batch-delegation.service.js +4 -4
  27. package/dist/services/proof-verifier.js +1 -1
  28. package/dist/session/index.d.ts +5 -0
  29. package/dist/session/index.js +11 -0
  30. package/dist/session/manager.d.ts +113 -0
  31. package/dist/session/manager.js +273 -0
  32. package/docs/API_REFERENCE.md +76 -0
  33. package/docs/COMPLIANCE_MATRIX.md +691 -0
  34. package/docs/STATUSLIST2021_GUIDE.md +696 -0
  35. package/docs/W3C_VC_DELEGATION_GUIDE.md +710 -0
  36. package/package.json +22 -6
  37. package/vitest.config.mts +8 -7
package/package.json CHANGED
@@ -1,7 +1,14 @@
1
1
  {
2
2
  "name": "@kya-os/mcp-i-core",
3
- "version": "1.4.18",
3
+ "version": "1.6.0",
4
4
  "description": "Core runtime and types for MCP-I framework",
5
+ "license": "MIT",
6
+ "author": "Dylan Hobbs",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/kya-os/xmcp-i",
10
+ "directory": "packages/mcp-i-core"
11
+ },
5
12
  "main": "dist/index.js",
6
13
  "types": "dist/index.d.ts",
7
14
  "exports": {
@@ -28,17 +35,26 @@
28
35
  "prepublishOnly": "npm run build && node ../create-mcpi-app/scripts/validate-no-workspace.js"
29
36
  },
30
37
  "dependencies": {
31
- "@kya-os/contracts": "^1.7.20",
38
+ "@kya-os/contracts": "^1.7.26",
32
39
  "jose": "^5.6.3",
33
40
  "json-canonicalize": "^2.0.0",
34
- "zod": "^3.25.76"
41
+ "zod": "^3.25.67"
42
+ },
43
+ "peerDependencies": {
44
+ "@modelcontextprotocol/ext-apps": "^1.0.0"
45
+ },
46
+ "peerDependenciesMeta": {
47
+ "@modelcontextprotocol/ext-apps": {
48
+ "optional": true
49
+ }
35
50
  },
36
51
  "devDependencies": {
52
+ "@modelcontextprotocol/ext-apps": "^1.0.0",
37
53
  "@types/node": "^20.14.9",
38
- "@vitest/coverage-v8": "^4.0.5",
39
- "eslint": "^8.57.0",
54
+ "@vitest/coverage-v8": "^4.0.18",
55
+ "eslint": "^9.26.0",
40
56
  "typescript": "^5.5.3",
41
- "vitest": "^4.0.5"
57
+ "vitest": "^4.0.18"
42
58
  },
43
59
  "publishConfig": {
44
60
  "access": "public"
package/vitest.config.mts CHANGED
@@ -44,13 +44,14 @@ export default defineConfig({
44
44
  ],
45
45
  reportsDirectory: "./coverage",
46
46
  clean: true,
47
- // Coverage thresholds removed - will be re-enabled when coverage improves
48
- // thresholds: {
49
- // lines: 80,
50
- // branches: 70,
51
- // functions: 80,
52
- // statements: 80,
53
- // },
47
+ // Coverage thresholds set conservatively tighten as coverage improves
48
+ // Current coverage (Feb 2026): Lines 79%, Branches 69%, Functions 79%, Statements 79%
49
+ thresholds: {
50
+ lines: 75,
51
+ branches: 65,
52
+ functions: 75,
53
+ statements: 75,
54
+ },
54
55
  },
55
56
  },
56
57
  });