@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/dist/index.d.ts CHANGED
@@ -1,6 +1,9 @@
1
+ import { MODEL_RESOLUTION_CONTRACT_VERSION } from '@plasius/asset-contracts';
2
+ import { MODEL_MCP_CONTRACT_VERSION, ASSET_MCP_PACKAGE, MODEL_MCP_UNIFIED_FEATURE_FLAG_ID, MODEL_MCP_EXTERNAL_HARVEST_FEATURE_FLAG_ID, MODEL_MCP_GENERATION_FEATURE_FLAG_ID, ModelMcpToolName, ModelMcpToolDefinition, ModelMcpResourceTemplate } from '@plasius/asset-mcp';
3
+
1
4
  declare const mcpAdminContractsEnGbTranslations: {
2
- readonly "mcpAdminContracts.manifest.descriptionForModel": "OAuth-protected MCP discovery manifest for the Plasius admin control plane covering feature flags, capabilities, analytics, pseudonymous Token finance reads, and audit-backed operations.";
3
- readonly "mcpAdminContracts.manifest.description": "Authenticated admin MCP discovery for the Plasius feature flag, capability, analytics, pseudonymous Token reporting, and audit control plane.";
5
+ readonly "mcpAdminContracts.manifest.descriptionForModel": "OAuth-protected MCP discovery manifest for the Plasius admin control plane covering feature flags, capabilities, analytics, privacy-safe feedback intelligence, pseudonymous Token finance reads, and audit-backed operations.";
6
+ readonly "mcpAdminContracts.manifest.description": "Authenticated admin MCP discovery for the Plasius feature flag, capability, analytics, privacy-safe feedback intelligence, pseudonymous Token reporting, and audit control plane.";
4
7
  readonly "mcpAdminContracts.action.listFeatureFlags.description": "List existing feature flags from the admin rollout control plane.";
5
8
  readonly "mcpAdminContracts.action.getFeatureFlag.description": "Fetch one feature flag by stable key.";
6
9
  readonly "mcpAdminContracts.action.updateFeatureFlag.description": "Patch an existing feature flag without bypassing the current admin update semantics.";
@@ -24,6 +27,11 @@ declare const mcpAdminContractsEnGbTranslations: {
24
27
  readonly "mcpAdminContracts.action.getAdminTokenEconomyOverview.description": "Read the identifier-free global Token balance, lifetime totals, wallet counts, and authoritative projection freshness.";
25
28
  readonly "mcpAdminContracts.action.listAdminTokenWalletBalances.description": "List bounded pseudonymous Token wallet balances without exposing account, payment, provider, or raw wallet identifiers.";
26
29
  readonly "mcpAdminContracts.action.getAdminTokenTrends.description": "Read privacy-suppressed Token acquisition and usage trends with explainable advisory anomaly indicators.";
30
+ readonly "mcpAdminContracts.action.getFeedbackBugHealth.description": "Read a bounded immutable hourly bug-health materialisation.";
31
+ readonly "mcpAdminContracts.action.getFeedbackSatisfaction.description": "Read a bounded immutable daily satisfaction materialisation.";
32
+ readonly "mcpAdminContracts.action.listFeedbackAlerts.description": "List bounded deterministic feedback advisories using an opaque cursor.";
33
+ readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
34
+ readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
27
35
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
28
36
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
29
37
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -37,6 +45,14 @@ declare const mcpAdminContractsEnGbTranslations: {
37
45
  readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
38
46
  readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
39
47
  readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
48
+ readonly "mcpAdminContracts.action.listModelSearchRankers.description": "List allowlisted, calibrated model-search rankers and their current readiness without selecting a substitute.";
49
+ readonly "mcpAdminContracts.action.searchModelCatalog.description": "Search promoted model catalog versions using hard constraints and one exact calibrated ranker selection.";
50
+ readonly "mcpAdminContracts.action.resolveModelRequest.description": "Search the catalog and idempotently create asynchronous provider or generator fallback work when needed.";
51
+ readonly "mcpAdminContracts.action.getModelResolution.description": "Read an owned immutable model-resolution revision, progress, questions, and review evidence.";
52
+ readonly "mcpAdminContracts.action.confirmModelCandidate.description": "Confirm one exact four-view candidate; low assurance additionally requires explicit semantic-risk acceptance.";
53
+ readonly "mcpAdminContracts.action.retryModelResolution.description": "Create the next immutable request revision from bounded refinement answers and candidate exclusions.";
54
+ readonly "mcpAdminContracts.action.cancelModelResolution.description": "Idempotently cancel unfinished work owned by the requester.";
55
+ readonly "mcpAdminContracts.action.rebuildModelCatalogIndex.description": "Run an operator-only idempotent full, backfill, or repair rebuild of the promoted model catalog index.";
40
56
  readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
41
57
  readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
42
58
  readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
@@ -80,6 +96,11 @@ declare const mcpAdminContractDescriptionKeys: {
80
96
  readonly actionGetAdminTokenEconomyOverview: "mcpAdminContracts.action.getAdminTokenEconomyOverview.description";
81
97
  readonly actionListAdminTokenWalletBalances: "mcpAdminContracts.action.listAdminTokenWalletBalances.description";
82
98
  readonly actionGetAdminTokenTrends: "mcpAdminContracts.action.getAdminTokenTrends.description";
99
+ readonly actionGetFeedbackBugHealth: "mcpAdminContracts.action.getFeedbackBugHealth.description";
100
+ readonly actionGetFeedbackSatisfaction: "mcpAdminContracts.action.getFeedbackSatisfaction.description";
101
+ readonly actionListFeedbackAlerts: "mcpAdminContracts.action.listFeedbackAlerts.description";
102
+ readonly actionGetFeedbackFreshness: "mcpAdminContracts.action.getFeedbackFreshness.description";
103
+ readonly actionListFeedbackStructuredEntries: "mcpAdminContracts.action.listFeedbackStructuredEntries.description";
83
104
  readonly actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description";
84
105
  readonly actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description";
85
106
  readonly actionRequestAsset: "mcpAdminContracts.action.requestAsset.description";
@@ -93,6 +114,14 @@ declare const mcpAdminContractDescriptionKeys: {
93
114
  readonly actionPromoteAsset: "mcpAdminContracts.action.promoteAsset.description";
94
115
  readonly actionRollbackAsset: "mcpAdminContracts.action.rollbackAsset.description";
95
116
  readonly actionGetAssetJobStatus: "mcpAdminContracts.action.getAssetJobStatus.description";
117
+ readonly actionListModelSearchRankers: "mcpAdminContracts.action.listModelSearchRankers.description";
118
+ readonly actionSearchModelCatalog: "mcpAdminContracts.action.searchModelCatalog.description";
119
+ readonly actionResolveModelRequest: "mcpAdminContracts.action.resolveModelRequest.description";
120
+ readonly actionGetModelResolution: "mcpAdminContracts.action.getModelResolution.description";
121
+ readonly actionConfirmModelCandidate: "mcpAdminContracts.action.confirmModelCandidate.description";
122
+ readonly actionRetryModelResolution: "mcpAdminContracts.action.retryModelResolution.description";
123
+ readonly actionCancelModelResolution: "mcpAdminContracts.action.cancelModelResolution.description";
124
+ readonly actionRebuildModelCatalogIndex: "mcpAdminContracts.action.rebuildModelCatalogIndex.description";
96
125
  readonly actionGetUserTokenWallet: "mcpAdminContracts.action.getUserTokenWallet.description";
97
126
  readonly actionListUserTokenActivity: "mcpAdminContracts.action.listUserTokenActivity.description";
98
127
  readonly actionListTokenAdjustments: "mcpAdminContracts.action.listTokenAdjustments.description";
@@ -113,8 +142,8 @@ type McpAdminContractDescriptionKey = (typeof mcpAdminContractDescriptionKeys)[k
113
142
 
114
143
  declare const mcpAdminContractsTranslations: {
115
144
  readonly "en-GB": {
116
- readonly "mcpAdminContracts.manifest.descriptionForModel": "OAuth-protected MCP discovery manifest for the Plasius admin control plane covering feature flags, capabilities, analytics, pseudonymous Token finance reads, and audit-backed operations.";
117
- readonly "mcpAdminContracts.manifest.description": "Authenticated admin MCP discovery for the Plasius feature flag, capability, analytics, pseudonymous Token reporting, and audit control plane.";
145
+ readonly "mcpAdminContracts.manifest.descriptionForModel": "OAuth-protected MCP discovery manifest for the Plasius admin control plane covering feature flags, capabilities, analytics, privacy-safe feedback intelligence, pseudonymous Token finance reads, and audit-backed operations.";
146
+ readonly "mcpAdminContracts.manifest.description": "Authenticated admin MCP discovery for the Plasius feature flag, capability, analytics, privacy-safe feedback intelligence, pseudonymous Token reporting, and audit control plane.";
118
147
  readonly "mcpAdminContracts.action.listFeatureFlags.description": "List existing feature flags from the admin rollout control plane.";
119
148
  readonly "mcpAdminContracts.action.getFeatureFlag.description": "Fetch one feature flag by stable key.";
120
149
  readonly "mcpAdminContracts.action.updateFeatureFlag.description": "Patch an existing feature flag without bypassing the current admin update semantics.";
@@ -138,6 +167,11 @@ declare const mcpAdminContractsTranslations: {
138
167
  readonly "mcpAdminContracts.action.getAdminTokenEconomyOverview.description": "Read the identifier-free global Token balance, lifetime totals, wallet counts, and authoritative projection freshness.";
139
168
  readonly "mcpAdminContracts.action.listAdminTokenWalletBalances.description": "List bounded pseudonymous Token wallet balances without exposing account, payment, provider, or raw wallet identifiers.";
140
169
  readonly "mcpAdminContracts.action.getAdminTokenTrends.description": "Read privacy-suppressed Token acquisition and usage trends with explainable advisory anomaly indicators.";
170
+ readonly "mcpAdminContracts.action.getFeedbackBugHealth.description": "Read a bounded immutable hourly bug-health materialisation.";
171
+ readonly "mcpAdminContracts.action.getFeedbackSatisfaction.description": "Read a bounded immutable daily satisfaction materialisation.";
172
+ readonly "mcpAdminContracts.action.listFeedbackAlerts.description": "List bounded deterministic feedback advisories using an opaque cursor.";
173
+ readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
174
+ readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
141
175
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
142
176
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
143
177
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -151,6 +185,14 @@ declare const mcpAdminContractsTranslations: {
151
185
  readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
152
186
  readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
153
187
  readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
188
+ readonly "mcpAdminContracts.action.listModelSearchRankers.description": "List allowlisted, calibrated model-search rankers and their current readiness without selecting a substitute.";
189
+ readonly "mcpAdminContracts.action.searchModelCatalog.description": "Search promoted model catalog versions using hard constraints and one exact calibrated ranker selection.";
190
+ readonly "mcpAdminContracts.action.resolveModelRequest.description": "Search the catalog and idempotently create asynchronous provider or generator fallback work when needed.";
191
+ readonly "mcpAdminContracts.action.getModelResolution.description": "Read an owned immutable model-resolution revision, progress, questions, and review evidence.";
192
+ readonly "mcpAdminContracts.action.confirmModelCandidate.description": "Confirm one exact four-view candidate; low assurance additionally requires explicit semantic-risk acceptance.";
193
+ readonly "mcpAdminContracts.action.retryModelResolution.description": "Create the next immutable request revision from bounded refinement answers and candidate exclusions.";
194
+ readonly "mcpAdminContracts.action.cancelModelResolution.description": "Idempotently cancel unfinished work owned by the requester.";
195
+ readonly "mcpAdminContracts.action.rebuildModelCatalogIndex.description": "Run an operator-only idempotent full, backfill, or repair rebuild of the promoted model catalog index.";
154
196
  readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
155
197
  readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
156
198
  readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
@@ -174,7 +216,7 @@ declare const mcpAdminContractsTranslations: {
174
216
  */
175
217
  declare function getMcpAdminContractDefaultTranslation(key: McpAdminContractDescriptionKey): string;
176
218
 
177
- declare const MCP_ADMIN_CONTRACT_VERSION = "2026-08-08.v5";
219
+ declare const MCP_ADMIN_CONTRACT_VERSION = "2026-08-20.v7";
178
220
  declare const MCP_ADMIN_REGISTRY_SOURCE = "@plasius/mcp-admin-contracts";
179
221
  declare const MCP_ADMIN_FOUNDATION_FLAG_ID = "mcp.admin.foundation.enabled";
180
222
  declare const MCP_ACCESS_SCOPE = "mcp:access";
@@ -198,10 +240,34 @@ declare const MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID = "mcp.admin.production-rea
198
240
  declare const MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR = "MCP_ADMIN_PRODUCTION_READINESS_ENABLED";
199
241
  declare const MCP_ASSET_PIPELINE_FLAG_ID = "asset.pipeline.unified-ai-assets.enabled";
200
242
  declare const MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID = "asset.pipeline.external-model-harvest.enabled";
201
- declare const MCP_ASSET_CATALOG_REQUEST_CAPABILITY = "asset.catalog.request";
202
- declare const MCP_ASSET_PIPELINE_MANAGE_CAPABILITY = "asset.pipeline.mcp.manage";
203
- declare const MCP_ASSET_SOURCE_MANAGE_CAPABILITY = "asset.source.manage";
204
- declare const MCP_ASSET_CATALOG_REVIEW_CAPABILITY = "asset.catalog.review";
243
+ declare const MCP_ASSET_CATALOG_REQUEST_CAPABILITY: "asset.catalog.request";
244
+ declare const MCP_ASSET_CATALOG_CONFIRM_CAPABILITY: "asset.catalog.confirm";
245
+ declare const MCP_ASSET_PIPELINE_MANAGE_CAPABILITY: "asset.pipeline.mcp.manage";
246
+ declare const MCP_ASSET_SOURCE_MANAGE_CAPABILITY: "asset.source.manage";
247
+ declare const MCP_ASSET_CATALOG_REVIEW_CAPABILITY: "asset.catalog.review";
248
+ declare const MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION: "2026-07-13.v1";
249
+ declare const MCP_ADMIN_MODEL_REGISTRY_SOURCE = "@plasius/asset-mcp";
250
+ declare const MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION: "2026-07-12.v1";
251
+ declare const MCP_ADMIN_MODEL_CAPABILITIES: Readonly<{
252
+ catalogRequest: "asset.catalog.request";
253
+ catalogConfirm: "asset.catalog.confirm";
254
+ catalogReview: "asset.catalog.review";
255
+ sourceManage: "asset.source.manage";
256
+ pipelineManage: "asset.pipeline.mcp.manage";
257
+ }>;
258
+ declare const MCP_ADMIN_MODEL_OAUTH_SCOPES: readonly string[];
259
+ declare const MCP_ADMIN_FEEDBACK_FLAG_ID = "feedback.mcp.enabled";
260
+ declare const MCP_ADMIN_FEEDBACK_READ_CAPABILITY = "admin.feedback.read";
261
+ declare const MCP_ADMIN_BASE_OAUTH_SCOPE = "mcp:access";
262
+ declare const MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE = "admin.feedback.read";
263
+ declare const MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES: readonly ["mcp:access", "admin.feedback.read"];
264
+ declare const MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE = "@plasius/schema";
265
+ declare const MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION = "1.0.0";
266
+ declare const MCP_ADMIN_FEEDBACK_WINDOWS: readonly ["previous-utc-hour", "last-24-hours", "last-7-days", "last-30-days", "last-90-days"];
267
+ declare const MCP_ADMIN_FEEDBACK_PACKET_TYPES: readonly ["feedback-bug-packet", "feedback-review-packet"];
268
+ declare const MCP_ADMIN_FEEDBACK_REPORT_TYPES: readonly ["feedback-hourly-bug-report", "feedback-daily-satisfaction-report"];
269
+ declare const MCP_ADMIN_FEEDBACK_PROCESSORS: readonly ["bug-hourly", "review-daily", "commit-reconciliation"];
270
+ declare const MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS: readonly ["account-identifiers", "reporter-pseudonyms", "network-identifiers", "session-identifiers", "user-agents", "locales", "client-timestamps", "referrers", "credential-material", "financial-identifiers", "government-identifiers", "narrative", "generated-summaries", "quotations", "embeddings", "content-hashes", "matched-values", "model-traces", "binary-images", "filenames", "exact-coordinates", "exact-dimensions", "adapter-fingerprints", "raw-warnings", "blob-references", "raw-urls", "unrestricted-scans", "mutations"];
205
271
  declare const MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID = "mcp.admin-economy-adjustments.enabled";
206
272
  declare const ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID = "economy.tokens.owner-adjustments.enabled";
207
273
  declare const MCP_ECONOMY_FINANCE_VIEW_CAPABILITY = "economy.finance-operations.view";
@@ -234,10 +300,17 @@ interface McpFieldShape {
234
300
  enum?: readonly string[];
235
301
  itemType?: string;
236
302
  items?: McpFieldShape;
303
+ oneOf?: readonly McpFieldShape[];
304
+ discriminator?: string;
237
305
  properties?: Record<string, McpFieldShape>;
306
+ additionalProperties?: boolean;
307
+ constValue?: string | number | boolean;
238
308
  format?: string;
309
+ pattern?: string;
239
310
  minimum?: number;
240
311
  maximum?: number;
312
+ minLength?: number;
313
+ maxLength?: number;
241
314
  minItems?: number;
242
315
  maxItems?: number;
243
316
  default?: string | number | boolean;
@@ -256,7 +329,7 @@ interface McpActionVerification {
256
329
  descriptionKey: McpAdminContractDescriptionKey;
257
330
  descriptionDefault: string;
258
331
  }
259
- type McpActionDomain = "featureFlags" | "capabilities" | "analytics" | "userAggregation" | "economy" | "assetCatalog" | "assetPipeline" | "assetSource" | "assetReview" | "economyAdjustments";
332
+ type McpActionDomain = "featureFlags" | "capabilities" | "analytics" | "userAggregation" | "economy" | "feedback" | "assetCatalog" | "assetPipeline" | "assetSource" | "assetReview" | "economyAdjustments";
260
333
  type McpActionFamilyDomain = McpActionDomain | "productionReadiness";
261
334
  interface McpActionAccessRequirements {
262
335
  /** OAuth scopes re-checked by the consuming runtime. */
@@ -268,6 +341,19 @@ interface McpActionAccessRequirements {
268
341
  mode: "read-only" | "mutation";
269
342
  identityResolution: "not-available" | "separate-governed-operation";
270
343
  }
344
+ type McpFeedbackPrivacyExclusion = (typeof MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS)[number];
345
+ interface McpFeedbackPrivacyMetadata {
346
+ classification: "public-safe-structured-only";
347
+ readOnly: true;
348
+ bounded: true;
349
+ excludes: readonly McpFeedbackPrivacyExclusion[];
350
+ notes: readonly string[];
351
+ }
352
+ interface McpCanonicalSchemaSource {
353
+ packageName: typeof MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE;
354
+ contractVersion: typeof MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION;
355
+ schemaNames: readonly string[];
356
+ }
271
357
  interface McpActionDescriptor {
272
358
  name: string;
273
359
  description: string;
@@ -275,6 +361,9 @@ interface McpActionDescriptor {
275
361
  descriptionDefault: string;
276
362
  domain: McpActionDomain;
277
363
  rolloutFlag: string;
364
+ oauthScopes?: readonly string[];
365
+ privacy?: McpFeedbackPrivacyMetadata;
366
+ schemaSource?: McpCanonicalSchemaSource;
278
367
  availability: "existing" | "near-future";
279
368
  execution: McpActionExecution;
280
369
  input: Record<string, McpFieldShape>;
@@ -291,16 +380,60 @@ interface McpActionSummary {
291
380
  descriptionDefault: string;
292
381
  domain: McpActionDomain;
293
382
  rolloutFlag: string;
383
+ oauthScopes?: readonly string[];
384
+ privacy?: McpFeedbackPrivacyMetadata;
385
+ schemaSource?: McpCanonicalSchemaSource;
294
386
  availability: McpActionDescriptor["availability"];
295
387
  execution: McpActionExecution;
296
388
  requiredCapability?: string;
297
389
  requiredTokenScopes?: readonly string[];
298
390
  access?: McpActionAccessRequirements;
299
391
  }
392
+ interface McpModelToolExecution {
393
+ protocol: "json-rpc-2.0";
394
+ method: "POST";
395
+ path: "/api/mcp";
396
+ rpcMethod: "tools/call";
397
+ toolName: ModelMcpToolName;
398
+ }
399
+ type McpModelToolSummary = Omit<ModelMcpToolDefinition, "inputSchema" | "outputSchema"> & {
400
+ descriptionKey: McpAdminContractDescriptionKey;
401
+ descriptionDefault: string;
402
+ availability: "near-future";
403
+ execution: McpModelToolExecution;
404
+ verificationNotes: readonly string[];
405
+ };
406
+ type McpModelToolSchemaDescriptor = ModelMcpToolDefinition & {
407
+ descriptionKey: McpAdminContractDescriptionKey;
408
+ descriptionDefault: string;
409
+ availability: "near-future";
410
+ execution: McpModelToolExecution;
411
+ verificationNotes: readonly string[];
412
+ };
413
+ interface McpModelResolutionContext {
414
+ toolContractVersion: typeof MODEL_MCP_CONTRACT_VERSION;
415
+ sourceOfTruth: typeof ASSET_MCP_PACKAGE;
416
+ resolutionContractVersion: typeof MODEL_RESOLUTION_CONTRACT_VERSION;
417
+ endpoint: "/api/mcp";
418
+ protocol: "json-rpc-2.0";
419
+ rpcMethod: "tools/call";
420
+ requiredFeatureFlag: typeof MODEL_MCP_UNIFIED_FEATURE_FLAG_ID;
421
+ conditionalFeatureFlags: readonly [
422
+ typeof MODEL_MCP_EXTERNAL_HARVEST_FEATURE_FLAG_ID,
423
+ typeof MODEL_MCP_GENERATION_FEATURE_FLAG_ID
424
+ ];
425
+ tools: readonly ModelMcpToolName[];
426
+ resourceTemplates: readonly string[];
427
+ }
300
428
  interface McpDiscoveryResponse {
301
429
  contractVersion: string;
302
430
  sourceOfTruth: string;
303
431
  actions: McpActionSummary[];
432
+ /** Additive canonical JSON-RPC model tools; legacy REST actions stay separate. */
433
+ modelTools?: McpModelToolSummary[];
434
+ /** Authenticated `mcp://models/...` templates owned by `@plasius/asset-mcp`. */
435
+ modelResources?: readonly ModelMcpResourceTemplate[];
436
+ modelSourceOfTruth?: typeof ASSET_MCP_PACKAGE;
304
437
  }
305
438
  interface McpAuthenticatedUserContext {
306
439
  id: string;
@@ -335,6 +468,8 @@ interface McpContextResponse {
335
468
  actionFamilies: {
336
469
  domain: McpActionFamilyDomain;
337
470
  rolloutFlag: string;
471
+ requiredCapability?: string;
472
+ oauthScopes?: readonly string[];
338
473
  actions: string[];
339
474
  }[];
340
475
  extensionRules: {
@@ -344,6 +479,8 @@ interface McpContextResponse {
344
479
  singleResourceMutations: boolean;
345
480
  notes: string[];
346
481
  };
482
+ /** Additive canonical model-resolution family metadata. */
483
+ modelResolution?: McpModelResolutionContext;
347
484
  }
348
485
  interface McpSchemaResponse {
349
486
  contractVersion: string;
@@ -351,6 +488,9 @@ interface McpSchemaResponse {
351
488
  actions: Record<string, {
352
489
  domain: McpActionDomain;
353
490
  rolloutFlag: string;
491
+ oauthScopes?: readonly string[];
492
+ privacy?: McpFeedbackPrivacyMetadata;
493
+ schemaSource?: McpCanonicalSchemaSource;
354
494
  availability: McpActionDescriptor["availability"];
355
495
  execution: McpActionExecution;
356
496
  input: Record<string, McpFieldShape>;
@@ -362,6 +502,10 @@ interface McpSchemaResponse {
362
502
  }>;
363
503
  contextShape: Record<string, McpFieldShape>;
364
504
  extensionRules: McpContextResponse["extensionRules"];
505
+ /** Canonical schemas are referenced directly from `@plasius/asset-mcp`. */
506
+ modelTools?: Record<ModelMcpToolName, McpModelToolSchemaDescriptor>;
507
+ modelResources?: readonly ModelMcpResourceTemplate[];
508
+ modelSourceOfTruth?: typeof ASSET_MCP_PACKAGE;
365
509
  }
366
510
  interface BuildMcpContextResponseOptions {
367
511
  origin: string;
@@ -386,7 +530,17 @@ declare const MCP_ASSET_SOURCE_ADAPTERS: readonly ["polyhaven", "kenney", "smith
386
530
  declare const MCP_ASSET_SOURCE_TIERS: readonly ["tier-0"];
387
531
  declare const MCP_ASSET_PROCESSING_OPERATIONS: readonly ["validate-source-metadata", "metadata-cleanup", "archive-inspection", "validate-source", "convert-to-gltf", "normalize-orientation", "normalize-units", "normalize-origin", "optimize-textures", "generate-lod0", "generate-lod1", "generate-lod2", "generate-lod3", "generate-collision-proxy", "package-runtime"];
388
532
  declare const MCP_ASSET_REVIEW_KINDS: readonly ["hero", "front", "back", "left", "right", "top", "material-closeup", "wireframe-density", "normal-debug", "lod-comparison", "collision-proxy", "scale-reference"];
533
+ declare const MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE = 100;
534
+ declare const MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH = 512;
535
+ declare const MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS: readonly ["previous-utc-hour", "last-24-hours", "last-7-days"];
536
+ declare const MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS: readonly ["last-7-days", "last-30-days", "last-90-days"];
537
+ declare const MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS: readonly ["last-24-hours", "last-7-days", "last-30-days", "last-90-days"];
538
+ declare const MCP_ADMIN_FEEDBACK_ALERT_WINDOWS: readonly ["last-24-hours", "last-7-days"];
539
+ declare const MCP_ADMIN_FEEDBACK_PRIVACY_METADATA: McpFeedbackPrivacyMetadata;
540
+ declare const MCP_ADMIN_FEEDBACK_ACTIONS: readonly McpActionDescriptor[];
389
541
  declare const MCP_ADMIN_ACTIONS: readonly McpActionDescriptor[];
542
+ declare function listMcpModelToolSummaries(): McpModelToolSummary[];
543
+ declare function listMcpModelResourceTemplates(): readonly ModelMcpResourceTemplate[];
390
544
  declare function listMcpActionSummaries(): McpActionSummary[];
391
545
  declare const MCP_ADMIN_CONTEXT_SHAPE: Record<string, McpFieldShape>;
392
546
  declare const MCP_ADMIN_EXTENSION_RULES: {
@@ -402,4 +556,4 @@ declare function buildMcpDiscoveryResponse(): McpDiscoveryResponse;
402
556
  declare function buildMcpSchemaResponse(): McpSchemaResponse;
403
557
  declare function buildMcpContextResponse(options: BuildMcpContextResponseOptions): McpContextResponse;
404
558
 
405
- export { type AiPluginManifest, type BuildMcpContextResponseOptions, ECONOMY_ADMIN_HISTORY_FLAG_ID, ECONOMY_FINANCE_OPERATIONS_VIEW_CAPABILITY, ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID, MCP_ACCESS_SCOPE, MCP_ADMIN_ACTIONS, MCP_ADMIN_ANALYTICS_DIMENSIONS, MCP_ADMIN_ANALYTICS_FLAG_ID, MCP_ADMIN_ANALYTICS_METRICS, MCP_ADMIN_ANALYTICS_PRESETS, MCP_ADMIN_CONTEXT_SHAPE, MCP_ADMIN_CONTRACT_VERSION, MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID, MCP_ADMIN_ECONOMY_HISTORY_FLAG_ID, MCP_ADMIN_ECONOMY_READ_CAPABILITY, MCP_ADMIN_EXTENSION_RULES, MCP_ADMIN_FOUNDATION_DISABLED_CODE, MCP_ADMIN_FOUNDATION_ENV_VAR, MCP_ADMIN_FOUNDATION_FLAG_ID, MCP_ADMIN_LIVEOPS_FLAG_ID, MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR, MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID, MCP_ADMIN_REGISTRY_SOURCE, MCP_ADMIN_TOKEN_ACTIVITY_SORTS, MCP_ADMIN_TOKEN_ACTIVITY_SOURCES, MCP_ADMIN_TOKEN_ACTIVITY_STATUSES, MCP_ADMIN_TOKEN_ACTIVITY_TYPES, MCP_ADMIN_TOKEN_WALLET_COMPONENTS, MCP_ADMIN_TOKEN_WALLET_SORTS, MCP_ADMIN_TOKEN_WALLET_STATUSES, MCP_ADMIN_USER_AGGREGATION_DIMENSIONS, MCP_ADMIN_USER_AGGREGATION_METRICS, MCP_ADMIN_USER_AGGREGATION_PRESETS, MCP_ASSET_CATALOG_REQUEST_CAPABILITY, MCP_ASSET_CATALOG_REVIEW_CAPABILITY, MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID, MCP_ASSET_PIPELINE_FLAG_ID, MCP_ASSET_PIPELINE_MANAGE_CAPABILITY, MCP_ASSET_PROCESSING_OPERATIONS, MCP_ASSET_REVIEW_KINDS, MCP_ASSET_SOURCE_ADAPTERS, MCP_ASSET_SOURCE_MANAGE_CAPABILITY, MCP_ASSET_SOURCE_TIERS, MCP_ECONOMY_FINANCE_ADJUST_CAPABILITY, MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY, MCP_ECONOMY_FINANCE_VIEW_CAPABILITY, type McpActionAccessRequirements, type McpActionDescriptor, type McpActionDomain, type McpActionExecution, type McpActionFamilyDomain, type McpActionSummary, type McpActionVerification, type McpAdminContractDescriptionKey, type McpAuthenticatedUserContext, type McpContextResponse, type McpDiscoveryResponse, type McpFieldShape, type McpRolloutContext, type McpSchemaResponse, type McpSurfaceUrls, buildAiPluginManifest, buildMcpContextResponse, buildMcpDiscoveryResponse, buildMcpSchemaResponse, buildMcpSurfaceUrls, getMcpAdminContractDefaultTranslation, listMcpActionSummaries, mcpAdminContractDescriptionKeys, mcpAdminContractsEnGbTranslations, mcpAdminContractsTranslations };
559
+ export { type AiPluginManifest, type BuildMcpContextResponseOptions, ECONOMY_ADMIN_HISTORY_FLAG_ID, ECONOMY_FINANCE_OPERATIONS_VIEW_CAPABILITY, ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID, MCP_ACCESS_SCOPE, MCP_ADMIN_ACTIONS, MCP_ADMIN_ANALYTICS_DIMENSIONS, MCP_ADMIN_ANALYTICS_FLAG_ID, MCP_ADMIN_ANALYTICS_METRICS, MCP_ADMIN_ANALYTICS_PRESETS, MCP_ADMIN_BASE_OAUTH_SCOPE, MCP_ADMIN_CONTEXT_SHAPE, MCP_ADMIN_CONTRACT_VERSION, MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID, MCP_ADMIN_ECONOMY_HISTORY_FLAG_ID, MCP_ADMIN_ECONOMY_READ_CAPABILITY, MCP_ADMIN_EXTENSION_RULES, MCP_ADMIN_FEEDBACK_ACTIONS, MCP_ADMIN_FEEDBACK_ALERT_WINDOWS, MCP_ADMIN_FEEDBACK_BUG_HEALTH_WINDOWS, MCP_ADMIN_FEEDBACK_ENTRY_WINDOWS, MCP_ADMIN_FEEDBACK_FLAG_ID, MCP_ADMIN_FEEDBACK_MAX_CURSOR_LENGTH, MCP_ADMIN_FEEDBACK_MAX_PAGE_SIZE, MCP_ADMIN_FEEDBACK_PACKET_TYPES, MCP_ADMIN_FEEDBACK_PRIVACY_EXCLUSIONS, MCP_ADMIN_FEEDBACK_PRIVACY_METADATA, MCP_ADMIN_FEEDBACK_PROCESSORS, MCP_ADMIN_FEEDBACK_READ_CAPABILITY, MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE, MCP_ADMIN_FEEDBACK_REPORT_TYPES, MCP_ADMIN_FEEDBACK_REQUIRED_OAUTH_SCOPES, MCP_ADMIN_FEEDBACK_SATISFACTION_WINDOWS, MCP_ADMIN_FEEDBACK_SCHEMA_CONTRACT_VERSION, MCP_ADMIN_FEEDBACK_SCHEMA_PACKAGE, MCP_ADMIN_FEEDBACK_WINDOWS, MCP_ADMIN_FOUNDATION_DISABLED_CODE, MCP_ADMIN_FOUNDATION_ENV_VAR, MCP_ADMIN_FOUNDATION_FLAG_ID, MCP_ADMIN_LIVEOPS_FLAG_ID, MCP_ADMIN_MODEL_CAPABILITIES, MCP_ADMIN_MODEL_OAUTH_SCOPES, MCP_ADMIN_MODEL_REGISTRY_SOURCE, MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION, MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION, MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR, MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID, MCP_ADMIN_REGISTRY_SOURCE, MCP_ADMIN_TOKEN_ACTIVITY_SORTS, MCP_ADMIN_TOKEN_ACTIVITY_SOURCES, MCP_ADMIN_TOKEN_ACTIVITY_STATUSES, MCP_ADMIN_TOKEN_ACTIVITY_TYPES, MCP_ADMIN_TOKEN_WALLET_COMPONENTS, MCP_ADMIN_TOKEN_WALLET_SORTS, MCP_ADMIN_TOKEN_WALLET_STATUSES, MCP_ADMIN_USER_AGGREGATION_DIMENSIONS, MCP_ADMIN_USER_AGGREGATION_METRICS, MCP_ADMIN_USER_AGGREGATION_PRESETS, MCP_ASSET_CATALOG_CONFIRM_CAPABILITY, MCP_ASSET_CATALOG_REQUEST_CAPABILITY, MCP_ASSET_CATALOG_REVIEW_CAPABILITY, MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID, MCP_ASSET_PIPELINE_FLAG_ID, MCP_ASSET_PIPELINE_MANAGE_CAPABILITY, MCP_ASSET_PROCESSING_OPERATIONS, MCP_ASSET_REVIEW_KINDS, MCP_ASSET_SOURCE_ADAPTERS, MCP_ASSET_SOURCE_MANAGE_CAPABILITY, MCP_ASSET_SOURCE_TIERS, MCP_ECONOMY_FINANCE_ADJUST_CAPABILITY, MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY, MCP_ECONOMY_FINANCE_VIEW_CAPABILITY, type McpActionAccessRequirements, type McpActionDescriptor, type McpActionDomain, type McpActionExecution, type McpActionFamilyDomain, type McpActionSummary, type McpActionVerification, type McpAdminContractDescriptionKey, type McpAuthenticatedUserContext, type McpCanonicalSchemaSource, type McpContextResponse, type McpDiscoveryResponse, type McpFeedbackPrivacyExclusion, type McpFeedbackPrivacyMetadata, type McpFieldShape, type McpModelResolutionContext, type McpModelToolExecution, type McpModelToolSchemaDescriptor, type McpModelToolSummary, type McpRolloutContext, type McpSchemaResponse, type McpSurfaceUrls, buildAiPluginManifest, buildMcpContextResponse, buildMcpDiscoveryResponse, buildMcpSchemaResponse, buildMcpSurfaceUrls, getMcpAdminContractDefaultTranslation, listMcpActionSummaries, listMcpModelResourceTemplates, listMcpModelToolSummaries, mcpAdminContractDescriptionKeys, mcpAdminContractsEnGbTranslations, mcpAdminContractsTranslations };