@plasius/mcp-admin-contracts 0.5.0 → 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/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,
@@ -59,6 +60,11 @@ __export(index_exports, {
59
60
  MCP_ADMIN_FOUNDATION_ENV_VAR: () => MCP_ADMIN_FOUNDATION_ENV_VAR,
60
61
  MCP_ADMIN_FOUNDATION_FLAG_ID: () => MCP_ADMIN_FOUNDATION_FLAG_ID,
61
62
  MCP_ADMIN_LIVEOPS_FLAG_ID: () => MCP_ADMIN_LIVEOPS_FLAG_ID,
63
+ MCP_ADMIN_MODEL_CAPABILITIES: () => MCP_ADMIN_MODEL_CAPABILITIES,
64
+ MCP_ADMIN_MODEL_OAUTH_SCOPES: () => MCP_ADMIN_MODEL_OAUTH_SCOPES,
65
+ MCP_ADMIN_MODEL_REGISTRY_SOURCE: () => MCP_ADMIN_MODEL_REGISTRY_SOURCE,
66
+ MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION: () => MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION,
67
+ MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION: () => MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION,
62
68
  MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR: () => MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR,
63
69
  MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID: () => MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID,
64
70
  MCP_ADMIN_REGISTRY_SOURCE: () => MCP_ADMIN_REGISTRY_SOURCE,
@@ -72,6 +78,7 @@ __export(index_exports, {
72
78
  MCP_ADMIN_USER_AGGREGATION_DIMENSIONS: () => MCP_ADMIN_USER_AGGREGATION_DIMENSIONS,
73
79
  MCP_ADMIN_USER_AGGREGATION_METRICS: () => MCP_ADMIN_USER_AGGREGATION_METRICS,
74
80
  MCP_ADMIN_USER_AGGREGATION_PRESETS: () => MCP_ADMIN_USER_AGGREGATION_PRESETS,
81
+ MCP_ASSET_CATALOG_CONFIRM_CAPABILITY: () => MCP_ASSET_CATALOG_CONFIRM_CAPABILITY,
75
82
  MCP_ASSET_CATALOG_REQUEST_CAPABILITY: () => MCP_ASSET_CATALOG_REQUEST_CAPABILITY,
76
83
  MCP_ASSET_CATALOG_REVIEW_CAPABILITY: () => MCP_ASSET_CATALOG_REVIEW_CAPABILITY,
77
84
  MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID: () => MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID,
@@ -92,12 +99,16 @@ __export(index_exports, {
92
99
  buildMcpSurfaceUrls: () => buildMcpSurfaceUrls,
93
100
  getMcpAdminContractDefaultTranslation: () => getMcpAdminContractDefaultTranslation,
94
101
  listMcpActionSummaries: () => listMcpActionSummaries,
102
+ listMcpModelResourceTemplates: () => listMcpModelResourceTemplates,
103
+ listMcpModelToolSummaries: () => listMcpModelToolSummaries,
95
104
  mcpAdminContractDescriptionKeys: () => mcpAdminContractDescriptionKeys,
96
105
  mcpAdminContractsEnGbTranslations: () => mcpAdminContractsEnGbTranslations,
97
106
  mcpAdminContractsTranslations: () => mcpAdminContractsTranslations
98
107
  });
99
108
  module.exports = __toCommonJS(index_exports);
100
109
  var import_schema = require("@plasius/schema");
110
+ var import_asset_contracts = require("@plasius/asset-contracts");
111
+ var import_asset_mcp = require("@plasius/asset-mcp");
101
112
 
102
113
  // src/translations/en-GB.ts
103
114
  var mcpAdminContractsEnGbTranslations = {
@@ -131,6 +142,7 @@ var mcpAdminContractsEnGbTranslations = {
131
142
  "mcpAdminContracts.action.listFeedbackAlerts.description": "List bounded deterministic feedback advisories using an opaque cursor.",
132
143
  "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.",
133
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.",
134
146
  "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.",
135
147
  "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.",
136
148
  "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.",
@@ -144,6 +156,14 @@ var mcpAdminContractsEnGbTranslations = {
144
156
  "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.",
145
157
  "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.",
146
158
  "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.",
159
+ "mcpAdminContracts.action.listModelSearchRankers.description": "List allowlisted, calibrated model-search rankers and their current readiness without selecting a substitute.",
160
+ "mcpAdminContracts.action.searchModelCatalog.description": "Search promoted model catalog versions using hard constraints and one exact calibrated ranker selection.",
161
+ "mcpAdminContracts.action.resolveModelRequest.description": "Search the catalog and idempotently create asynchronous provider or generator fallback work when needed.",
162
+ "mcpAdminContracts.action.getModelResolution.description": "Read an owned immutable model-resolution revision, progress, questions, and review evidence.",
163
+ "mcpAdminContracts.action.confirmModelCandidate.description": "Confirm one exact four-view candidate; low assurance additionally requires explicit semantic-risk acceptance.",
164
+ "mcpAdminContracts.action.retryModelResolution.description": "Create the next immutable request revision from bounded refinement answers and candidate exclusions.",
165
+ "mcpAdminContracts.action.cancelModelResolution.description": "Idempotently cancel unfinished work owned by the requester.",
166
+ "mcpAdminContracts.action.rebuildModelCatalogIndex.description": "Run an operator-only idempotent full, backfill, or repair rebuild of the promoted model catalog index.",
147
167
  "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.",
148
168
  "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.",
149
169
  "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.",
@@ -193,6 +213,7 @@ var mcpAdminContractDescriptionKeys = {
193
213
  actionListFeedbackAlerts: "mcpAdminContracts.action.listFeedbackAlerts.description",
194
214
  actionGetFeedbackFreshness: "mcpAdminContracts.action.getFeedbackFreshness.description",
195
215
  actionListFeedbackStructuredEntries: "mcpAdminContracts.action.listFeedbackStructuredEntries.description",
216
+ actionGetFeedbackGameReconstruction: "mcpAdminContracts.action.getFeedbackGameReconstruction.description",
196
217
  actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description",
197
218
  actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description",
198
219
  actionRequestAsset: "mcpAdminContracts.action.requestAsset.description",
@@ -206,6 +227,14 @@ var mcpAdminContractDescriptionKeys = {
206
227
  actionPromoteAsset: "mcpAdminContracts.action.promoteAsset.description",
207
228
  actionRollbackAsset: "mcpAdminContracts.action.rollbackAsset.description",
208
229
  actionGetAssetJobStatus: "mcpAdminContracts.action.getAssetJobStatus.description",
230
+ actionListModelSearchRankers: "mcpAdminContracts.action.listModelSearchRankers.description",
231
+ actionSearchModelCatalog: "mcpAdminContracts.action.searchModelCatalog.description",
232
+ actionResolveModelRequest: "mcpAdminContracts.action.resolveModelRequest.description",
233
+ actionGetModelResolution: "mcpAdminContracts.action.getModelResolution.description",
234
+ actionConfirmModelCandidate: "mcpAdminContracts.action.confirmModelCandidate.description",
235
+ actionRetryModelResolution: "mcpAdminContracts.action.retryModelResolution.description",
236
+ actionCancelModelResolution: "mcpAdminContracts.action.cancelModelResolution.description",
237
+ actionRebuildModelCatalogIndex: "mcpAdminContracts.action.rebuildModelCatalogIndex.description",
209
238
  actionGetUserTokenWallet: "mcpAdminContracts.action.getUserTokenWallet.description",
210
239
  actionListUserTokenActivity: "mcpAdminContracts.action.listUserTokenActivity.description",
211
240
  actionListTokenAdjustments: "mcpAdminContracts.action.listTokenAdjustments.description",
@@ -230,7 +259,7 @@ function getMcpAdminContractDefaultTranslation(key) {
230
259
  }
231
260
 
232
261
  // src/index.ts
233
- var MCP_ADMIN_CONTRACT_VERSION = "2026-08-11.v6";
262
+ var MCP_ADMIN_CONTRACT_VERSION = "2026-08-26.v8";
234
263
  var MCP_ADMIN_REGISTRY_SOURCE = "@plasius/mcp-admin-contracts";
235
264
  var MCP_ADMIN_FOUNDATION_FLAG_ID = "mcp.admin.foundation.enabled";
236
265
  var MCP_ACCESS_SCOPE = "mcp:access";
@@ -246,11 +275,32 @@ var MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID = "mcp.admin.production-readiness.ena
246
275
  var MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR = "MCP_ADMIN_PRODUCTION_READINESS_ENABLED";
247
276
  var MCP_ASSET_PIPELINE_FLAG_ID = "asset.pipeline.unified-ai-assets.enabled";
248
277
  var MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID = "asset.pipeline.external-model-harvest.enabled";
249
- var MCP_ASSET_CATALOG_REQUEST_CAPABILITY = "asset.catalog.request";
250
- var MCP_ASSET_PIPELINE_MANAGE_CAPABILITY = "asset.pipeline.mcp.manage";
251
- var MCP_ASSET_SOURCE_MANAGE_CAPABILITY = "asset.source.manage";
252
- var MCP_ASSET_CATALOG_REVIEW_CAPABILITY = "asset.catalog.review";
278
+ var MCP_ASSET_CATALOG_REQUEST_CAPABILITY = import_asset_mcp.MODEL_MCP_CATALOG_REQUEST_CAPABILITY;
279
+ var MCP_ASSET_CATALOG_CONFIRM_CAPABILITY = import_asset_mcp.MODEL_MCP_CATALOG_CONFIRM_CAPABILITY;
280
+ var MCP_ASSET_PIPELINE_MANAGE_CAPABILITY = import_asset_mcp.MODEL_MCP_PIPELINE_MANAGE_CAPABILITY;
281
+ var MCP_ASSET_SOURCE_MANAGE_CAPABILITY = import_asset_mcp.MODEL_MCP_SOURCE_MANAGE_CAPABILITY;
282
+ var MCP_ASSET_CATALOG_REVIEW_CAPABILITY = import_asset_mcp.MODEL_MCP_CATALOG_REVIEW_CAPABILITY;
283
+ var MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION = import_asset_mcp.MODEL_MCP_CONTRACT_VERSION;
284
+ var MCP_ADMIN_MODEL_REGISTRY_SOURCE = import_asset_mcp.ASSET_MCP_PACKAGE;
285
+ var MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION = import_asset_contracts.MODEL_RESOLUTION_CONTRACT_VERSION;
286
+ var MCP_ADMIN_MODEL_CAPABILITIES = Object.freeze({
287
+ catalogRequest: import_asset_mcp.MODEL_MCP_CATALOG_REQUEST_CAPABILITY,
288
+ catalogConfirm: import_asset_mcp.MODEL_MCP_CATALOG_CONFIRM_CAPABILITY,
289
+ catalogReview: import_asset_mcp.MODEL_MCP_CATALOG_REVIEW_CAPABILITY,
290
+ sourceManage: import_asset_mcp.MODEL_MCP_SOURCE_MANAGE_CAPABILITY,
291
+ pipelineManage: import_asset_mcp.MODEL_MCP_PIPELINE_MANAGE_CAPABILITY
292
+ });
293
+ var MCP_ADMIN_MODEL_OAUTH_SCOPES = Object.freeze([
294
+ MCP_ACCESS_SCOPE,
295
+ import_asset_mcp.MODEL_MCP_CATALOG_REQUEST_CAPABILITY,
296
+ import_asset_mcp.MODEL_MCP_CATALOG_CONFIRM_CAPABILITY,
297
+ import_asset_mcp.MODEL_MCP_CATALOG_REVIEW_CAPABILITY,
298
+ import_asset_mcp.MODEL_MCP_SOURCE_MANAGE_CAPABILITY,
299
+ import_asset_mcp.MODEL_MCP_PIPELINE_MANAGE_CAPABILITY
300
+ ]);
301
+ var canonicalModelToolDefinitions = (0, import_asset_mcp.listModelMcpToolDefinitions)();
253
302
  var MCP_ADMIN_FEEDBACK_FLAG_ID = "feedback.mcp.enabled";
303
+ var MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED = false;
254
304
  var MCP_ADMIN_FEEDBACK_READ_CAPABILITY = "admin.feedback.read";
255
305
  var MCP_ADMIN_BASE_OAUTH_SCOPE = MCP_ACCESS_SCOPE;
256
306
  var MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE = MCP_ADMIN_FEEDBACK_READ_CAPABILITY;
@@ -300,12 +350,14 @@ var MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS = [
300
350
  "matched-values",
301
351
  "model-traces",
302
352
  "binary-images",
353
+ "client-pixels",
303
354
  "filenames",
304
355
  "exact-coordinates",
305
356
  "exact-dimensions",
306
357
  "adapter-fingerprints",
307
358
  "raw-warnings",
308
359
  "blob-references",
360
+ "request-telemetry",
309
361
  "raw-urls",
310
362
  "unrestricted-scans",
311
363
  "mutations"
@@ -318,6 +370,7 @@ var MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY = "economy.finance-operations.approve
318
370
  var canonicalFeedbackSchemas = Object.freeze({
319
371
  FeedbackBugPacketSchema: import_schema.FeedbackBugPacketSchema,
320
372
  FeedbackReviewPacketSchema: import_schema.FeedbackReviewPacketSchema,
373
+ FeedbackGameReconstructionManifestSchema: import_schema.FeedbackGameReconstructionManifestSchema,
321
374
  FeedbackHourlyBugReportSchema: import_schema.FeedbackHourlyBugReportSchema,
322
375
  FeedbackDailySatisfactionReportSchema: import_schema.FeedbackDailySatisfactionReportSchema,
323
376
  FeedbackProcessorCheckpointSchema: import_schema.FeedbackProcessorCheckpointSchema
@@ -1150,7 +1203,7 @@ var canonicalGameDiagnosticsVariantField = (surfaceId, provenanceContractId) =>
1150
1203
  FEEDBACK_SCHEMA_GAME_ERROR_CODES.length
1151
1204
  )
1152
1205
  });
1153
- var canonicalGameDiagnosticsField = discriminatedUnionField(
1206
+ var canonicalGameDiagnosticsField = (required) => discriminatedUnionField(
1154
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.",
1155
1208
  "surfaceId",
1156
1209
  [
@@ -1163,7 +1216,7 @@ var canonicalGameDiagnosticsField = discriminatedUnionField(
1163
1216
  "gpu-demo.renderer-diagnostics.v1"
1164
1217
  )
1165
1218
  ],
1166
- { required: false }
1219
+ required ? {} : { required: false }
1167
1220
  );
1168
1221
  var canonicalBugPacketField = feedbackClosedObjectField(
1169
1222
  "Canonical identifier-free immutable `FeedbackBugPacket`.",
@@ -1184,7 +1237,7 @@ var canonicalBugPacketField = feedbackClosedObjectField(
1184
1237
  releaseId: canonicalSafeIdField("Server-owned release identifier."),
1185
1238
  buildId: canonicalSafeIdField("Server-owned build identifier."),
1186
1239
  analysis: canonicalAnalysisProjectionField,
1187
- gameDiagnostics: canonicalGameDiagnosticsField
1240
+ gameDiagnostics: canonicalGameDiagnosticsField(false)
1188
1241
  }
1189
1242
  );
1190
1243
  var canonicalReviewPacketField = feedbackClosedObjectField(
@@ -1205,6 +1258,32 @@ var canonicalFeedbackPacketField = discriminatedUnionField(
1205
1258
  "type",
1206
1259
  [canonicalBugPacketField, canonicalReviewPacketField]
1207
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
+ );
1208
1287
  var canonicalDistributionField = (description, idField, maximum) => arrayOfField(
1209
1288
  `${description} Bucket identifiers are unique as required by the canonical schema.`,
1210
1289
  "FeedbackCountBucket",
@@ -1808,6 +1887,38 @@ var MCP_ADMIN_FEEDBACK_ACTIONS = deepFreeze([
1808
1887
  { maxItems: MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE }
1809
1888
  )
1810
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
+ }
1811
1922
  }
1812
1923
  ]);
1813
1924
  var MCP_ADMIN_ACTIONS = [
@@ -3493,6 +3604,100 @@ var MCP_ADMIN_ACTIONS = [
3493
3604
  },
3494
3605
  ...MCP_ADMIN_FEEDBACK_ACTIONS
3495
3606
  ];
3607
+ var modelDescriptionKeys = {
3608
+ list_model_search_rankers: mcpAdminContractDescriptionKeys.actionListModelSearchRankers,
3609
+ search_model_catalog: mcpAdminContractDescriptionKeys.actionSearchModelCatalog,
3610
+ resolve_model_request: mcpAdminContractDescriptionKeys.actionResolveModelRequest,
3611
+ get_model_resolution: mcpAdminContractDescriptionKeys.actionGetModelResolution,
3612
+ confirm_model_candidate: mcpAdminContractDescriptionKeys.actionConfirmModelCandidate,
3613
+ retry_model_resolution: mcpAdminContractDescriptionKeys.actionRetryModelResolution,
3614
+ cancel_model_resolution: mcpAdminContractDescriptionKeys.actionCancelModelResolution,
3615
+ rebuild_model_catalog_index: mcpAdminContractDescriptionKeys.actionRebuildModelCatalogIndex
3616
+ };
3617
+ var modelVerificationNotes = deepFreeze({
3618
+ list_model_search_rankers: [
3619
+ "Validate the returned ranker list and no-substitution policy against the canonical output schema."
3620
+ ],
3621
+ search_model_catalog: [
3622
+ "Validate ranked catalog evidence and any four-view image pack against the canonical structured output schema."
3623
+ ],
3624
+ resolve_model_request: [
3625
+ "Use get_model_resolution with the returned resolution identifier to verify durable progress and candidate evidence."
3626
+ ],
3627
+ get_model_resolution: [
3628
+ "Validate the owned immutable revision, state, questions, and any four-view image pack against the canonical output schema."
3629
+ ],
3630
+ confirm_model_candidate: [
3631
+ "Use get_model_resolution to verify completion and the immutable final asset reference after confirmation."
3632
+ ],
3633
+ retry_model_resolution: [
3634
+ "Use get_model_resolution to verify the newly created immutable request revision and excluded candidates."
3635
+ ],
3636
+ cancel_model_resolution: [
3637
+ "Use get_model_resolution to verify that unfinished requester-owned work reached the cancelled state."
3638
+ ],
3639
+ rebuild_model_catalog_index: [
3640
+ "Validate the idempotent operation identifier and state against the canonical output schema and operator audit record."
3641
+ ]
3642
+ });
3643
+ var modelToolExecution = (toolName) => ({
3644
+ protocol: "json-rpc-2.0",
3645
+ method: "POST",
3646
+ path: "/api/mcp",
3647
+ rpcMethod: "tools/call",
3648
+ toolName
3649
+ });
3650
+ var modelToolTranslation = (definition) => {
3651
+ const translation = translatedDescription(modelDescriptionKeys[definition.name]);
3652
+ if (translation.descriptionDefault !== definition.description) {
3653
+ throw new TypeError("Canonical model tool description translation mismatch.");
3654
+ }
3655
+ return translation;
3656
+ };
3657
+ function listMcpModelToolSummaries() {
3658
+ return canonicalModelToolDefinitions.map((definition) => {
3659
+ const { inputSchema: _inputSchema, outputSchema: _outputSchema, ...summary } = definition;
3660
+ return {
3661
+ ...summary,
3662
+ ...modelToolTranslation(definition),
3663
+ availability: "near-future",
3664
+ execution: modelToolExecution(definition.name),
3665
+ verificationNotes: modelVerificationNotes[definition.name]
3666
+ };
3667
+ });
3668
+ }
3669
+ function listMcpModelResourceTemplates() {
3670
+ return (0, import_asset_mcp.listModelMcpResourceTemplates)();
3671
+ }
3672
+ var buildMcpModelToolSchemaDescriptors = () => Object.fromEntries(
3673
+ canonicalModelToolDefinitions.map((definition) => [
3674
+ definition.name,
3675
+ {
3676
+ ...definition,
3677
+ ...modelToolTranslation(definition),
3678
+ availability: "near-future",
3679
+ execution: modelToolExecution(definition.name),
3680
+ verificationNotes: modelVerificationNotes[definition.name]
3681
+ }
3682
+ ])
3683
+ );
3684
+ var buildMcpModelResolutionContext = () => ({
3685
+ toolContractVersion: import_asset_mcp.MODEL_MCP_CONTRACT_VERSION,
3686
+ sourceOfTruth: import_asset_mcp.ASSET_MCP_PACKAGE,
3687
+ resolutionContractVersion: import_asset_contracts.MODEL_RESOLUTION_CONTRACT_VERSION,
3688
+ endpoint: "/api/mcp",
3689
+ protocol: "json-rpc-2.0",
3690
+ rpcMethod: "tools/call",
3691
+ requiredFeatureFlag: import_asset_mcp.MODEL_MCP_UNIFIED_FEATURE_FLAG_ID,
3692
+ conditionalFeatureFlags: [
3693
+ import_asset_mcp.MODEL_MCP_EXTERNAL_HARVEST_FEATURE_FLAG_ID,
3694
+ import_asset_mcp.MODEL_MCP_GENERATION_FEATURE_FLAG_ID
3695
+ ],
3696
+ tools: [...import_asset_mcp.MODEL_MCP_TOOL_NAMES],
3697
+ resourceTemplates: (0, import_asset_mcp.listModelMcpResourceTemplates)().map(
3698
+ ({ uriTemplate }) => uriTemplate
3699
+ )
3700
+ });
3496
3701
  function listMcpActionSummaries() {
3497
3702
  return MCP_ADMIN_ACTIONS.map((action) => ({
3498
3703
  name: action.name,
@@ -3511,7 +3716,7 @@ function listMcpActionSummaries() {
3511
3716
  access: action.access
3512
3717
  }));
3513
3718
  }
3514
- var MCP_ADMIN_CONTEXT_SHAPE = {
3719
+ var MCP_ADMIN_CONTEXT_SHAPE = deepFreeze({
3515
3720
  contractVersion: stringField("Versioned discovery contract identifier."),
3516
3721
  authenticatedUser: objectField("Authenticated admin session context.", {
3517
3722
  id: stringField("Authenticated user identifier."),
@@ -3537,6 +3742,44 @@ var MCP_ADMIN_CONTEXT_SHAPE = {
3537
3742
  )
3538
3743
  }),
3539
3744
  actionFamilies: arrayField("Approved action families grouped by rollout domain.", "McpActionFamily"),
3745
+ modelResolution: objectField(
3746
+ "Canonical model-resolution JSON-RPC discovery metadata.",
3747
+ {
3748
+ toolContractVersion: stringField(
3749
+ "Contract version imported from @plasius/asset-mcp.",
3750
+ { constValue: import_asset_mcp.MODEL_MCP_CONTRACT_VERSION }
3751
+ ),
3752
+ sourceOfTruth: stringField("Package that owns the canonical tool registry.", {
3753
+ constValue: import_asset_mcp.ASSET_MCP_PACKAGE
3754
+ }),
3755
+ resolutionContractVersion: stringField(
3756
+ "Resolution contract version imported from @plasius/asset-contracts.",
3757
+ { constValue: import_asset_contracts.MODEL_RESOLUTION_CONTRACT_VERSION }
3758
+ ),
3759
+ endpoint: stringField("Hosted MCP JSON-RPC endpoint.", {
3760
+ constValue: "/api/mcp"
3761
+ }),
3762
+ protocol: stringField("MCP transport protocol.", {
3763
+ constValue: "json-rpc-2.0"
3764
+ }),
3765
+ rpcMethod: stringField("JSON-RPC method used to execute a named tool.", {
3766
+ constValue: "tools/call"
3767
+ }),
3768
+ requiredFeatureFlag: stringField(
3769
+ "Parent rollout flag required for every model-resolution tool.",
3770
+ { constValue: import_asset_mcp.MODEL_MCP_UNIFIED_FEATURE_FLAG_ID }
3771
+ ),
3772
+ conditionalFeatureFlags: arrayField(
3773
+ "Provider and generator flags evaluated only when their fallback is attempted.",
3774
+ "string"
3775
+ ),
3776
+ tools: arrayField("Canonical snake_case model-resolution tool names.", "string"),
3777
+ resourceTemplates: arrayField(
3778
+ "Authenticated canonical mcp://models resource templates.",
3779
+ "string"
3780
+ )
3781
+ }
3782
+ ),
3540
3783
  extensionRules: objectField("Rules for extending the registry without changing the discovery shape.", {
3541
3784
  sourceOfTruth: stringField("Package that owns the approved MCP registry."),
3542
3785
  addOnlyWithinV1: booleanField("Whether v1 additions must be additive."),
@@ -3544,7 +3787,7 @@ var MCP_ADMIN_CONTEXT_SHAPE = {
3544
3787
  singleResourceMutations: booleanField("Whether mutations must target one resource at a time."),
3545
3788
  notes: arrayField("Extension notes for future MCP tool families.", "string")
3546
3789
  })
3547
- };
3790
+ });
3548
3791
  var MCP_ADMIN_EXTENSION_RULES = {
3549
3792
  sourceOfTruth: MCP_ADMIN_REGISTRY_SOURCE,
3550
3793
  addOnlyWithinV1: true,
@@ -3600,7 +3843,10 @@ function buildMcpDiscoveryResponse() {
3600
3843
  return {
3601
3844
  contractVersion: MCP_ADMIN_CONTRACT_VERSION,
3602
3845
  sourceOfTruth: MCP_ADMIN_REGISTRY_SOURCE,
3603
- actions: listMcpActionSummaries()
3846
+ actions: listMcpActionSummaries(),
3847
+ modelTools: listMcpModelToolSummaries(),
3848
+ modelResources: listMcpModelResourceTemplates(),
3849
+ modelSourceOfTruth: import_asset_mcp.ASSET_MCP_PACKAGE
3604
3850
  };
3605
3851
  }
3606
3852
  function buildMcpSchemaResponse() {
@@ -3629,7 +3875,10 @@ function buildMcpSchemaResponse() {
3629
3875
  sourceOfTruth: MCP_ADMIN_REGISTRY_SOURCE,
3630
3876
  actions,
3631
3877
  contextShape: MCP_ADMIN_CONTEXT_SHAPE,
3632
- extensionRules: MCP_ADMIN_EXTENSION_RULES
3878
+ extensionRules: MCP_ADMIN_EXTENSION_RULES,
3879
+ modelTools: buildMcpModelToolSchemaDescriptors(),
3880
+ modelResources: listMcpModelResourceTemplates(),
3881
+ modelSourceOfTruth: import_asset_mcp.ASSET_MCP_PACKAGE
3633
3882
  };
3634
3883
  }
3635
3884
  function buildMcpContextResponse(options) {
@@ -3639,7 +3888,8 @@ function buildMcpContextResponse(options) {
3639
3888
  surface: buildMcpSurfaceUrls(options.origin),
3640
3889
  rollout: options.rollout,
3641
3890
  actionFamilies: buildMcpActionFamilies(),
3642
- extensionRules: MCP_ADMIN_EXTENSION_RULES
3891
+ extensionRules: MCP_ADMIN_EXTENSION_RULES,
3892
+ modelResolution: buildMcpModelResolutionContext()
3643
3893
  };
3644
3894
  }
3645
3895
  function buildMcpActionFamilies() {
@@ -3757,6 +4007,7 @@ function normalizeOptionalString(value) {
3757
4007
  MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS,
3758
4008
  MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS,
3759
4009
  MCP_ADMIN_FEEDBACK_FLAG_ID,
4010
+ MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED,
3760
4011
  MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH,
3761
4012
  MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE,
3762
4013
  MCP_ADMIN_FEEDBACK_PACKET_TYPES,
@@ -3775,6 +4026,11 @@ function normalizeOptionalString(value) {
3775
4026
  MCP_ADMIN_FOUNDATION_ENV_VAR,
3776
4027
  MCP_ADMIN_FOUNDATION_FLAG_ID,
3777
4028
  MCP_ADMIN_LIVEOPS_FLAG_ID,
4029
+ MCP_ADMIN_MODEL_CAPABILITIES,
4030
+ MCP_ADMIN_MODEL_OAUTH_SCOPES,
4031
+ MCP_ADMIN_MODEL_REGISTRY_SOURCE,
4032
+ MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION,
4033
+ MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION,
3778
4034
  MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR,
3779
4035
  MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID,
3780
4036
  MCP_ADMIN_REGISTRY_SOURCE,
@@ -3788,6 +4044,7 @@ function normalizeOptionalString(value) {
3788
4044
  MCP_ADMIN_USER_AGGREGATION_DIMENSIONS,
3789
4045
  MCP_ADMIN_USER_AGGREGATION_METRICS,
3790
4046
  MCP_ADMIN_USER_AGGREGATION_PRESETS,
4047
+ MCP_ASSET_CATALOG_CONFIRM_CAPABILITY,
3791
4048
  MCP_ASSET_CATALOG_REQUEST_CAPABILITY,
3792
4049
  MCP_ASSET_CATALOG_REVIEW_CAPABILITY,
3793
4050
  MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID,
@@ -3808,6 +4065,8 @@ function normalizeOptionalString(value) {
3808
4065
  buildMcpSurfaceUrls,
3809
4066
  getMcpAdminContractDefaultTranslation,
3810
4067
  listMcpActionSummaries,
4068
+ listMcpModelResourceTemplates,
4069
+ listMcpModelToolSummaries,
3811
4070
  mcpAdminContractDescriptionKeys,
3812
4071
  mcpAdminContractsEnGbTranslations,
3813
4072
  mcpAdminContractsTranslations