@plasius/mcp-admin-contracts 0.2.9 → 0.4.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.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare const mcpAdminContractsEnGbTranslations: {
2
- readonly "mcpAdminContracts.manifest.descriptionForModel": "OAuth-protected MCP discovery manifest for the Plasius admin control plane covering feature flags, capabilities, analytics, and audit-backed operations.";
3
- readonly "mcpAdminContracts.manifest.description": "Authenticated admin MCP discovery for the Plasius feature flag, capability, analytics, and audit control plane.";
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.";
4
4
  readonly "mcpAdminContracts.action.listFeatureFlags.description": "List existing feature flags from the admin rollout control plane.";
5
5
  readonly "mcpAdminContracts.action.getFeatureFlag.description": "Fetch one feature flag by stable key.";
6
6
  readonly "mcpAdminContracts.action.updateFeatureFlag.description": "Patch an existing feature flag without bypassing the current admin update semantics.";
@@ -20,6 +20,10 @@ declare const mcpAdminContractsEnGbTranslations: {
20
20
  readonly "mcpAdminContracts.action.listAggregationDimensions.description": "List the approved user-aggregation dimensions from the MCP whitelist.";
21
21
  readonly "mcpAdminContracts.action.aggregateUsers.description": "Run grouped user aggregation over the bounded admin user data surface.";
22
22
  readonly "mcpAdminContracts.action.aggregateUsersByPreset.description": "Run a curated user-aggregation preset against the bounded aggregation route.";
23
+ readonly "mcpAdminContracts.action.listAdminTokenActivity.description": "List bounded pseudonymous Token activity after re-checking MCP scope, finance capabilities, and stored rollout flags.";
24
+ readonly "mcpAdminContracts.action.getAdminTokenEconomyOverview.description": "Read the identifier-free global Token balance, lifetime totals, wallet counts, and authoritative projection freshness.";
25
+ readonly "mcpAdminContracts.action.listAdminTokenWalletBalances.description": "List bounded pseudonymous Token wallet balances without exposing account, payment, provider, or raw wallet identifiers.";
26
+ readonly "mcpAdminContracts.action.getAdminTokenTrends.description": "Read privacy-suppressed Token acquisition and usage trends with explainable advisory anomaly indicators.";
23
27
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
24
28
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
25
29
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -33,6 +37,13 @@ declare const mcpAdminContractsEnGbTranslations: {
33
37
  readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
34
38
  readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
35
39
  readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
40
+ readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
41
+ readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
42
+ readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
43
+ readonly "mcpAdminContracts.action.proposeTokenCredit.description": "Propose a positive Token credit for a server-resolved personal wallet; a distinct owner must approve it.";
44
+ readonly "mcpAdminContracts.action.approveTokenCredit.description": "Approve a preview-bound Token credit proposed by a different owner.";
45
+ readonly "mcpAdminContracts.action.rejectTokenCredit.description": "Reject a pending Token credit without mutating the wallet.";
46
+ readonly "mcpAdminContracts.action.reverseTokenCredit.description": "Propose an immutable compensating reversal of an earlier owner Token credit.";
36
47
  readonly "mcpAdminContracts.verification.enableFeatureFlag.description": "Use admin audit history to verify the rollout change.";
37
48
  readonly "mcpAdminContracts.verification.disableFeatureFlag.description": "Use admin audit history to verify the rollout change.";
38
49
  readonly "mcpAdminContracts.verification.assignCapability.description": "Use admin audit history to verify the stored rule written by the capability assignment.";
@@ -40,6 +51,7 @@ declare const mcpAdminContractsEnGbTranslations: {
40
51
  readonly "mcpAdminContracts.verification.updateCapability.description": "Use admin audit history to verify the stored rule updated by the capability mutation.";
41
52
  readonly "mcpAdminContracts.verification.promoteAsset.description": "Use asset promotion history and admin audit events to verify the immutable runtime manifest promotion.";
42
53
  readonly "mcpAdminContracts.verification.rollbackAsset.description": "Use asset promotion history and admin audit events to verify the runtime channel rollback.";
54
+ readonly "mcpAdminContracts.verification.tokenAdjustment.description": "Read the adjustment and Token activity history to verify its immutable proposal, decision, and ledger result.";
43
55
  };
44
56
 
45
57
  declare const mcpAdminContractDescriptionKeys: {
@@ -64,6 +76,10 @@ declare const mcpAdminContractDescriptionKeys: {
64
76
  readonly actionListAggregationDimensions: "mcpAdminContracts.action.listAggregationDimensions.description";
65
77
  readonly actionAggregateUsers: "mcpAdminContracts.action.aggregateUsers.description";
66
78
  readonly actionAggregateUsersByPreset: "mcpAdminContracts.action.aggregateUsersByPreset.description";
79
+ readonly actionListAdminTokenActivity: "mcpAdminContracts.action.listAdminTokenActivity.description";
80
+ readonly actionGetAdminTokenEconomyOverview: "mcpAdminContracts.action.getAdminTokenEconomyOverview.description";
81
+ readonly actionListAdminTokenWalletBalances: "mcpAdminContracts.action.listAdminTokenWalletBalances.description";
82
+ readonly actionGetAdminTokenTrends: "mcpAdminContracts.action.getAdminTokenTrends.description";
67
83
  readonly actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description";
68
84
  readonly actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description";
69
85
  readonly actionRequestAsset: "mcpAdminContracts.action.requestAsset.description";
@@ -77,6 +93,13 @@ declare const mcpAdminContractDescriptionKeys: {
77
93
  readonly actionPromoteAsset: "mcpAdminContracts.action.promoteAsset.description";
78
94
  readonly actionRollbackAsset: "mcpAdminContracts.action.rollbackAsset.description";
79
95
  readonly actionGetAssetJobStatus: "mcpAdminContracts.action.getAssetJobStatus.description";
96
+ readonly actionGetUserTokenWallet: "mcpAdminContracts.action.getUserTokenWallet.description";
97
+ readonly actionListUserTokenActivity: "mcpAdminContracts.action.listUserTokenActivity.description";
98
+ readonly actionListTokenAdjustments: "mcpAdminContracts.action.listTokenAdjustments.description";
99
+ readonly actionProposeTokenCredit: "mcpAdminContracts.action.proposeTokenCredit.description";
100
+ readonly actionApproveTokenCredit: "mcpAdminContracts.action.approveTokenCredit.description";
101
+ readonly actionRejectTokenCredit: "mcpAdminContracts.action.rejectTokenCredit.description";
102
+ readonly actionReverseTokenCredit: "mcpAdminContracts.action.reverseTokenCredit.description";
80
103
  readonly verificationEnableFeatureFlag: "mcpAdminContracts.verification.enableFeatureFlag.description";
81
104
  readonly verificationDisableFeatureFlag: "mcpAdminContracts.verification.disableFeatureFlag.description";
82
105
  readonly verificationAssignCapability: "mcpAdminContracts.verification.assignCapability.description";
@@ -84,13 +107,14 @@ declare const mcpAdminContractDescriptionKeys: {
84
107
  readonly verificationUpdateCapability: "mcpAdminContracts.verification.updateCapability.description";
85
108
  readonly verificationPromoteAsset: "mcpAdminContracts.verification.promoteAsset.description";
86
109
  readonly verificationRollbackAsset: "mcpAdminContracts.verification.rollbackAsset.description";
110
+ readonly verificationTokenAdjustment: "mcpAdminContracts.verification.tokenAdjustment.description";
87
111
  };
88
112
  type McpAdminContractDescriptionKey = (typeof mcpAdminContractDescriptionKeys)[keyof typeof mcpAdminContractDescriptionKeys];
89
113
 
90
114
  declare const mcpAdminContractsTranslations: {
91
115
  readonly "en-GB": {
92
- readonly "mcpAdminContracts.manifest.descriptionForModel": "OAuth-protected MCP discovery manifest for the Plasius admin control plane covering feature flags, capabilities, analytics, and audit-backed operations.";
93
- readonly "mcpAdminContracts.manifest.description": "Authenticated admin MCP discovery for the Plasius feature flag, capability, analytics, and audit control plane.";
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.";
94
118
  readonly "mcpAdminContracts.action.listFeatureFlags.description": "List existing feature flags from the admin rollout control plane.";
95
119
  readonly "mcpAdminContracts.action.getFeatureFlag.description": "Fetch one feature flag by stable key.";
96
120
  readonly "mcpAdminContracts.action.updateFeatureFlag.description": "Patch an existing feature flag without bypassing the current admin update semantics.";
@@ -110,6 +134,10 @@ declare const mcpAdminContractsTranslations: {
110
134
  readonly "mcpAdminContracts.action.listAggregationDimensions.description": "List the approved user-aggregation dimensions from the MCP whitelist.";
111
135
  readonly "mcpAdminContracts.action.aggregateUsers.description": "Run grouped user aggregation over the bounded admin user data surface.";
112
136
  readonly "mcpAdminContracts.action.aggregateUsersByPreset.description": "Run a curated user-aggregation preset against the bounded aggregation route.";
137
+ readonly "mcpAdminContracts.action.listAdminTokenActivity.description": "List bounded pseudonymous Token activity after re-checking MCP scope, finance capabilities, and stored rollout flags.";
138
+ readonly "mcpAdminContracts.action.getAdminTokenEconomyOverview.description": "Read the identifier-free global Token balance, lifetime totals, wallet counts, and authoritative projection freshness.";
139
+ readonly "mcpAdminContracts.action.listAdminTokenWalletBalances.description": "List bounded pseudonymous Token wallet balances without exposing account, payment, provider, or raw wallet identifiers.";
140
+ readonly "mcpAdminContracts.action.getAdminTokenTrends.description": "Read privacy-suppressed Token acquisition and usage trends with explainable advisory anomaly indicators.";
113
141
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
114
142
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
115
143
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -123,6 +151,13 @@ declare const mcpAdminContractsTranslations: {
123
151
  readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
124
152
  readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
125
153
  readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
154
+ readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
155
+ readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
156
+ readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
157
+ readonly "mcpAdminContracts.action.proposeTokenCredit.description": "Propose a positive Token credit for a server-resolved personal wallet; a distinct owner must approve it.";
158
+ readonly "mcpAdminContracts.action.approveTokenCredit.description": "Approve a preview-bound Token credit proposed by a different owner.";
159
+ readonly "mcpAdminContracts.action.rejectTokenCredit.description": "Reject a pending Token credit without mutating the wallet.";
160
+ readonly "mcpAdminContracts.action.reverseTokenCredit.description": "Propose an immutable compensating reversal of an earlier owner Token credit.";
126
161
  readonly "mcpAdminContracts.verification.enableFeatureFlag.description": "Use admin audit history to verify the rollout change.";
127
162
  readonly "mcpAdminContracts.verification.disableFeatureFlag.description": "Use admin audit history to verify the rollout change.";
128
163
  readonly "mcpAdminContracts.verification.assignCapability.description": "Use admin audit history to verify the stored rule written by the capability assignment.";
@@ -130,6 +165,7 @@ declare const mcpAdminContractsTranslations: {
130
165
  readonly "mcpAdminContracts.verification.updateCapability.description": "Use admin audit history to verify the stored rule updated by the capability mutation.";
131
166
  readonly "mcpAdminContracts.verification.promoteAsset.description": "Use asset promotion history and admin audit events to verify the immutable runtime manifest promotion.";
132
167
  readonly "mcpAdminContracts.verification.rollbackAsset.description": "Use asset promotion history and admin audit events to verify the runtime channel rollback.";
168
+ readonly "mcpAdminContracts.verification.tokenAdjustment.description": "Read the adjustment and Token activity history to verify its immutable proposal, decision, and ledger result.";
133
169
  };
134
170
  };
135
171
  /**
@@ -138,9 +174,10 @@ declare const mcpAdminContractsTranslations: {
138
174
  */
139
175
  declare function getMcpAdminContractDefaultTranslation(key: McpAdminContractDescriptionKey): string;
140
176
 
141
- declare const MCP_ADMIN_CONTRACT_VERSION = "2026-04-28.v3";
177
+ declare const MCP_ADMIN_CONTRACT_VERSION = "2026-08-08.v5";
142
178
  declare const MCP_ADMIN_REGISTRY_SOURCE = "@plasius/mcp-admin-contracts";
143
179
  declare const MCP_ADMIN_FOUNDATION_FLAG_ID = "mcp.admin.foundation.enabled";
180
+ declare const MCP_ACCESS_SCOPE = "mcp:access";
144
181
  /**
145
182
  * @deprecated Runtime rollout decisions must come from stored feature flags.
146
183
  * This env name is retained only for source compatibility with older hosts.
@@ -149,6 +186,10 @@ declare const MCP_ADMIN_FOUNDATION_ENV_VAR = "MCP_ADMIN_FOUNDATION_ENABLED";
149
186
  declare const MCP_ADMIN_FOUNDATION_DISABLED_CODE = "MCP_ADMIN_FOUNDATION_DISABLED";
150
187
  declare const MCP_ADMIN_LIVEOPS_FLAG_ID = "mcp.admin.liveops-controls.enabled";
151
188
  declare const MCP_ADMIN_ANALYTICS_FLAG_ID = "mcp.admin.analytics.enabled";
189
+ declare const ECONOMY_ADMIN_HISTORY_FLAG_ID = "economy.admin-history.enabled";
190
+ declare const MCP_ADMIN_ECONOMY_HISTORY_FLAG_ID = "mcp.admin-economy-history.enabled";
191
+ declare const MCP_ADMIN_ECONOMY_READ_CAPABILITY = "admin.economy.read";
192
+ declare const ECONOMY_FINANCE_OPERATIONS_VIEW_CAPABILITY = "economy.finance-operations.view";
152
193
  declare const MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID = "mcp.admin.production-readiness.enabled";
153
194
  /**
154
195
  * @deprecated Runtime rollout decisions must come from stored feature flags.
@@ -161,6 +202,11 @@ declare const MCP_ASSET_CATALOG_REQUEST_CAPABILITY = "asset.catalog.request";
161
202
  declare const MCP_ASSET_PIPELINE_MANAGE_CAPABILITY = "asset.pipeline.mcp.manage";
162
203
  declare const MCP_ASSET_SOURCE_MANAGE_CAPABILITY = "asset.source.manage";
163
204
  declare const MCP_ASSET_CATALOG_REVIEW_CAPABILITY = "asset.catalog.review";
205
+ declare const MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID = "mcp.admin-economy-adjustments.enabled";
206
+ declare const ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID = "economy.tokens.owner-adjustments.enabled";
207
+ declare const MCP_ECONOMY_FINANCE_VIEW_CAPABILITY = "economy.finance-operations.view";
208
+ declare const MCP_ECONOMY_FINANCE_ADJUST_CAPABILITY = "economy.finance-operations.adjust";
209
+ declare const MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY = "economy.finance-operations.approve-adjustment";
164
210
  interface AiPluginManifest {
165
211
  schema_version: "1.0.0";
166
212
  name: string;
@@ -187,7 +233,14 @@ interface McpFieldShape {
187
233
  required?: boolean;
188
234
  enum?: readonly string[];
189
235
  itemType?: string;
236
+ items?: McpFieldShape;
190
237
  properties?: Record<string, McpFieldShape>;
238
+ format?: string;
239
+ minimum?: number;
240
+ maximum?: number;
241
+ minItems?: number;
242
+ maxItems?: number;
243
+ default?: string | number | boolean;
191
244
  }
192
245
  interface McpActionExecution {
193
246
  method: "GET" | "POST" | "PATCH" | "DELETE";
@@ -203,8 +256,18 @@ interface McpActionVerification {
203
256
  descriptionKey: McpAdminContractDescriptionKey;
204
257
  descriptionDefault: string;
205
258
  }
206
- type McpActionDomain = "featureFlags" | "capabilities" | "analytics" | "userAggregation" | "assetCatalog" | "assetPipeline" | "assetSource" | "assetReview";
259
+ type McpActionDomain = "featureFlags" | "capabilities" | "analytics" | "userAggregation" | "economy" | "assetCatalog" | "assetPipeline" | "assetSource" | "assetReview" | "economyAdjustments";
207
260
  type McpActionFamilyDomain = McpActionDomain | "productionReadiness";
261
+ interface McpActionAccessRequirements {
262
+ /** OAuth scopes re-checked by the consuming runtime. */
263
+ oauthScopes: readonly string[];
264
+ /** Product capabilities re-resolved for the mapped MCP identity. */
265
+ capabilities: readonly string[];
266
+ /** Stored rollout flags that must all be enabled by the host. */
267
+ rolloutFlags: readonly string[];
268
+ mode: "read-only" | "mutation";
269
+ identityResolution: "not-available" | "separate-governed-operation";
270
+ }
208
271
  interface McpActionDescriptor {
209
272
  name: string;
210
273
  description: string;
@@ -216,6 +279,9 @@ interface McpActionDescriptor {
216
279
  execution: McpActionExecution;
217
280
  input: Record<string, McpFieldShape>;
218
281
  output: Record<string, McpFieldShape>;
282
+ requiredCapability?: string;
283
+ requiredTokenScopes?: readonly string[];
284
+ access?: McpActionAccessRequirements;
219
285
  verification?: McpActionVerification;
220
286
  }
221
287
  interface McpActionSummary {
@@ -227,6 +293,9 @@ interface McpActionSummary {
227
293
  rolloutFlag: string;
228
294
  availability: McpActionDescriptor["availability"];
229
295
  execution: McpActionExecution;
296
+ requiredCapability?: string;
297
+ requiredTokenScopes?: readonly string[];
298
+ access?: McpActionAccessRequirements;
230
299
  }
231
300
  interface McpDiscoveryResponse {
232
301
  contractVersion: string;
@@ -286,6 +355,9 @@ interface McpSchemaResponse {
286
355
  execution: McpActionExecution;
287
356
  input: Record<string, McpFieldShape>;
288
357
  output: Record<string, McpFieldShape>;
358
+ requiredCapability?: string;
359
+ requiredTokenScopes?: readonly string[];
360
+ access?: McpActionAccessRequirements;
289
361
  verification?: McpActionVerification;
290
362
  }>;
291
363
  contextShape: Record<string, McpFieldShape>;
@@ -302,6 +374,14 @@ declare const MCP_ADMIN_ANALYTICS_PRESETS: readonly ["adminOverview", "recentErr
302
374
  declare const MCP_ADMIN_USER_AGGREGATION_METRICS: readonly ["userCount"];
303
375
  declare const MCP_ADMIN_USER_AGGREGATION_DIMENSIONS: readonly ["accountState", "notificationPreference", "avatarState", "accountAgeBand"];
304
376
  declare const MCP_ADMIN_USER_AGGREGATION_PRESETS: readonly ["usersByAccountState", "usersByNotificationPreference", "usersByAccountAgeBand"];
377
+ declare const MCP_ADMIN_TOKEN_ACTIVITY_TYPES: readonly ["acquisition", "spend", "reversal", "hold", "failure"];
378
+ declare const MCP_ADMIN_TOKEN_ACTIVITY_STATUSES: readonly ["pending", "held", "settled", "reversed", "failed"];
379
+ declare const MCP_ADMIN_TOKEN_WALLET_COMPONENTS: readonly ["household", "personal", "gameplay-allocation"];
380
+ declare const MCP_ADMIN_TOKEN_WALLET_STATUSES: readonly ["active", "closed"];
381
+ declare const MCP_ADMIN_TOKEN_WALLET_SORTS: readonly ["available-desc", "updated-at-desc"];
382
+ /** Provider-neutral source groupings; provider names are intentionally absent. */
383
+ declare const MCP_ADMIN_TOKEN_ACTIVITY_SOURCES: readonly ["paid-purchase", "subscription", "rewarded-activity", "gameplay", "system-adjustment", "unknown"];
384
+ declare const MCP_ADMIN_TOKEN_ACTIVITY_SORTS: readonly ["occurred-at-desc", "amount-absolute-desc"];
305
385
  declare const MCP_ASSET_SOURCE_ADAPTERS: readonly ["polyhaven", "kenney", "smithsonian-open-access", "nasa"];
306
386
  declare const MCP_ASSET_SOURCE_TIERS: readonly ["tier-0"];
307
387
  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"];
@@ -322,4 +402,4 @@ declare function buildMcpDiscoveryResponse(): McpDiscoveryResponse;
322
402
  declare function buildMcpSchemaResponse(): McpSchemaResponse;
323
403
  declare function buildMcpContextResponse(options: BuildMcpContextResponseOptions): McpContextResponse;
324
404
 
325
- export { type AiPluginManifest, type BuildMcpContextResponseOptions, 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_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_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, 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 };
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 };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare const mcpAdminContractsEnGbTranslations: {
2
- readonly "mcpAdminContracts.manifest.descriptionForModel": "OAuth-protected MCP discovery manifest for the Plasius admin control plane covering feature flags, capabilities, analytics, and audit-backed operations.";
3
- readonly "mcpAdminContracts.manifest.description": "Authenticated admin MCP discovery for the Plasius feature flag, capability, analytics, and audit control plane.";
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.";
4
4
  readonly "mcpAdminContracts.action.listFeatureFlags.description": "List existing feature flags from the admin rollout control plane.";
5
5
  readonly "mcpAdminContracts.action.getFeatureFlag.description": "Fetch one feature flag by stable key.";
6
6
  readonly "mcpAdminContracts.action.updateFeatureFlag.description": "Patch an existing feature flag without bypassing the current admin update semantics.";
@@ -20,6 +20,10 @@ declare const mcpAdminContractsEnGbTranslations: {
20
20
  readonly "mcpAdminContracts.action.listAggregationDimensions.description": "List the approved user-aggregation dimensions from the MCP whitelist.";
21
21
  readonly "mcpAdminContracts.action.aggregateUsers.description": "Run grouped user aggregation over the bounded admin user data surface.";
22
22
  readonly "mcpAdminContracts.action.aggregateUsersByPreset.description": "Run a curated user-aggregation preset against the bounded aggregation route.";
23
+ readonly "mcpAdminContracts.action.listAdminTokenActivity.description": "List bounded pseudonymous Token activity after re-checking MCP scope, finance capabilities, and stored rollout flags.";
24
+ readonly "mcpAdminContracts.action.getAdminTokenEconomyOverview.description": "Read the identifier-free global Token balance, lifetime totals, wallet counts, and authoritative projection freshness.";
25
+ readonly "mcpAdminContracts.action.listAdminTokenWalletBalances.description": "List bounded pseudonymous Token wallet balances without exposing account, payment, provider, or raw wallet identifiers.";
26
+ readonly "mcpAdminContracts.action.getAdminTokenTrends.description": "Read privacy-suppressed Token acquisition and usage trends with explainable advisory anomaly indicators.";
23
27
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
24
28
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
25
29
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -33,6 +37,13 @@ declare const mcpAdminContractsEnGbTranslations: {
33
37
  readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
34
38
  readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
35
39
  readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
40
+ readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
41
+ readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
42
+ readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
43
+ readonly "mcpAdminContracts.action.proposeTokenCredit.description": "Propose a positive Token credit for a server-resolved personal wallet; a distinct owner must approve it.";
44
+ readonly "mcpAdminContracts.action.approveTokenCredit.description": "Approve a preview-bound Token credit proposed by a different owner.";
45
+ readonly "mcpAdminContracts.action.rejectTokenCredit.description": "Reject a pending Token credit without mutating the wallet.";
46
+ readonly "mcpAdminContracts.action.reverseTokenCredit.description": "Propose an immutable compensating reversal of an earlier owner Token credit.";
36
47
  readonly "mcpAdminContracts.verification.enableFeatureFlag.description": "Use admin audit history to verify the rollout change.";
37
48
  readonly "mcpAdminContracts.verification.disableFeatureFlag.description": "Use admin audit history to verify the rollout change.";
38
49
  readonly "mcpAdminContracts.verification.assignCapability.description": "Use admin audit history to verify the stored rule written by the capability assignment.";
@@ -40,6 +51,7 @@ declare const mcpAdminContractsEnGbTranslations: {
40
51
  readonly "mcpAdminContracts.verification.updateCapability.description": "Use admin audit history to verify the stored rule updated by the capability mutation.";
41
52
  readonly "mcpAdminContracts.verification.promoteAsset.description": "Use asset promotion history and admin audit events to verify the immutable runtime manifest promotion.";
42
53
  readonly "mcpAdminContracts.verification.rollbackAsset.description": "Use asset promotion history and admin audit events to verify the runtime channel rollback.";
54
+ readonly "mcpAdminContracts.verification.tokenAdjustment.description": "Read the adjustment and Token activity history to verify its immutable proposal, decision, and ledger result.";
43
55
  };
44
56
 
45
57
  declare const mcpAdminContractDescriptionKeys: {
@@ -64,6 +76,10 @@ declare const mcpAdminContractDescriptionKeys: {
64
76
  readonly actionListAggregationDimensions: "mcpAdminContracts.action.listAggregationDimensions.description";
65
77
  readonly actionAggregateUsers: "mcpAdminContracts.action.aggregateUsers.description";
66
78
  readonly actionAggregateUsersByPreset: "mcpAdminContracts.action.aggregateUsersByPreset.description";
79
+ readonly actionListAdminTokenActivity: "mcpAdminContracts.action.listAdminTokenActivity.description";
80
+ readonly actionGetAdminTokenEconomyOverview: "mcpAdminContracts.action.getAdminTokenEconomyOverview.description";
81
+ readonly actionListAdminTokenWalletBalances: "mcpAdminContracts.action.listAdminTokenWalletBalances.description";
82
+ readonly actionGetAdminTokenTrends: "mcpAdminContracts.action.getAdminTokenTrends.description";
67
83
  readonly actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description";
68
84
  readonly actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description";
69
85
  readonly actionRequestAsset: "mcpAdminContracts.action.requestAsset.description";
@@ -77,6 +93,13 @@ declare const mcpAdminContractDescriptionKeys: {
77
93
  readonly actionPromoteAsset: "mcpAdminContracts.action.promoteAsset.description";
78
94
  readonly actionRollbackAsset: "mcpAdminContracts.action.rollbackAsset.description";
79
95
  readonly actionGetAssetJobStatus: "mcpAdminContracts.action.getAssetJobStatus.description";
96
+ readonly actionGetUserTokenWallet: "mcpAdminContracts.action.getUserTokenWallet.description";
97
+ readonly actionListUserTokenActivity: "mcpAdminContracts.action.listUserTokenActivity.description";
98
+ readonly actionListTokenAdjustments: "mcpAdminContracts.action.listTokenAdjustments.description";
99
+ readonly actionProposeTokenCredit: "mcpAdminContracts.action.proposeTokenCredit.description";
100
+ readonly actionApproveTokenCredit: "mcpAdminContracts.action.approveTokenCredit.description";
101
+ readonly actionRejectTokenCredit: "mcpAdminContracts.action.rejectTokenCredit.description";
102
+ readonly actionReverseTokenCredit: "mcpAdminContracts.action.reverseTokenCredit.description";
80
103
  readonly verificationEnableFeatureFlag: "mcpAdminContracts.verification.enableFeatureFlag.description";
81
104
  readonly verificationDisableFeatureFlag: "mcpAdminContracts.verification.disableFeatureFlag.description";
82
105
  readonly verificationAssignCapability: "mcpAdminContracts.verification.assignCapability.description";
@@ -84,13 +107,14 @@ declare const mcpAdminContractDescriptionKeys: {
84
107
  readonly verificationUpdateCapability: "mcpAdminContracts.verification.updateCapability.description";
85
108
  readonly verificationPromoteAsset: "mcpAdminContracts.verification.promoteAsset.description";
86
109
  readonly verificationRollbackAsset: "mcpAdminContracts.verification.rollbackAsset.description";
110
+ readonly verificationTokenAdjustment: "mcpAdminContracts.verification.tokenAdjustment.description";
87
111
  };
88
112
  type McpAdminContractDescriptionKey = (typeof mcpAdminContractDescriptionKeys)[keyof typeof mcpAdminContractDescriptionKeys];
89
113
 
90
114
  declare const mcpAdminContractsTranslations: {
91
115
  readonly "en-GB": {
92
- readonly "mcpAdminContracts.manifest.descriptionForModel": "OAuth-protected MCP discovery manifest for the Plasius admin control plane covering feature flags, capabilities, analytics, and audit-backed operations.";
93
- readonly "mcpAdminContracts.manifest.description": "Authenticated admin MCP discovery for the Plasius feature flag, capability, analytics, and audit control plane.";
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.";
94
118
  readonly "mcpAdminContracts.action.listFeatureFlags.description": "List existing feature flags from the admin rollout control plane.";
95
119
  readonly "mcpAdminContracts.action.getFeatureFlag.description": "Fetch one feature flag by stable key.";
96
120
  readonly "mcpAdminContracts.action.updateFeatureFlag.description": "Patch an existing feature flag without bypassing the current admin update semantics.";
@@ -110,6 +134,10 @@ declare const mcpAdminContractsTranslations: {
110
134
  readonly "mcpAdminContracts.action.listAggregationDimensions.description": "List the approved user-aggregation dimensions from the MCP whitelist.";
111
135
  readonly "mcpAdminContracts.action.aggregateUsers.description": "Run grouped user aggregation over the bounded admin user data surface.";
112
136
  readonly "mcpAdminContracts.action.aggregateUsersByPreset.description": "Run a curated user-aggregation preset against the bounded aggregation route.";
137
+ readonly "mcpAdminContracts.action.listAdminTokenActivity.description": "List bounded pseudonymous Token activity after re-checking MCP scope, finance capabilities, and stored rollout flags.";
138
+ readonly "mcpAdminContracts.action.getAdminTokenEconomyOverview.description": "Read the identifier-free global Token balance, lifetime totals, wallet counts, and authoritative projection freshness.";
139
+ readonly "mcpAdminContracts.action.listAdminTokenWalletBalances.description": "List bounded pseudonymous Token wallet balances without exposing account, payment, provider, or raw wallet identifiers.";
140
+ readonly "mcpAdminContracts.action.getAdminTokenTrends.description": "Read privacy-suppressed Token acquisition and usage trends with explainable advisory anomaly indicators.";
113
141
  readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
114
142
  readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
115
143
  readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
@@ -123,6 +151,13 @@ declare const mcpAdminContractsTranslations: {
123
151
  readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
124
152
  readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
125
153
  readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
154
+ readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
155
+ readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
156
+ readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
157
+ readonly "mcpAdminContracts.action.proposeTokenCredit.description": "Propose a positive Token credit for a server-resolved personal wallet; a distinct owner must approve it.";
158
+ readonly "mcpAdminContracts.action.approveTokenCredit.description": "Approve a preview-bound Token credit proposed by a different owner.";
159
+ readonly "mcpAdminContracts.action.rejectTokenCredit.description": "Reject a pending Token credit without mutating the wallet.";
160
+ readonly "mcpAdminContracts.action.reverseTokenCredit.description": "Propose an immutable compensating reversal of an earlier owner Token credit.";
126
161
  readonly "mcpAdminContracts.verification.enableFeatureFlag.description": "Use admin audit history to verify the rollout change.";
127
162
  readonly "mcpAdminContracts.verification.disableFeatureFlag.description": "Use admin audit history to verify the rollout change.";
128
163
  readonly "mcpAdminContracts.verification.assignCapability.description": "Use admin audit history to verify the stored rule written by the capability assignment.";
@@ -130,6 +165,7 @@ declare const mcpAdminContractsTranslations: {
130
165
  readonly "mcpAdminContracts.verification.updateCapability.description": "Use admin audit history to verify the stored rule updated by the capability mutation.";
131
166
  readonly "mcpAdminContracts.verification.promoteAsset.description": "Use asset promotion history and admin audit events to verify the immutable runtime manifest promotion.";
132
167
  readonly "mcpAdminContracts.verification.rollbackAsset.description": "Use asset promotion history and admin audit events to verify the runtime channel rollback.";
168
+ readonly "mcpAdminContracts.verification.tokenAdjustment.description": "Read the adjustment and Token activity history to verify its immutable proposal, decision, and ledger result.";
133
169
  };
134
170
  };
135
171
  /**
@@ -138,9 +174,10 @@ declare const mcpAdminContractsTranslations: {
138
174
  */
139
175
  declare function getMcpAdminContractDefaultTranslation(key: McpAdminContractDescriptionKey): string;
140
176
 
141
- declare const MCP_ADMIN_CONTRACT_VERSION = "2026-04-28.v3";
177
+ declare const MCP_ADMIN_CONTRACT_VERSION = "2026-08-08.v5";
142
178
  declare const MCP_ADMIN_REGISTRY_SOURCE = "@plasius/mcp-admin-contracts";
143
179
  declare const MCP_ADMIN_FOUNDATION_FLAG_ID = "mcp.admin.foundation.enabled";
180
+ declare const MCP_ACCESS_SCOPE = "mcp:access";
144
181
  /**
145
182
  * @deprecated Runtime rollout decisions must come from stored feature flags.
146
183
  * This env name is retained only for source compatibility with older hosts.
@@ -149,6 +186,10 @@ declare const MCP_ADMIN_FOUNDATION_ENV_VAR = "MCP_ADMIN_FOUNDATION_ENABLED";
149
186
  declare const MCP_ADMIN_FOUNDATION_DISABLED_CODE = "MCP_ADMIN_FOUNDATION_DISABLED";
150
187
  declare const MCP_ADMIN_LIVEOPS_FLAG_ID = "mcp.admin.liveops-controls.enabled";
151
188
  declare const MCP_ADMIN_ANALYTICS_FLAG_ID = "mcp.admin.analytics.enabled";
189
+ declare const ECONOMY_ADMIN_HISTORY_FLAG_ID = "economy.admin-history.enabled";
190
+ declare const MCP_ADMIN_ECONOMY_HISTORY_FLAG_ID = "mcp.admin-economy-history.enabled";
191
+ declare const MCP_ADMIN_ECONOMY_READ_CAPABILITY = "admin.economy.read";
192
+ declare const ECONOMY_FINANCE_OPERATIONS_VIEW_CAPABILITY = "economy.finance-operations.view";
152
193
  declare const MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID = "mcp.admin.production-readiness.enabled";
153
194
  /**
154
195
  * @deprecated Runtime rollout decisions must come from stored feature flags.
@@ -161,6 +202,11 @@ declare const MCP_ASSET_CATALOG_REQUEST_CAPABILITY = "asset.catalog.request";
161
202
  declare const MCP_ASSET_PIPELINE_MANAGE_CAPABILITY = "asset.pipeline.mcp.manage";
162
203
  declare const MCP_ASSET_SOURCE_MANAGE_CAPABILITY = "asset.source.manage";
163
204
  declare const MCP_ASSET_CATALOG_REVIEW_CAPABILITY = "asset.catalog.review";
205
+ declare const MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID = "mcp.admin-economy-adjustments.enabled";
206
+ declare const ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID = "economy.tokens.owner-adjustments.enabled";
207
+ declare const MCP_ECONOMY_FINANCE_VIEW_CAPABILITY = "economy.finance-operations.view";
208
+ declare const MCP_ECONOMY_FINANCE_ADJUST_CAPABILITY = "economy.finance-operations.adjust";
209
+ declare const MCP_ECONOMY_FINANCE_APPROVE_CAPABILITY = "economy.finance-operations.approve-adjustment";
164
210
  interface AiPluginManifest {
165
211
  schema_version: "1.0.0";
166
212
  name: string;
@@ -187,7 +233,14 @@ interface McpFieldShape {
187
233
  required?: boolean;
188
234
  enum?: readonly string[];
189
235
  itemType?: string;
236
+ items?: McpFieldShape;
190
237
  properties?: Record<string, McpFieldShape>;
238
+ format?: string;
239
+ minimum?: number;
240
+ maximum?: number;
241
+ minItems?: number;
242
+ maxItems?: number;
243
+ default?: string | number | boolean;
191
244
  }
192
245
  interface McpActionExecution {
193
246
  method: "GET" | "POST" | "PATCH" | "DELETE";
@@ -203,8 +256,18 @@ interface McpActionVerification {
203
256
  descriptionKey: McpAdminContractDescriptionKey;
204
257
  descriptionDefault: string;
205
258
  }
206
- type McpActionDomain = "featureFlags" | "capabilities" | "analytics" | "userAggregation" | "assetCatalog" | "assetPipeline" | "assetSource" | "assetReview";
259
+ type McpActionDomain = "featureFlags" | "capabilities" | "analytics" | "userAggregation" | "economy" | "assetCatalog" | "assetPipeline" | "assetSource" | "assetReview" | "economyAdjustments";
207
260
  type McpActionFamilyDomain = McpActionDomain | "productionReadiness";
261
+ interface McpActionAccessRequirements {
262
+ /** OAuth scopes re-checked by the consuming runtime. */
263
+ oauthScopes: readonly string[];
264
+ /** Product capabilities re-resolved for the mapped MCP identity. */
265
+ capabilities: readonly string[];
266
+ /** Stored rollout flags that must all be enabled by the host. */
267
+ rolloutFlags: readonly string[];
268
+ mode: "read-only" | "mutation";
269
+ identityResolution: "not-available" | "separate-governed-operation";
270
+ }
208
271
  interface McpActionDescriptor {
209
272
  name: string;
210
273
  description: string;
@@ -216,6 +279,9 @@ interface McpActionDescriptor {
216
279
  execution: McpActionExecution;
217
280
  input: Record<string, McpFieldShape>;
218
281
  output: Record<string, McpFieldShape>;
282
+ requiredCapability?: string;
283
+ requiredTokenScopes?: readonly string[];
284
+ access?: McpActionAccessRequirements;
219
285
  verification?: McpActionVerification;
220
286
  }
221
287
  interface McpActionSummary {
@@ -227,6 +293,9 @@ interface McpActionSummary {
227
293
  rolloutFlag: string;
228
294
  availability: McpActionDescriptor["availability"];
229
295
  execution: McpActionExecution;
296
+ requiredCapability?: string;
297
+ requiredTokenScopes?: readonly string[];
298
+ access?: McpActionAccessRequirements;
230
299
  }
231
300
  interface McpDiscoveryResponse {
232
301
  contractVersion: string;
@@ -286,6 +355,9 @@ interface McpSchemaResponse {
286
355
  execution: McpActionExecution;
287
356
  input: Record<string, McpFieldShape>;
288
357
  output: Record<string, McpFieldShape>;
358
+ requiredCapability?: string;
359
+ requiredTokenScopes?: readonly string[];
360
+ access?: McpActionAccessRequirements;
289
361
  verification?: McpActionVerification;
290
362
  }>;
291
363
  contextShape: Record<string, McpFieldShape>;
@@ -302,6 +374,14 @@ declare const MCP_ADMIN_ANALYTICS_PRESETS: readonly ["adminOverview", "recentErr
302
374
  declare const MCP_ADMIN_USER_AGGREGATION_METRICS: readonly ["userCount"];
303
375
  declare const MCP_ADMIN_USER_AGGREGATION_DIMENSIONS: readonly ["accountState", "notificationPreference", "avatarState", "accountAgeBand"];
304
376
  declare const MCP_ADMIN_USER_AGGREGATION_PRESETS: readonly ["usersByAccountState", "usersByNotificationPreference", "usersByAccountAgeBand"];
377
+ declare const MCP_ADMIN_TOKEN_ACTIVITY_TYPES: readonly ["acquisition", "spend", "reversal", "hold", "failure"];
378
+ declare const MCP_ADMIN_TOKEN_ACTIVITY_STATUSES: readonly ["pending", "held", "settled", "reversed", "failed"];
379
+ declare const MCP_ADMIN_TOKEN_WALLET_COMPONENTS: readonly ["household", "personal", "gameplay-allocation"];
380
+ declare const MCP_ADMIN_TOKEN_WALLET_STATUSES: readonly ["active", "closed"];
381
+ declare const MCP_ADMIN_TOKEN_WALLET_SORTS: readonly ["available-desc", "updated-at-desc"];
382
+ /** Provider-neutral source groupings; provider names are intentionally absent. */
383
+ declare const MCP_ADMIN_TOKEN_ACTIVITY_SOURCES: readonly ["paid-purchase", "subscription", "rewarded-activity", "gameplay", "system-adjustment", "unknown"];
384
+ declare const MCP_ADMIN_TOKEN_ACTIVITY_SORTS: readonly ["occurred-at-desc", "amount-absolute-desc"];
305
385
  declare const MCP_ASSET_SOURCE_ADAPTERS: readonly ["polyhaven", "kenney", "smithsonian-open-access", "nasa"];
306
386
  declare const MCP_ASSET_SOURCE_TIERS: readonly ["tier-0"];
307
387
  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"];
@@ -322,4 +402,4 @@ declare function buildMcpDiscoveryResponse(): McpDiscoveryResponse;
322
402
  declare function buildMcpSchemaResponse(): McpSchemaResponse;
323
403
  declare function buildMcpContextResponse(options: BuildMcpContextResponseOptions): McpContextResponse;
324
404
 
325
- export { type AiPluginManifest, type BuildMcpContextResponseOptions, 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_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_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, 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 };
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 };