@plasius/mcp-admin-contracts 0.4.0 → 0.5.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 +69 -0
- package/README.md +125 -0
- package/dist/index.cjs +1307 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +165 -11
- package/dist/index.d.ts +165 -11
- package/dist/index.js +1315 -13
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0005-privacy-safe-read-only-feedback-contract.md +100 -0
- package/docs/adrs/adr-0006-canonical-model-resolution-discovery.md +66 -0
- package/docs/adrs/index.md +2 -0
- package/package.json +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,73 @@
|
|
|
14
14
|
- **Security**
|
|
15
15
|
- (placeholder)
|
|
16
16
|
|
|
17
|
+
## [0.5.1] - 2026-08-20
|
|
18
|
+
|
|
19
|
+
- **Added**
|
|
20
|
+
- Added public-safe discovery and schema metadata for all eight canonical
|
|
21
|
+
snake_case model-resolution tools, their authenticated `mcp://models/...`
|
|
22
|
+
resources, JSON-RPC `tools/call` execution, en-GB descriptions, and model
|
|
23
|
+
contract context with bounded verification notes.
|
|
24
|
+
|
|
25
|
+
- **Changed**
|
|
26
|
+
- Advanced the additive MCP Admin registry contract to `2026-08-20.v7` and
|
|
27
|
+
pinned `@plasius/asset-mcp 0.1.6` plus `@plasius/asset-contracts 0.3.1` as
|
|
28
|
+
the canonical model tool and schema sources.
|
|
29
|
+
|
|
30
|
+
- **Fixed**
|
|
31
|
+
- Completed the model-family OAuth discovery registry with the retained
|
|
32
|
+
review and source-management scopes and added the canonical top-level
|
|
33
|
+
catalog-confirm capability export.
|
|
34
|
+
- Deep-froze shared model verification notes and the context schema so one
|
|
35
|
+
consumer cannot mutate later discovery responses.
|
|
36
|
+
|
|
37
|
+
- **Security**
|
|
38
|
+
- Preserved exact canonical OAuth scopes, capabilities, annotations, parent
|
|
39
|
+
and conditional rollout flags without adding runtime access or flag
|
|
40
|
+
evaluation to the public contract package.
|
|
41
|
+
- Kept per-tool authorization metadata unchanged while ensuring issuer and
|
|
42
|
+
protected-resource consumers can advertise every model capability scope.
|
|
43
|
+
|
|
44
|
+
## [0.5.0] - 2026-08-13
|
|
45
|
+
|
|
46
|
+
- **Added**
|
|
47
|
+
- Added a privacy-safe, read-only `feedback` domain for bounded bug health,
|
|
48
|
+
satisfaction, deterministic alerts, processor freshness, and
|
|
49
|
+
reporter-identifier-free structured feedback entries.
|
|
50
|
+
- Added stable `feedback.mcp.enabled` rollout and `admin.feedback.read`
|
|
51
|
+
capability metadata, complete action-level `mcp:access` plus
|
|
52
|
+
`admin.feedback.read` OAuth scope metadata, unified fail-closed access
|
|
53
|
+
requirements, en-GB descriptions, and machine-readable privacy exclusions
|
|
54
|
+
and bounds.
|
|
55
|
+
- Added canonical packet, aggregate, advisory, diagnostics, and
|
|
56
|
+
processor-checkpoint projections with direct package-schema parity
|
|
57
|
+
coverage.
|
|
58
|
+
|
|
59
|
+
- **Changed**
|
|
60
|
+
- Advanced the additive MCP Admin registry contract to `2026-08-11.v6`
|
|
61
|
+
while preserving all v0.4.0 Token reporting and adjustment domains.
|
|
62
|
+
- Modelled structured-entry filters as exact `packetType` variants so bug
|
|
63
|
+
and review filters cannot be combined.
|
|
64
|
+
- Replaced the staged source projection with direct registry consumption of
|
|
65
|
+
published `@plasius/schema ^1.4.0` canonical schema identities and closed
|
|
66
|
+
vocabularies.
|
|
67
|
+
|
|
68
|
+
- **Fixed**
|
|
69
|
+
- (placeholder)
|
|
70
|
+
|
|
71
|
+
- **Security**
|
|
72
|
+
- Closed every feedback-specific input and output object projection with
|
|
73
|
+
`additionalProperties: false` so undeclared fields cannot cross the
|
|
74
|
+
Admin/MCP contract boundary.
|
|
75
|
+
- Made account, network, session, user-agent, locale, client-time, referrer,
|
|
76
|
+
credential, financial, government, filename, dimension, warning,
|
|
77
|
+
coordinate, adapter-identity, and model-artifact exclusions
|
|
78
|
+
machine-readable.
|
|
79
|
+
- Kept narrative, reporter correlation, binary images, storage references,
|
|
80
|
+
raw URLs, unrestricted scans, and mutations outside the public contract.
|
|
81
|
+
- Raised transitive `brace-expansion`, `nanoid`, and `postcss` override
|
|
82
|
+
floors to remediate the current high-severity development-tool advisories.
|
|
83
|
+
|
|
17
84
|
## [0.4.0] - 2026-08-08
|
|
18
85
|
|
|
19
86
|
- **Added**
|
|
@@ -175,3 +242,5 @@
|
|
|
175
242
|
[0.3.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.3.0
|
|
176
243
|
[0.3.1]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.3.1
|
|
177
244
|
[0.4.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.4.0
|
|
245
|
+
[0.5.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.5.0
|
|
246
|
+
[0.5.1]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.5.1
|
package/README.md
CHANGED
|
@@ -55,13 +55,76 @@ The exported registry currently covers:
|
|
|
55
55
|
- capability-rule and effective-capability descriptors keyed by canonical tuple identities
|
|
56
56
|
- bounded analytics queries and curated analytics presets
|
|
57
57
|
- bounded grouped user-aggregation summaries without raw per-user export
|
|
58
|
+
- privacy-safe feedback intelligence for immutable bug-health and satisfaction
|
|
59
|
+
reports, deterministic alerts, processor freshness, and
|
|
60
|
+
reporter-identifier-free structured entries
|
|
58
61
|
- read-only global Token overview, pseudonymous wallet/activity, and bounded
|
|
59
62
|
spend-trend descriptors
|
|
60
63
|
- governed asset catalog, source-intake, pipeline, and review descriptors for
|
|
61
64
|
the hosted `plasius-ltd-site` MCP backend
|
|
65
|
+
- canonical model-resolution discovery sourced from `@plasius/asset-mcp`,
|
|
66
|
+
including its authenticated `mcp://models/...` resource templates
|
|
62
67
|
- owner-only Token finance descriptors for bounded wallet/activity reads and
|
|
63
68
|
dual-approved credit or compensating-reversal workflows
|
|
64
69
|
|
|
70
|
+
### Canonical model resolution
|
|
71
|
+
|
|
72
|
+
The additive `modelTools` discovery family advertises the eight exact MCP
|
|
73
|
+
tool names owned by `@plasius/asset-mcp 0.1.6`:
|
|
74
|
+
|
|
75
|
+
- `list_model_search_rankers`
|
|
76
|
+
- `search_model_catalog`
|
|
77
|
+
- `resolve_model_request`
|
|
78
|
+
- `get_model_resolution`
|
|
79
|
+
- `confirm_model_candidate`
|
|
80
|
+
- `retry_model_resolution`
|
|
81
|
+
- `cancel_model_resolution`
|
|
82
|
+
- `rebuild_model_catalog_index`
|
|
83
|
+
|
|
84
|
+
These are JSON-RPC 2.0 tools executed with `tools/call` over `POST /api/mcp`.
|
|
85
|
+
They are deliberately separate from the existing REST-backed `actions` array;
|
|
86
|
+
all legacy descriptors and exports remain source-compatible. The schema
|
|
87
|
+
response references the canonical input/output schema objects, annotations,
|
|
88
|
+
OAuth security schemes, capabilities, review-result metadata, and rollout
|
|
89
|
+
metadata directly from `@plasius/asset-mcp` rather than maintaining local
|
|
90
|
+
copies. Each wrapper also carries bounded verification notes identifying the
|
|
91
|
+
canonical result or follow-up tool used to confirm an operation.
|
|
92
|
+
|
|
93
|
+
Every model tool requires the parent
|
|
94
|
+
`asset.pipeline.unified-ai-assets.enabled` flag. Provider acquisition and the
|
|
95
|
+
future generator additionally carry the conditional, fail-closed
|
|
96
|
+
`asset.pipeline.external-model-harvest.enabled` and
|
|
97
|
+
`asset.pipeline.ai-model-generation.enabled` flags only on the tools that may
|
|
98
|
+
attempt those fallbacks. Installing this package does not evaluate any flag or
|
|
99
|
+
make a hosted tool callable; the consuming runtime owns fail-closed rollout,
|
|
100
|
+
OAuth, capability, ownership, and audit enforcement.
|
|
101
|
+
|
|
102
|
+
Tool scopes and capabilities are preserved exactly, including distinct
|
|
103
|
+
`asset.catalog.request`, `asset.catalog.confirm`, and operator-only
|
|
104
|
+
`asset.pipeline.mcp.manage` requirements. The wider model capability registry
|
|
105
|
+
also carries `asset.catalog.review` and `asset.source.manage` for coordinated
|
|
106
|
+
host discovery. `MCP_ADMIN_MODEL_OAUTH_SCOPES` is the complete issuer and
|
|
107
|
+
protected-resource scope registry (`mcp:access` plus all five asset capability
|
|
108
|
+
scopes); it does not broaden any individual tool descriptor. Named
|
|
109
|
+
`MCP_ASSET_*_CAPABILITY` exports, including
|
|
110
|
+
`MCP_ASSET_CATALOG_CONFIRM_CAPABILITY`, use the canonical package constants so
|
|
111
|
+
hosts do not need to hardcode those identifiers. Authenticated
|
|
112
|
+
model-resolution records, processing manifests,
|
|
113
|
+
1024-pixel originals, and promoted manifests are advertised through the five
|
|
114
|
+
canonical `mcp://models/...` resource templates. Inline 512-pixel four-view
|
|
115
|
+
image results remain part of the canonical tool result contract, not this
|
|
116
|
+
admin wrapper.
|
|
117
|
+
|
|
118
|
+
Shared verification-note arrays and the exported context schema are deeply
|
|
119
|
+
frozen. A consumer therefore cannot mutate one discovery or schema result and
|
|
120
|
+
silently change later calls in the same process.
|
|
121
|
+
|
|
122
|
+
Package-owned en-GB keys provide stable descriptions for every canonical tool.
|
|
123
|
+
When discovery is built, description drift between those translations and the
|
|
124
|
+
pinned canonical registry fails closed. `@plasius/asset-contracts 0.3.1`
|
|
125
|
+
supplies the underlying model-resolution contract version; no model schema is
|
|
126
|
+
redeclared here.
|
|
127
|
+
|
|
65
128
|
Token finance descriptors require the host to enforce the parent
|
|
66
129
|
`economy.tokens.enabled` flag and the package-published
|
|
67
130
|
`mcp.admin-economy-adjustments.enabled` flag. They declare the relevant
|
|
@@ -101,6 +164,68 @@ JSON-RPC tools and passes scope/capability/flag, bounded-output, privacy, and
|
|
|
101
164
|
audit integration tests. Installing or publishing this package does not create
|
|
102
165
|
runtime routes.
|
|
103
166
|
|
|
167
|
+
### Feedback intelligence
|
|
168
|
+
|
|
169
|
+
The read-only `feedback` domain publishes these near-future hosted action
|
|
170
|
+
contracts:
|
|
171
|
+
|
|
172
|
+
- `getFeedbackBugHealth`
|
|
173
|
+
- `getFeedbackSatisfaction`
|
|
174
|
+
- `listFeedbackAlerts`
|
|
175
|
+
- `getFeedbackFreshness`
|
|
176
|
+
- `listFeedbackStructuredEntries`
|
|
177
|
+
|
|
178
|
+
Every feedback descriptor carries the canonical default-off rollout flag
|
|
179
|
+
`feedback.mcp.enabled`, required capability `admin.feedback.read`, complete
|
|
180
|
+
action-level OAuth scopes `mcp:access` plus `admin.feedback.read`, and a
|
|
181
|
+
machine-readable privacy boundary. The same controls are repeated in the
|
|
182
|
+
descriptor's unified read-only `access` metadata so a consumer cannot silently
|
|
183
|
+
drop one requirement when building hosted tools. The consuming admin/MCP
|
|
184
|
+
runtime owns evaluation of those controls and must fail closed. When the flag,
|
|
185
|
+
scope, or capability is unavailable, the consumer-visible fallback is that the
|
|
186
|
+
feedback actions are omitted or rejected; this package does not evaluate
|
|
187
|
+
access.
|
|
188
|
+
|
|
189
|
+
The global AI-plugin manifest deliberately retains its existing
|
|
190
|
+
`openid email profile mcp:access` base scopes. The feedback scopes remain
|
|
191
|
+
action metadata until the site OAuth issuer, protected-resource metadata, and
|
|
192
|
+
staged rollout are coordinated.
|
|
193
|
+
|
|
194
|
+
Feedback reads use closed server-owned windows, opaque continuation cursors of
|
|
195
|
+
at most 512 characters, and pages of at most 100 records. They address
|
|
196
|
+
immutable materialised reports and schema-validated structured projections,
|
|
197
|
+
never unrestricted storage scans. Every feedback-specific object projection
|
|
198
|
+
also declares `additionalProperties: false`, keeping undeclared fields outside
|
|
199
|
+
the Admin/MCP serialization boundary.
|
|
200
|
+
|
|
201
|
+
The structured-entry action accepts one required `filters` object. It is an
|
|
202
|
+
exact `packetType`-discriminated union: the bug variant alone permits
|
|
203
|
+
`surfaceId`, `buildId`, and `severity`, while the review variant alone permits
|
|
204
|
+
`satisfaction`. Both variants contain the bounded window, limit, and cursor.
|
|
205
|
+
Consumers must reject unknown or cross-packet fields before flattening the
|
|
206
|
+
selected variant into route query parameters.
|
|
207
|
+
|
|
208
|
+
This package directly consumes the published `@plasius/schema ^1.4.0`
|
|
209
|
+
dependency. Packet and report descriptors bind their schema sources to its
|
|
210
|
+
feedback contract version `1.0.0`, and their vocabularies and schema identity
|
|
211
|
+
metadata are imported from that package at runtime. Entries are discriminated
|
|
212
|
+
by the canonical
|
|
213
|
+
`feedback-bug-packet`/`feedback-review-packet` identities; hourly bug-health,
|
|
214
|
+
daily satisfaction, advisories, diagnostics, and processor checkpoints use
|
|
215
|
+
the same closed kebab-case vocabulary and lowercase UUIDv4 constraints as the
|
|
216
|
+
canonical schemas. The registry-generated lock resolves the package directly;
|
|
217
|
+
source, file, and Git dependency pins remain prohibited.
|
|
218
|
+
|
|
219
|
+
The contracts explicitly exclude account, reporter, network, session,
|
|
220
|
+
user-agent, locale, client-time, referrer, coordinate, dimension, and adapter
|
|
221
|
+
identifiers; credentials and secrets; financial and government identifiers;
|
|
222
|
+
filenames and raw warnings; narrative, binary images, Blob references, raw
|
|
223
|
+
URLs, unrestricted scans, and mutations.
|
|
224
|
+
Narrative-derived data is limited to closed classifications; it cannot include
|
|
225
|
+
summaries, quotations, embeddings, hashes, matched values, or model traces.
|
|
226
|
+
Renderer diagnostics are bounded structured facts only and never
|
|
227
|
+
user-captured pixels.
|
|
228
|
+
|
|
104
229
|
Action descriptors keep their existing `description` field and also expose
|
|
105
230
|
`descriptionKey` and `descriptionDefault` so clients can resolve display text
|
|
106
231
|
through `@plasius/translations`:
|