@plasius/mcp-admin-contracts 0.5.1 → 0.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.
- package/CHANGELOG.md +26 -0
- package/README.md +27 -7
- package/dist/index.cjs +70 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +70 -4
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0007-safe-game-reconstruction-point-read.md +81 -0
- package/docs/adrs/index.md +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,31 @@
|
|
|
14
14
|
- **Security**
|
|
15
15
|
- (placeholder)
|
|
16
16
|
|
|
17
|
+
## [0.6.0] - 2026-08-26
|
|
18
|
+
|
|
19
|
+
- **Added**
|
|
20
|
+
- Added the read-only `getFeedbackGameReconstruction` descriptor for one
|
|
21
|
+
canonical safe in-game reconstruction manifest backed by curated public
|
|
22
|
+
assets and consented coarse renderer diagnostics.
|
|
23
|
+
|
|
24
|
+
- **Changed**
|
|
25
|
+
- Advanced the additive MCP Admin registry contract to `2026-08-26.v8` and
|
|
26
|
+
added the canonical `FeedbackGameReconstructionManifestSchema` source
|
|
27
|
+
identity plus an en-GB action description.
|
|
28
|
+
|
|
29
|
+
- **Fixed**
|
|
30
|
+
- (placeholder)
|
|
31
|
+
|
|
32
|
+
- **Security**
|
|
33
|
+
- Restricted reconstruction reads to exact lowercase UUIDv4 point lookups
|
|
34
|
+
under the existing default-off `feedback.mcp.enabled`, `mcp:access`, and
|
|
35
|
+
`admin.feedback.read` controls, with no list, scan, query, or mutation
|
|
36
|
+
contract.
|
|
37
|
+
- Explicitly excluded client pixels and request telemetry in addition to
|
|
38
|
+
narrative, reporter correlation, binary images, URLs, and direct storage
|
|
39
|
+
references; the route metadata requires a uniform not-found response for
|
|
40
|
+
absent, expired, or unavailable manifests.
|
|
41
|
+
|
|
17
42
|
## [0.5.1] - 2026-08-20
|
|
18
43
|
|
|
19
44
|
- **Added**
|
|
@@ -244,3 +269,4 @@
|
|
|
244
269
|
[0.4.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.4.0
|
|
245
270
|
[0.5.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.5.0
|
|
246
271
|
[0.5.1]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.5.1
|
|
272
|
+
[0.6.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.6.0
|
package/README.md
CHANGED
|
@@ -57,7 +57,8 @@ The exported registry currently covers:
|
|
|
57
57
|
- bounded grouped user-aggregation summaries without raw per-user export
|
|
58
58
|
- privacy-safe feedback intelligence for immutable bug-health and satisfaction
|
|
59
59
|
reports, deterministic alerts, processor freshness, and
|
|
60
|
-
reporter-identifier-free structured entries
|
|
60
|
+
reporter-identifier-free structured entries and safe in-game reconstruction
|
|
61
|
+
manifests
|
|
61
62
|
- read-only global Token overview, pseudonymous wallet/activity, and bounded
|
|
62
63
|
spend-trend descriptors
|
|
63
64
|
- governed asset catalog, source-intake, pipeline, and review descriptors for
|
|
@@ -174,6 +175,7 @@ contracts:
|
|
|
174
175
|
- `listFeedbackAlerts`
|
|
175
176
|
- `getFeedbackFreshness`
|
|
176
177
|
- `listFeedbackStructuredEntries`
|
|
178
|
+
- `getFeedbackGameReconstruction`
|
|
177
179
|
|
|
178
180
|
Every feedback descriptor carries the canonical default-off rollout flag
|
|
179
181
|
`feedback.mcp.enabled`, required capability `admin.feedback.read`, complete
|
|
@@ -186,6 +188,10 @@ scope, or capability is unavailable, the consumer-visible fallback is that the
|
|
|
186
188
|
feedback actions are omitted or rejected; this package does not evaluate
|
|
187
189
|
access.
|
|
188
190
|
|
|
191
|
+
`MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED` is exported as `false` so host
|
|
192
|
+
registries can verify the intended initial state without treating this public
|
|
193
|
+
metadata package as a runtime flag evaluator.
|
|
194
|
+
|
|
189
195
|
The global AI-plugin manifest deliberately retains its existing
|
|
190
196
|
`openid email profile mcp:access` base scopes. The feedback scopes remain
|
|
191
197
|
action metadata until the site OAuth issuer, protected-resource metadata, and
|
|
@@ -205,22 +211,36 @@ exact `packetType`-discriminated union: the bug variant alone permits
|
|
|
205
211
|
Consumers must reject unknown or cross-packet fields before flattening the
|
|
206
212
|
selected variant into route query parameters.
|
|
207
213
|
|
|
214
|
+
The reconstruction action is an exact point read by lowercase UUIDv4 bug
|
|
215
|
+
packet ID. It returns only the canonical
|
|
216
|
+
`FeedbackGameReconstructionManifestSchema`: opaque content IDs, server-owned
|
|
217
|
+
creation and expiry times, an allowlisted curated public asset-set ID, a
|
|
218
|
+
translation notice key, and consented coarse renderer diagnostics. It has no
|
|
219
|
+
list, search, cursor, free-form query, or mutation variant. The manifest is
|
|
220
|
+
clearly labelled as a server-side reconstruction and is not a literal
|
|
221
|
+
screenshot. It contains no captured pixels, binary image, narrative, DOM,
|
|
222
|
+
reporter/control identity, request telemetry, URL, storage locator, arbitrary
|
|
223
|
+
asset, or direct Blob reference. Hosts must return the same not-found response
|
|
224
|
+
for absent, expired, and unavailable manifests to avoid adding a richer
|
|
225
|
+
existence oracle.
|
|
226
|
+
|
|
208
227
|
This package directly consumes the published `@plasius/schema ^1.4.0`
|
|
209
228
|
dependency. Packet and report descriptors bind their schema sources to its
|
|
210
229
|
feedback contract version `1.0.0`, and their vocabularies and schema identity
|
|
211
230
|
metadata are imported from that package at runtime. Entries are discriminated
|
|
212
231
|
by the canonical
|
|
213
232
|
`feedback-bug-packet`/`feedback-review-packet` identities; hourly bug-health,
|
|
214
|
-
daily satisfaction, advisories, diagnostics,
|
|
215
|
-
the same closed kebab-case vocabulary and
|
|
216
|
-
canonical schemas. The registry-generated
|
|
217
|
-
source, file, and Git dependency pins
|
|
233
|
+
daily satisfaction, advisories, diagnostics, processor checkpoints, and safe
|
|
234
|
+
reconstruction manifests use the same closed kebab-case vocabulary and
|
|
235
|
+
lowercase UUIDv4 constraints as the canonical schemas. The registry-generated
|
|
236
|
+
lock resolves the package directly; source, file, and Git dependency pins
|
|
237
|
+
remain prohibited.
|
|
218
238
|
|
|
219
239
|
The contracts explicitly exclude account, reporter, network, session,
|
|
220
240
|
user-agent, locale, client-time, referrer, coordinate, dimension, and adapter
|
|
221
241
|
identifiers; credentials and secrets; financial and government identifiers;
|
|
222
|
-
filenames and raw warnings; narrative, binary images,
|
|
223
|
-
URLs, unrestricted scans, and mutations.
|
|
242
|
+
filenames and raw warnings; narrative, binary images, client pixels, request
|
|
243
|
+
telemetry, Blob references, raw URLs, unrestricted scans, and mutations.
|
|
224
244
|
Narrative-derived data is limited to closed classifications; it cannot include
|
|
225
245
|
summaries, quotations, embeddings, hashes, matched values, or model traces.
|
|
226
246
|
Renderer diagnostics are bounded structured facts only and never
|
package/dist/index.cjs
CHANGED
|
@@ -41,6 +41,7 @@ __export(index_exports, {
|
|
|
41
41
|
MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS: () => MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS,
|
|
42
42
|
MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS: () => MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS,
|
|
43
43
|
MCP_ADMIN_FEEDBACK_FLAG_ID: () => MCP_ADMIN_FEEDBACK_FLAG_ID,
|
|
44
|
+
MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED: () => MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED,
|
|
44
45
|
MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH: () => MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH,
|
|
45
46
|
MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE: () => MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE,
|
|
46
47
|
MCP_ADMIN_FEEDBACK_PACKET_TYPES: () => MCP_ADMIN_FEEDBACK_PACKET_TYPES,
|
|
@@ -141,6 +142,7 @@ var mcpAdminContractsEnGbTranslations = {
|
|
|
141
142
|
"mcpAdminContracts.action.listFeedbackAlerts.description": "List bounded deterministic feedback advisories using an opaque cursor.",
|
|
142
143
|
"mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.",
|
|
143
144
|
"mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.",
|
|
145
|
+
"mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.",
|
|
144
146
|
"mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.",
|
|
145
147
|
"mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.",
|
|
146
148
|
"mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.",
|
|
@@ -211,6 +213,7 @@ var mcpAdminContractDescriptionKeys = {
|
|
|
211
213
|
actionListFeedbackAlerts: "mcpAdminContracts.action.listFeedbackAlerts.description",
|
|
212
214
|
actionGetFeedbackFreshness: "mcpAdminContracts.action.getFeedbackFreshness.description",
|
|
213
215
|
actionListFeedbackStructuredEntries: "mcpAdminContracts.action.listFeedbackStructuredEntries.description",
|
|
216
|
+
actionGetFeedbackGameReconstruction: "mcpAdminContracts.action.getFeedbackGameReconstruction.description",
|
|
214
217
|
actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description",
|
|
215
218
|
actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description",
|
|
216
219
|
actionRequestAsset: "mcpAdminContracts.action.requestAsset.description",
|
|
@@ -256,7 +259,7 @@ function getMcpAdminContractDefaultTranslation(key) {
|
|
|
256
259
|
}
|
|
257
260
|
|
|
258
261
|
// src/index.ts
|
|
259
|
-
var MCP_ADMIN_CONTRACT_VERSION = "2026-08-
|
|
262
|
+
var MCP_ADMIN_CONTRACT_VERSION = "2026-08-26.v8";
|
|
260
263
|
var MCP_ADMIN_REGISTRY_SOURCE = "@plasius/mcp-admin-contracts";
|
|
261
264
|
var MCP_ADMIN_FOUNDATION_FLAG_ID = "mcp.admin.foundation.enabled";
|
|
262
265
|
var MCP_ACCESS_SCOPE = "mcp:access";
|
|
@@ -297,6 +300,7 @@ var MCP_ADMIN_MODEL_OAUTH_SCOPES = Object.freeze([
|
|
|
297
300
|
]);
|
|
298
301
|
var canonicalModelToolDefinitions = (0, import_asset_mcp.listModelMcpToolDefinitions)();
|
|
299
302
|
var MCP_ADMIN_FEEDBACK_FLAG_ID = "feedback.mcp.enabled";
|
|
303
|
+
var MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED = false;
|
|
300
304
|
var MCP_ADMIN_FEEDBACK_READ_CAPABILITY = "admin.feedback.read";
|
|
301
305
|
var MCP_ADMIN_BASE_OAUTH_SCOPE = MCP_ACCESS_SCOPE;
|
|
302
306
|
var MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE = MCP_ADMIN_FEEDBACK_READ_CAPABILITY;
|
|
@@ -346,12 +350,14 @@ var MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS = [
|
|
|
346
350
|
"matched-values",
|
|
347
351
|
"model-traces",
|
|
348
352
|
"binary-images",
|
|
353
|
+
"client-pixels",
|
|
349
354
|
"filenames",
|
|
350
355
|
"exact-coordinates",
|
|
351
356
|
"exact-dimensions",
|
|
352
357
|
"adapter-fingerprints",
|
|
353
358
|
"raw-warnings",
|
|
354
359
|
"blob-references",
|
|
360
|
+
"request-telemetry",
|
|
355
361
|
"raw-urls",
|
|
356
362
|
"unrestricted-scans",
|
|
357
363
|
"mutations"
|
|
@@ -364,6 +370,7 @@ var MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY = "economy.finance-operations.approve
|
|
|
364
370
|
var canonicalFeedbackSchemas = Object.freeze({
|
|
365
371
|
FeedbackBugPacketSchema: import_schema.FeedbackBugPacketSchema,
|
|
366
372
|
FeedbackReviewPacketSchema: import_schema.FeedbackReviewPacketSchema,
|
|
373
|
+
FeedbackGameReconstructionManifestSchema: import_schema.FeedbackGameReconstructionManifestSchema,
|
|
367
374
|
FeedbackHourlyBugReportSchema: import_schema.FeedbackHourlyBugReportSchema,
|
|
368
375
|
FeedbackDailySatisfactionReportSchema: import_schema.FeedbackDailySatisfactionReportSchema,
|
|
369
376
|
FeedbackProcessorCheckpointSchema: import_schema.FeedbackProcessorCheckpointSchema
|
|
@@ -1196,7 +1203,7 @@ var canonicalGameDiagnosticsVariantField = (surfaceId, provenanceContractId) =>
|
|
|
1196
1203
|
FEEDBACK_SCHEMA_GAME_ERROR_CODES.length
|
|
1197
1204
|
)
|
|
1198
1205
|
});
|
|
1199
|
-
var canonicalGameDiagnosticsField = discriminatedUnionField(
|
|
1206
|
+
var canonicalGameDiagnosticsField = (required) => discriminatedUnionField(
|
|
1200
1207
|
"Canonical `FeedbackGameDiagnostics`; its surface must equal the containing bug packet surface and it cannot express pixels, DOM, text, URLs, filenames, coordinates, or adapter fingerprints.",
|
|
1201
1208
|
"surfaceId",
|
|
1202
1209
|
[
|
|
@@ -1209,7 +1216,7 @@ var canonicalGameDiagnosticsField = discriminatedUnionField(
|
|
|
1209
1216
|
"gpu-demo.renderer-diagnostics.v1"
|
|
1210
1217
|
)
|
|
1211
1218
|
],
|
|
1212
|
-
{ required: false }
|
|
1219
|
+
required ? {} : { required: false }
|
|
1213
1220
|
);
|
|
1214
1221
|
var canonicalBugPacketField = feedbackClosedObjectField(
|
|
1215
1222
|
"Canonical identifier-free immutable `FeedbackBugPacket`.",
|
|
@@ -1230,7 +1237,7 @@ var canonicalBugPacketField = feedbackClosedObjectField(
|
|
|
1230
1237
|
releaseId: canonicalSafeIdField("Server-owned release identifier."),
|
|
1231
1238
|
buildId: canonicalSafeIdField("Server-owned build identifier."),
|
|
1232
1239
|
analysis: canonicalAnalysisProjectionField,
|
|
1233
|
-
gameDiagnostics: canonicalGameDiagnosticsField
|
|
1240
|
+
gameDiagnostics: canonicalGameDiagnosticsField(false)
|
|
1234
1241
|
}
|
|
1235
1242
|
);
|
|
1236
1243
|
var canonicalReviewPacketField = feedbackClosedObjectField(
|
|
@@ -1251,6 +1258,32 @@ var canonicalFeedbackPacketField = discriminatedUnionField(
|
|
|
1251
1258
|
"type",
|
|
1252
1259
|
[canonicalBugPacketField, canonicalReviewPacketField]
|
|
1253
1260
|
);
|
|
1261
|
+
var canonicalGameReconstructionManifestField = feedbackClosedObjectField(
|
|
1262
|
+
"Canonical safe server-side reconstruction manifest. It is a labelled reconstruction from curated public assets and consented coarse diagnostics, not a literal screenshot.",
|
|
1263
|
+
{
|
|
1264
|
+
...canonicalSchemaIdentityFields("feedback-game-reconstruction-manifest"),
|
|
1265
|
+
reconstructionId: canonicalUuidV4Field(
|
|
1266
|
+
"Opaque canonical reconstruction UUIDv4."
|
|
1267
|
+
),
|
|
1268
|
+
bugPacketId: canonicalUuidV4Field(
|
|
1269
|
+
"Opaque canonical source bug-packet UUIDv4; it cannot identify a reporter."
|
|
1270
|
+
),
|
|
1271
|
+
createdAt: canonicalDateTimeField(
|
|
1272
|
+
"Server-owned reconstruction creation time."
|
|
1273
|
+
),
|
|
1274
|
+
expiresAt: canonicalDateTimeField(
|
|
1275
|
+
"Server-owned expiry, strictly after creation and no more than 30 days later."
|
|
1276
|
+
),
|
|
1277
|
+
curatedAssetSetId: canonicalSafeIdField(
|
|
1278
|
+
"Allowlisted curated public asset-set identifier; never a path, URL, or Blob reference."
|
|
1279
|
+
),
|
|
1280
|
+
noticeKey: canonicalSafeIdField(
|
|
1281
|
+
"Stable translation key labelling this as a reconstruction rather than a screenshot.",
|
|
1282
|
+
160
|
|
1283
|
+
),
|
|
1284
|
+
diagnostics: canonicalGameDiagnosticsField(true)
|
|
1285
|
+
}
|
|
1286
|
+
);
|
|
1254
1287
|
var canonicalDistributionField = (description, idField, maximum) => arrayOfField(
|
|
1255
1288
|
`${description} Bucket identifiers are unique as required by the canonical schema.`,
|
|
1256
1289
|
"FeedbackCountBucket",
|
|
@@ -1854,6 +1887,38 @@ var MCP_ADMIN_FEEDBACK_ACTIONS = deepFreeze([
|
|
|
1854
1887
|
{ maxItems: MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE }
|
|
1855
1888
|
)
|
|
1856
1889
|
}
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
name: "getFeedbackGameReconstruction",
|
|
1893
|
+
...translatedDescription(
|
|
1894
|
+
mcpAdminContractDescriptionKeys.actionGetFeedbackGameReconstruction
|
|
1895
|
+
),
|
|
1896
|
+
...feedbackDescriptorMetadata,
|
|
1897
|
+
schemaSource: feedbackSchemaSource(
|
|
1898
|
+
"FeedbackGameReconstructionManifestSchema"
|
|
1899
|
+
),
|
|
1900
|
+
execution: {
|
|
1901
|
+
method: "GET",
|
|
1902
|
+
path: "/api/admin/feedback/reconstructions/{bugPacketId}",
|
|
1903
|
+
source: "near-future-route",
|
|
1904
|
+
notes: [
|
|
1905
|
+
"Reads one schema-validated, clearly labelled server-side reconstruction manifest from consented coarse diagnostics and curated public assets; it is not a literal screenshot.",
|
|
1906
|
+
"Returns no binary image, client pixels, DOM, narrative, reporter or control identity, request telemetry, URL, arbitrary asset, direct Blob reference, or storage locator.",
|
|
1907
|
+
"The runtime must validate the exact lowercase UUIDv4 path value, enforce fail-closed rate limits and dedicated audit, and return one uniform not-found response for absent, expired, or unavailable manifests.",
|
|
1908
|
+
"This point-read contract has no list, scan, cursor, free-form query, or mutation operation."
|
|
1909
|
+
]
|
|
1910
|
+
},
|
|
1911
|
+
input: {
|
|
1912
|
+
bugPacketId: {
|
|
1913
|
+
...canonicalUuidV4Field(
|
|
1914
|
+
"Exact opaque bug-packet UUIDv4 for one approved reconstruction."
|
|
1915
|
+
),
|
|
1916
|
+
required: true
|
|
1917
|
+
}
|
|
1918
|
+
},
|
|
1919
|
+
output: {
|
|
1920
|
+
item: canonicalGameReconstructionManifestField
|
|
1921
|
+
}
|
|
1857
1922
|
}
|
|
1858
1923
|
]);
|
|
1859
1924
|
var MCP_ADMIN_ACTIONS = [
|
|
@@ -3942,6 +4007,7 @@ function normalizeOptionalString(value) {
|
|
|
3942
4007
|
MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS,
|
|
3943
4008
|
MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS,
|
|
3944
4009
|
MCP_ADMIN_FEEDBACK_FLAG_ID,
|
|
4010
|
+
MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED,
|
|
3945
4011
|
MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH,
|
|
3946
4012
|
MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE,
|
|
3947
4013
|
MCP_ADMIN_FEEDBACK_PACKET_TYPES,
|