@plasius/mcp-admin-contracts 0.6.7 → 0.7.1
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/CHANGELOG.md +32 -0
- package/README.md +30 -1
- package/dist/index.cjs +223 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +55 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +221 -0
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0005-privacy-safe-read-only-feedback-contract.md +2 -2
- package/docs/adrs/adr-0009-opt-in-feedback-review-tools.md +48 -0
- package/docs/adrs/index.md +1 -0
- package/package.json +16 -15
|
@@ -78,7 +78,7 @@ authentication for unrelated tools while the feedback flag is off.
|
|
|
78
78
|
Persisted entry projections are discriminated by the exact
|
|
79
79
|
`feedback-bug-packet` and `feedback-review-packet` identities. Reports,
|
|
80
80
|
advisories, game diagnostics, and processor checkpoints directly consume the
|
|
81
|
-
published `@plasius/schema ^1.
|
|
81
|
+
published `@plasius/schema ^1.5.1` dependency and its feedback contract
|
|
82
82
|
`1.0.0`. Descriptor vocabularies and source identities are imported from the
|
|
83
83
|
canonical package, while direct package-schema parity tests prevent this
|
|
84
84
|
package from establishing a second feedback dialect. The npm-registry lock is
|
|
@@ -94,7 +94,7 @@ authoritative; source, file, and Git dependency pins are prohibited.
|
|
|
94
94
|
configure both `mcp:access` and `admin.feedback.read` before enabling the
|
|
95
95
|
feedback family.
|
|
96
96
|
- The feedback family must continue to consume the released
|
|
97
|
-
`@plasius/schema ^1.
|
|
97
|
+
`@plasius/schema ^1.5.1` contract directly and fail validation when its
|
|
98
98
|
canonical schema identities or closed vocabularies diverge.
|
|
99
99
|
- Runtime ingestion, storage, authorisation, reporting, audit, and mutation
|
|
100
100
|
workflows remain outside this package.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# ADR-0009: Opt in to feedback review discovery without widening existing grants
|
|
2
|
+
|
|
3
|
+
- Status: Accepted
|
|
4
|
+
- Date: 2026-11-11
|
|
5
|
+
- Work: [MCP contracts #79](https://github.com/Plasius-LTD/mcp-admin-contracts/issues/79)
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
The legacy feedback registry is read-only. Publishing new write descriptors
|
|
10
|
+
into its default discovery or global OAuth manifest would let older hosts
|
|
11
|
+
describe actions before they implement the protected grant, flags, auditing
|
|
12
|
+
and command checks. Existing feedback reporting and reconstruction tools
|
|
13
|
+
also have separate activation and must not be advertised as a side effect.
|
|
14
|
+
|
|
15
|
+
## Decision
|
|
16
|
+
|
|
17
|
+
Export a separate immutable registry of five tool descriptors. Both MCP
|
|
18
|
+
surfaces explicitly consume this registry. The workflow schema version and
|
|
19
|
+
closed vocabularies come from the published `@plasius/schema` 1.5.0. The
|
|
20
|
+
package describes the narrow queue, point read, and actor-free write result;
|
|
21
|
+
it does not execute or authenticate them. No existing descriptor, discovery
|
|
22
|
+
response, OAuth default or tool registration changes.
|
|
23
|
+
|
|
24
|
+
The consuming site is the source-of-truth evaluator. Read tools require the
|
|
25
|
+
existing `admin.feedback.read` capability and scope, `mcp:access`,
|
|
26
|
+
`feedback.mcp.enabled` and `feedback.review-workflow.enabled`. Mutation tools
|
|
27
|
+
add the protected `admin.feedback.manage` capability and scope, and
|
|
28
|
+
`feedback.processing.enabled`. Require all gates on discovery and execution,
|
|
29
|
+
including existing transport read/write switches and owner/admin checks.
|
|
30
|
+
Unknown or unavailable grants, flags or routes fail closed. There are no
|
|
31
|
+
environment overrides. Both new rollout flags default off. Disable processing
|
|
32
|
+
to keep reads/history available; disable the workflow to remove all five tools.
|
|
33
|
+
|
|
34
|
+
Tools bind action literals to explicit human direction for an identified
|
|
35
|
+
packet. A write is idempotent only when the same revision, packet, key and
|
|
36
|
+
command are replayed. Conflicts require fresh user direction. No action
|
|
37
|
+
deletes or edits source packets, resolves actor identities or calls external
|
|
38
|
+
systems. Use the closed public schema projections for output; history,
|
|
39
|
+
filters and freshness never expose audit links or store metadata.
|
|
40
|
+
|
|
41
|
+
## Consequences
|
|
42
|
+
|
|
43
|
+
Existing read-only grants and consumers stay compatible. Both hosts must
|
|
44
|
+
coordinate their discovery, authorization, bounded execution and release
|
|
45
|
+
checks in the site integration task. Package tests verify names, gates,
|
|
46
|
+
translations, annotations, canonical schema references, payload closure,
|
|
47
|
+
and unchanged legacy discovery. Publish through protected main and
|
|
48
|
+
production CD before site consumption.
|
package/docs/adrs/index.md
CHANGED
|
@@ -8,3 +8,4 @@
|
|
|
8
8
|
- [ADR 0006: Canonical Model-Resolution Discovery](./adr-0006-canonical-model-resolution-discovery.md)
|
|
9
9
|
- [ADR 0007: Safe Game Reconstruction Point Read](./adr-0007-safe-game-reconstruction-point-read.md)
|
|
10
10
|
- [ADR 0008: Trusted CI and confirmed release merges](./adr-0008-trusted-ci-and-confirmed-release-merges.md)
|
|
11
|
+
- [ADR 0009: Opt in to feedback review discovery without widening existing grants](./adr-0009-opt-in-feedback-review-tools.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasius/mcp-admin-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Public-safe MCP admin discovery contract descriptors and response builders.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"homepage": "https://github.com/Plasius-LTD/mcp-admin-contracts#readme",
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@plasius/translations": "^1.0.
|
|
64
|
+
"@plasius/translations": "^1.0.30"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@plasius/translations": {
|
|
@@ -70,19 +70,20 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@eslint/js": "^10.0.1",
|
|
73
|
-
"@plasius/translations": "^1.0.
|
|
73
|
+
"@plasius/translations": "^1.0.30",
|
|
74
74
|
"@types/node": "^25.9.5",
|
|
75
|
-
"@types/react": "^19.
|
|
76
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
77
|
-
"@typescript-eslint/parser": "^8.
|
|
78
|
-
"@vitest/coverage-v8": "^
|
|
79
|
-
"eslint": "^10.
|
|
80
|
-
"globals": "^17.
|
|
81
|
-
"react": "^19.
|
|
82
|
-
"rimraf": "^6.1.
|
|
83
|
-
"tsup": "^
|
|
75
|
+
"@types/react": "^19.3.0",
|
|
76
|
+
"@typescript-eslint/eslint-plugin": "^8.73.0",
|
|
77
|
+
"@typescript-eslint/parser": "^8.73.0",
|
|
78
|
+
"@vitest/coverage-v8": "^5.1.1",
|
|
79
|
+
"eslint": "^10.15.0",
|
|
80
|
+
"globals": "^17.14.0",
|
|
81
|
+
"react": "^19.3.1",
|
|
82
|
+
"rimraf": "^6.1.4",
|
|
83
|
+
"tsup": "^9.0.0",
|
|
84
84
|
"typescript": "^6.0.3",
|
|
85
|
-
"vitest": "^
|
|
85
|
+
"vitest": "^5.1.1",
|
|
86
|
+
"vite": "^8.3.8"
|
|
86
87
|
},
|
|
87
88
|
"publishConfig": {
|
|
88
89
|
"access": "public"
|
|
@@ -107,8 +108,8 @@
|
|
|
107
108
|
"node": ">=24"
|
|
108
109
|
},
|
|
109
110
|
"dependencies": {
|
|
110
|
-
"@plasius/asset-contracts": "0.
|
|
111
|
+
"@plasius/asset-contracts": "0.8.3",
|
|
111
112
|
"@plasius/asset-mcp": "0.1.12",
|
|
112
|
-
"@plasius/schema": "^1.
|
|
113
|
+
"@plasius/schema": "^1.5.1"
|
|
113
114
|
}
|
|
114
115
|
}
|