mcp-authz 0.1.0 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-authz",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Authorization for MCP servers: OAuth 2.1 resource server, roles/permissions policy, permission-gated tools (2026-07-28)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,6 +26,18 @@
26
26
  "./policy": {
27
27
  "types": "./dist/policy.d.ts",
28
28
  "import": "./dist/policy.js"
29
+ },
30
+ "./testing": {
31
+ "types": "./dist/testing.d.ts",
32
+ "import": "./dist/testing.js"
33
+ },
34
+ "./proxy": {
35
+ "types": "./dist/proxy.d.ts",
36
+ "import": "./dist/proxy.js"
37
+ },
38
+ "./openapi": {
39
+ "types": "./dist/openapi.d.ts",
40
+ "import": "./dist/openapi.js"
29
41
  }
30
42
  },
31
43
  "files": [
@@ -41,37 +53,49 @@
41
53
  "oauth",
42
54
  "authorization",
43
55
  "resource-server",
44
- "rbac"
56
+ "rbac",
57
+ "openapi"
45
58
  ],
46
59
  "author": "Jag Reehal <jag@jagreehal.com> (https://jagreehal.com)",
47
60
  "license": "MIT",
48
61
  "dependencies": {
49
- "@modelcontextprotocol/server": "^2.0.0",
50
- "jose": "^6.0.11"
62
+ "@modelcontextprotocol/server": "^2.1.0",
63
+ "awaitly": "6.2.0",
64
+ "jose": "^6.2.12"
51
65
  },
52
66
  "peerDependencies": {
67
+ "@modelcontextprotocol/client": "^2.0.0",
53
68
  "@modelcontextprotocol/node": "^2.0.0"
54
69
  },
55
70
  "peerDependenciesMeta": {
56
71
  "@modelcontextprotocol/node": {
57
72
  "optional": true
73
+ },
74
+ "@modelcontextprotocol/client": {
75
+ "optional": true
58
76
  }
59
77
  },
60
78
  "devDependencies": {
61
- "@modelcontextprotocol/node": "^2.0.0",
62
- "@types/node": "^26.1.2",
63
- "executable-stories-vitest": "8.6.3",
79
+ "@modelcontextprotocol/client": "^2.0.0",
80
+ "@modelcontextprotocol/node": "^2.1.0",
81
+ "@types/node": "^26.2.0",
82
+ "@typescript/native": "npm:typescript@^7.0.2",
83
+ "executable-stories-vitest": "8.8.0",
64
84
  "tsdown": "^0.22.14",
65
- "typescript": "^6.0.3",
66
- "vitest": "^4.1.10"
85
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
86
+ "vitest": "^4.1.11",
87
+ "zod": "^4.6.5"
67
88
  },
68
89
  "engines": {
69
- "node": ">=20"
90
+ "node": ">=24"
91
+ },
92
+ "bin": {
93
+ "mcp-authz": "./dist/cli.js"
70
94
  },
71
95
  "scripts": {
72
96
  "build": "tsdown",
73
97
  "dev": "tsdown --watch",
74
- "test": "vitest run && prettier --write docs/stories.md",
98
+ "test": "vitest run --coverage && prettier --write docs/stories.md",
75
99
  "test:watch": "vitest",
76
100
  "lint": "eslint src",
77
101
  "type-check": "tsc --noEmit",