@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/CHANGELOG.md +54 -0
- package/README.md +87 -7
- package/dist/index.cjs +272 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +100 -7
- package/dist/index.d.ts +100 -7
- package/dist/index.js +278 -13
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0006-canonical-model-resolution-discovery.md +66 -0
- package/docs/adrs/adr-0007-safe-game-reconstruction-point-read.md +81 -0
- package/docs/adrs/index.md +2 -0
- package/package.json +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
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
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.";
|
|
3
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.";
|
|
@@ -29,6 +32,7 @@ declare const mcpAdminContractsEnGbTranslations: {
|
|
|
29
32
|
readonly "mcpAdminContracts.action.listFeedbackAlerts.description": "List bounded deterministic feedback advisories using an opaque cursor.";
|
|
30
33
|
readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
|
|
31
34
|
readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
|
|
35
|
+
readonly "mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.";
|
|
32
36
|
readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
|
|
33
37
|
readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
|
|
34
38
|
readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
|
|
@@ -42,6 +46,14 @@ declare const mcpAdminContractsEnGbTranslations: {
|
|
|
42
46
|
readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
|
|
43
47
|
readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
|
|
44
48
|
readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
|
|
49
|
+
readonly "mcpAdminContracts.action.listModelSearchRankers.description": "List allowlisted, calibrated model-search rankers and their current readiness without selecting a substitute.";
|
|
50
|
+
readonly "mcpAdminContracts.action.searchModelCatalog.description": "Search promoted model catalog versions using hard constraints and one exact calibrated ranker selection.";
|
|
51
|
+
readonly "mcpAdminContracts.action.resolveModelRequest.description": "Search the catalog and idempotently create asynchronous provider or generator fallback work when needed.";
|
|
52
|
+
readonly "mcpAdminContracts.action.getModelResolution.description": "Read an owned immutable model-resolution revision, progress, questions, and review evidence.";
|
|
53
|
+
readonly "mcpAdminContracts.action.confirmModelCandidate.description": "Confirm one exact four-view candidate; low assurance additionally requires explicit semantic-risk acceptance.";
|
|
54
|
+
readonly "mcpAdminContracts.action.retryModelResolution.description": "Create the next immutable request revision from bounded refinement answers and candidate exclusions.";
|
|
55
|
+
readonly "mcpAdminContracts.action.cancelModelResolution.description": "Idempotently cancel unfinished work owned by the requester.";
|
|
56
|
+
readonly "mcpAdminContracts.action.rebuildModelCatalogIndex.description": "Run an operator-only idempotent full, backfill, or repair rebuild of the promoted model catalog index.";
|
|
45
57
|
readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
|
|
46
58
|
readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
|
|
47
59
|
readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
|
|
@@ -90,6 +102,7 @@ declare const mcpAdminContractDescriptionKeys: {
|
|
|
90
102
|
readonly actionListFeedbackAlerts: "mcpAdminContracts.action.listFeedbackAlerts.description";
|
|
91
103
|
readonly actionGetFeedbackFreshness: "mcpAdminContracts.action.getFeedbackFreshness.description";
|
|
92
104
|
readonly actionListFeedbackStructuredEntries: "mcpAdminContracts.action.listFeedbackStructuredEntries.description";
|
|
105
|
+
readonly actionGetFeedbackGameReconstruction: "mcpAdminContracts.action.getFeedbackGameReconstruction.description";
|
|
93
106
|
readonly actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description";
|
|
94
107
|
readonly actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description";
|
|
95
108
|
readonly actionRequestAsset: "mcpAdminContracts.action.requestAsset.description";
|
|
@@ -103,6 +116,14 @@ declare const mcpAdminContractDescriptionKeys: {
|
|
|
103
116
|
readonly actionPromoteAsset: "mcpAdminContracts.action.promoteAsset.description";
|
|
104
117
|
readonly actionRollbackAsset: "mcpAdminContracts.action.rollbackAsset.description";
|
|
105
118
|
readonly actionGetAssetJobStatus: "mcpAdminContracts.action.getAssetJobStatus.description";
|
|
119
|
+
readonly actionListModelSearchRankers: "mcpAdminContracts.action.listModelSearchRankers.description";
|
|
120
|
+
readonly actionSearchModelCatalog: "mcpAdminContracts.action.searchModelCatalog.description";
|
|
121
|
+
readonly actionResolveModelRequest: "mcpAdminContracts.action.resolveModelRequest.description";
|
|
122
|
+
readonly actionGetModelResolution: "mcpAdminContracts.action.getModelResolution.description";
|
|
123
|
+
readonly actionConfirmModelCandidate: "mcpAdminContracts.action.confirmModelCandidate.description";
|
|
124
|
+
readonly actionRetryModelResolution: "mcpAdminContracts.action.retryModelResolution.description";
|
|
125
|
+
readonly actionCancelModelResolution: "mcpAdminContracts.action.cancelModelResolution.description";
|
|
126
|
+
readonly actionRebuildModelCatalogIndex: "mcpAdminContracts.action.rebuildModelCatalogIndex.description";
|
|
106
127
|
readonly actionGetUserTokenWallet: "mcpAdminContracts.action.getUserTokenWallet.description";
|
|
107
128
|
readonly actionListUserTokenActivity: "mcpAdminContracts.action.listUserTokenActivity.description";
|
|
108
129
|
readonly actionListTokenAdjustments: "mcpAdminContracts.action.listTokenAdjustments.description";
|
|
@@ -153,6 +174,7 @@ declare const mcpAdminContractsTranslations: {
|
|
|
153
174
|
readonly "mcpAdminContracts.action.listFeedbackAlerts.description": "List bounded deterministic feedback advisories using an opaque cursor.";
|
|
154
175
|
readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
|
|
155
176
|
readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
|
|
177
|
+
readonly "mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.";
|
|
156
178
|
readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
|
|
157
179
|
readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
|
|
158
180
|
readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
|
|
@@ -166,6 +188,14 @@ declare const mcpAdminContractsTranslations: {
|
|
|
166
188
|
readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
|
|
167
189
|
readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
|
|
168
190
|
readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
|
|
191
|
+
readonly "mcpAdminContracts.action.listModelSearchRankers.description": "List allowlisted, calibrated model-search rankers and their current readiness without selecting a substitute.";
|
|
192
|
+
readonly "mcpAdminContracts.action.searchModelCatalog.description": "Search promoted model catalog versions using hard constraints and one exact calibrated ranker selection.";
|
|
193
|
+
readonly "mcpAdminContracts.action.resolveModelRequest.description": "Search the catalog and idempotently create asynchronous provider or generator fallback work when needed.";
|
|
194
|
+
readonly "mcpAdminContracts.action.getModelResolution.description": "Read an owned immutable model-resolution revision, progress, questions, and review evidence.";
|
|
195
|
+
readonly "mcpAdminContracts.action.confirmModelCandidate.description": "Confirm one exact four-view candidate; low assurance additionally requires explicit semantic-risk acceptance.";
|
|
196
|
+
readonly "mcpAdminContracts.action.retryModelResolution.description": "Create the next immutable request revision from bounded refinement answers and candidate exclusions.";
|
|
197
|
+
readonly "mcpAdminContracts.action.cancelModelResolution.description": "Idempotently cancel unfinished work owned by the requester.";
|
|
198
|
+
readonly "mcpAdminContracts.action.rebuildModelCatalogIndex.description": "Run an operator-only idempotent full, backfill, or repair rebuild of the promoted model catalog index.";
|
|
169
199
|
readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
|
|
170
200
|
readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
|
|
171
201
|
readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
|
|
@@ -189,7 +219,7 @@ declare const mcpAdminContractsTranslations: {
|
|
|
189
219
|
*/
|
|
190
220
|
declare function getMcpAdminContractDefaultTranslation(key: McpAdminContractDescriptionKey): string;
|
|
191
221
|
|
|
192
|
-
declare const MCP_ADMIN_CONTRACT_VERSION = "2026-08-
|
|
222
|
+
declare const MCP_ADMIN_CONTRACT_VERSION = "2026-08-26.v8";
|
|
193
223
|
declare const MCP_ADMIN_REGISTRY_SOURCE = "@plasius/mcp-admin-contracts";
|
|
194
224
|
declare const MCP_ADMIN_FOUNDATION_FLAG_ID = "mcp.admin.foundation.enabled";
|
|
195
225
|
declare const MCP_ACCESS_SCOPE = "mcp:access";
|
|
@@ -213,11 +243,25 @@ declare const MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID = "mcp.admin.production-rea
|
|
|
213
243
|
declare const MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR = "MCP_ADMIN_PRODUCTION_READINESS_ENABLED";
|
|
214
244
|
declare const MCP_ASSET_PIPELINE_FLAG_ID = "asset.pipeline.unified-ai-assets.enabled";
|
|
215
245
|
declare const MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID = "asset.pipeline.external-model-harvest.enabled";
|
|
216
|
-
declare const MCP_ASSET_CATALOG_REQUEST_CAPABILITY
|
|
217
|
-
declare const
|
|
218
|
-
declare const
|
|
219
|
-
declare const
|
|
246
|
+
declare const MCP_ASSET_CATALOG_REQUEST_CAPABILITY: "asset.catalog.request";
|
|
247
|
+
declare const MCP_ASSET_CATALOG_CONFIRM_CAPABILITY: "asset.catalog.confirm";
|
|
248
|
+
declare const MCP_ASSET_PIPELINE_MANAGE_CAPABILITY: "asset.pipeline.mcp.manage";
|
|
249
|
+
declare const MCP_ASSET_SOURCE_MANAGE_CAPABILITY: "asset.source.manage";
|
|
250
|
+
declare const MCP_ASSET_CATALOG_REVIEW_CAPABILITY: "asset.catalog.review";
|
|
251
|
+
declare const MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION: "2026-07-13.v1";
|
|
252
|
+
declare const MCP_ADMIN_MODEL_REGISTRY_SOURCE = "@plasius/asset-mcp";
|
|
253
|
+
declare const MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION: "2026-07-12.v1";
|
|
254
|
+
declare const MCP_ADMIN_MODEL_CAPABILITIES: Readonly<{
|
|
255
|
+
catalogRequest: "asset.catalog.request";
|
|
256
|
+
catalogConfirm: "asset.catalog.confirm";
|
|
257
|
+
catalogReview: "asset.catalog.review";
|
|
258
|
+
sourceManage: "asset.source.manage";
|
|
259
|
+
pipelineManage: "asset.pipeline.mcp.manage";
|
|
260
|
+
}>;
|
|
261
|
+
declare const MCP_ADMIN_MODEL_OAUTH_SCOPES: readonly string[];
|
|
220
262
|
declare const MCP_ADMIN_FEEDBACK_FLAG_ID = "feedback.mcp.enabled";
|
|
263
|
+
/** Metadata only: the hosted runtime must register the feedback MCP family off. */
|
|
264
|
+
declare const MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED = false;
|
|
221
265
|
declare const MCP_ADMIN_FEEDBACK_READ_CAPABILITY = "admin.feedback.read";
|
|
222
266
|
declare const MCP_ADMIN_BASE_OAUTH_SCOPE = "mcp:access";
|
|
223
267
|
declare const MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE = "admin.feedback.read";
|
|
@@ -228,7 +272,7 @@ declare const MCP_ADMIN_FEEDBACK_WINDOWS: readonly ["previous-utc-hour", "last-2
|
|
|
228
272
|
declare const MCP_ADMIN_FEEDBACK_PACKET_TYPES: readonly ["feedback-bug-packet", "feedback-review-packet"];
|
|
229
273
|
declare const MCP_ADMIN_FEEDBACK_REPORT_TYPES: readonly ["feedback-hourly-bug-report", "feedback-daily-satisfaction-report"];
|
|
230
274
|
declare const MCP_ADMIN_FEEDBACK_PROCESSORS: readonly ["bug-hourly", "review-daily", "commit-reconciliation"];
|
|
231
|
-
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"];
|
|
275
|
+
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", "client-pixels", "filenames", "exact-coordinates", "exact-dimensions", "adapter-fingerprints", "raw-warnings", "blob-references", "request-telemetry", "raw-urls", "unrestricted-scans", "mutations"];
|
|
232
276
|
declare const MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID = "mcp.admin-economy-adjustments.enabled";
|
|
233
277
|
declare const ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID = "economy.tokens.owner-adjustments.enabled";
|
|
234
278
|
declare const MCP_ECONOMY_FINANCE_VIEW_CAPABILITY = "economy.finance-operations.view";
|
|
@@ -350,10 +394,51 @@ interface McpActionSummary {
|
|
|
350
394
|
requiredTokenScopes?: readonly string[];
|
|
351
395
|
access?: McpActionAccessRequirements;
|
|
352
396
|
}
|
|
397
|
+
interface McpModelToolExecution {
|
|
398
|
+
protocol: "json-rpc-2.0";
|
|
399
|
+
method: "POST";
|
|
400
|
+
path: "/api/mcp";
|
|
401
|
+
rpcMethod: "tools/call";
|
|
402
|
+
toolName: ModelMcpToolName;
|
|
403
|
+
}
|
|
404
|
+
type McpModelToolSummary = Omit<ModelMcpToolDefinition, "inputSchema" | "outputSchema"> & {
|
|
405
|
+
descriptionKey: McpAdminContractDescriptionKey;
|
|
406
|
+
descriptionDefault: string;
|
|
407
|
+
availability: "near-future";
|
|
408
|
+
execution: McpModelToolExecution;
|
|
409
|
+
verificationNotes: readonly string[];
|
|
410
|
+
};
|
|
411
|
+
type McpModelToolSchemaDescriptor = ModelMcpToolDefinition & {
|
|
412
|
+
descriptionKey: McpAdminContractDescriptionKey;
|
|
413
|
+
descriptionDefault: string;
|
|
414
|
+
availability: "near-future";
|
|
415
|
+
execution: McpModelToolExecution;
|
|
416
|
+
verificationNotes: readonly string[];
|
|
417
|
+
};
|
|
418
|
+
interface McpModelResolutionContext {
|
|
419
|
+
toolContractVersion: typeof MODEL_MCP_CONTRACT_VERSION;
|
|
420
|
+
sourceOfTruth: typeof ASSET_MCP_PACKAGE;
|
|
421
|
+
resolutionContractVersion: typeof MODEL_RESOLUTION_CONTRACT_VERSION;
|
|
422
|
+
endpoint: "/api/mcp";
|
|
423
|
+
protocol: "json-rpc-2.0";
|
|
424
|
+
rpcMethod: "tools/call";
|
|
425
|
+
requiredFeatureFlag: typeof MODEL_MCP_UNIFIED_FEATURE_FLAG_ID;
|
|
426
|
+
conditionalFeatureFlags: readonly [
|
|
427
|
+
typeof MODEL_MCP_EXTERNAL_HARVEST_FEATURE_FLAG_ID,
|
|
428
|
+
typeof MODEL_MCP_GENERATION_FEATURE_FLAG_ID
|
|
429
|
+
];
|
|
430
|
+
tools: readonly ModelMcpToolName[];
|
|
431
|
+
resourceTemplates: readonly string[];
|
|
432
|
+
}
|
|
353
433
|
interface McpDiscoveryResponse {
|
|
354
434
|
contractVersion: string;
|
|
355
435
|
sourceOfTruth: string;
|
|
356
436
|
actions: McpActionSummary[];
|
|
437
|
+
/** Additive canonical JSON-RPC model tools; legacy REST actions stay separate. */
|
|
438
|
+
modelTools?: McpModelToolSummary[];
|
|
439
|
+
/** Authenticated `mcp://models/...` templates owned by `@plasius/asset-mcp`. */
|
|
440
|
+
modelResources?: readonly ModelMcpResourceTemplate[];
|
|
441
|
+
modelSourceOfTruth?: typeof ASSET_MCP_PACKAGE;
|
|
357
442
|
}
|
|
358
443
|
interface McpAuthenticatedUserContext {
|
|
359
444
|
id: string;
|
|
@@ -399,6 +484,8 @@ interface McpContextResponse {
|
|
|
399
484
|
singleResourceMutations: boolean;
|
|
400
485
|
notes: string[];
|
|
401
486
|
};
|
|
487
|
+
/** Additive canonical model-resolution family metadata. */
|
|
488
|
+
modelResolution?: McpModelResolutionContext;
|
|
402
489
|
}
|
|
403
490
|
interface McpSchemaResponse {
|
|
404
491
|
contractVersion: string;
|
|
@@ -420,6 +507,10 @@ interface McpSchemaResponse {
|
|
|
420
507
|
}>;
|
|
421
508
|
contextShape: Record<string, McpFieldShape>;
|
|
422
509
|
extensionRules: McpContextResponse["extensionRules"];
|
|
510
|
+
/** Canonical schemas are referenced directly from `@plasius/asset-mcp`. */
|
|
511
|
+
modelTools?: Record<ModelMcpToolName, McpModelToolSchemaDescriptor>;
|
|
512
|
+
modelResources?: readonly ModelMcpResourceTemplate[];
|
|
513
|
+
modelSourceOfTruth?: typeof ASSET_MCP_PACKAGE;
|
|
423
514
|
}
|
|
424
515
|
interface BuildMcpContextResponseOptions {
|
|
425
516
|
origin: string;
|
|
@@ -453,6 +544,8 @@ declare const MCP_ADMIN_FEEDBACK_ALERT_WINDOWS: readonly ["last-24-hours", "last
|
|
|
453
544
|
declare const MCP_ADMIN_FEEDBACK_PRIVACY_METADATA: McpFeedbackPrivacyMetadata;
|
|
454
545
|
declare const MCP_ADMIN_FEEDBACK_ACTIONS: readonly McpActionDescriptor[];
|
|
455
546
|
declare const MCP_ADMIN_ACTIONS: readonly McpActionDescriptor[];
|
|
547
|
+
declare function listMcpModelToolSummaries(): McpModelToolSummary[];
|
|
548
|
+
declare function listMcpModelResourceTemplates(): readonly ModelMcpResourceTemplate[];
|
|
456
549
|
declare function listMcpActionSummaries(): McpActionSummary[];
|
|
457
550
|
declare const MCP_ADMIN_CONTEXT_SHAPE: Record<string, McpFieldShape>;
|
|
458
551
|
declare const MCP_ADMIN_EXTENSION_RULES: {
|
|
@@ -468,4 +561,4 @@ declare function buildMcpDiscoveryResponse(): McpDiscoveryResponse;
|
|
|
468
561
|
declare function buildMcpSchemaResponse(): McpSchemaResponse;
|
|
469
562
|
declare function buildMcpContextResponse(options: BuildMcpContextResponseOptions): McpContextResponse;
|
|
470
563
|
|
|
471
|
-
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_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 McpCanonicalSchemaSource, type McpContextResponse, type McpDiscoveryResponse, type McpFeedbackPrivacyExclusion, type McpFeedbackPrivacyMetadata, type McpFieldShape, type McpRolloutContext, type McpSchemaResponse, type McpSurfaceUrls, buildAiPluginManifest, buildMcpContextResponse, buildMcpDiscoveryResponse, buildMcpSchemaResponse, buildMcpSurfaceUrls, getMcpAdminContractDefaultTranslation, listMcpActionSummaries, mcpAdminContractDescriptionKeys, mcpAdminContractsEnGbTranslations, mcpAdminContractsTranslations };
|
|
564
|
+
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_HOST_DEFAULT_ENABLED, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
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
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.";
|
|
3
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.";
|
|
@@ -29,6 +32,7 @@ declare const mcpAdminContractsEnGbTranslations: {
|
|
|
29
32
|
readonly "mcpAdminContracts.action.listFeedbackAlerts.description": "List bounded deterministic feedback advisories using an opaque cursor.";
|
|
30
33
|
readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
|
|
31
34
|
readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
|
|
35
|
+
readonly "mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.";
|
|
32
36
|
readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
|
|
33
37
|
readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
|
|
34
38
|
readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
|
|
@@ -42,6 +46,14 @@ declare const mcpAdminContractsEnGbTranslations: {
|
|
|
42
46
|
readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
|
|
43
47
|
readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
|
|
44
48
|
readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
|
|
49
|
+
readonly "mcpAdminContracts.action.listModelSearchRankers.description": "List allowlisted, calibrated model-search rankers and their current readiness without selecting a substitute.";
|
|
50
|
+
readonly "mcpAdminContracts.action.searchModelCatalog.description": "Search promoted model catalog versions using hard constraints and one exact calibrated ranker selection.";
|
|
51
|
+
readonly "mcpAdminContracts.action.resolveModelRequest.description": "Search the catalog and idempotently create asynchronous provider or generator fallback work when needed.";
|
|
52
|
+
readonly "mcpAdminContracts.action.getModelResolution.description": "Read an owned immutable model-resolution revision, progress, questions, and review evidence.";
|
|
53
|
+
readonly "mcpAdminContracts.action.confirmModelCandidate.description": "Confirm one exact four-view candidate; low assurance additionally requires explicit semantic-risk acceptance.";
|
|
54
|
+
readonly "mcpAdminContracts.action.retryModelResolution.description": "Create the next immutable request revision from bounded refinement answers and candidate exclusions.";
|
|
55
|
+
readonly "mcpAdminContracts.action.cancelModelResolution.description": "Idempotently cancel unfinished work owned by the requester.";
|
|
56
|
+
readonly "mcpAdminContracts.action.rebuildModelCatalogIndex.description": "Run an operator-only idempotent full, backfill, or repair rebuild of the promoted model catalog index.";
|
|
45
57
|
readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
|
|
46
58
|
readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
|
|
47
59
|
readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
|
|
@@ -90,6 +102,7 @@ declare const mcpAdminContractDescriptionKeys: {
|
|
|
90
102
|
readonly actionListFeedbackAlerts: "mcpAdminContracts.action.listFeedbackAlerts.description";
|
|
91
103
|
readonly actionGetFeedbackFreshness: "mcpAdminContracts.action.getFeedbackFreshness.description";
|
|
92
104
|
readonly actionListFeedbackStructuredEntries: "mcpAdminContracts.action.listFeedbackStructuredEntries.description";
|
|
105
|
+
readonly actionGetFeedbackGameReconstruction: "mcpAdminContracts.action.getFeedbackGameReconstruction.description";
|
|
93
106
|
readonly actionSearchAssetCatalog: "mcpAdminContracts.action.searchAssetCatalog.description";
|
|
94
107
|
readonly actionGetAssetManifest: "mcpAdminContracts.action.getAssetManifest.description";
|
|
95
108
|
readonly actionRequestAsset: "mcpAdminContracts.action.requestAsset.description";
|
|
@@ -103,6 +116,14 @@ declare const mcpAdminContractDescriptionKeys: {
|
|
|
103
116
|
readonly actionPromoteAsset: "mcpAdminContracts.action.promoteAsset.description";
|
|
104
117
|
readonly actionRollbackAsset: "mcpAdminContracts.action.rollbackAsset.description";
|
|
105
118
|
readonly actionGetAssetJobStatus: "mcpAdminContracts.action.getAssetJobStatus.description";
|
|
119
|
+
readonly actionListModelSearchRankers: "mcpAdminContracts.action.listModelSearchRankers.description";
|
|
120
|
+
readonly actionSearchModelCatalog: "mcpAdminContracts.action.searchModelCatalog.description";
|
|
121
|
+
readonly actionResolveModelRequest: "mcpAdminContracts.action.resolveModelRequest.description";
|
|
122
|
+
readonly actionGetModelResolution: "mcpAdminContracts.action.getModelResolution.description";
|
|
123
|
+
readonly actionConfirmModelCandidate: "mcpAdminContracts.action.confirmModelCandidate.description";
|
|
124
|
+
readonly actionRetryModelResolution: "mcpAdminContracts.action.retryModelResolution.description";
|
|
125
|
+
readonly actionCancelModelResolution: "mcpAdminContracts.action.cancelModelResolution.description";
|
|
126
|
+
readonly actionRebuildModelCatalogIndex: "mcpAdminContracts.action.rebuildModelCatalogIndex.description";
|
|
106
127
|
readonly actionGetUserTokenWallet: "mcpAdminContracts.action.getUserTokenWallet.description";
|
|
107
128
|
readonly actionListUserTokenActivity: "mcpAdminContracts.action.listUserTokenActivity.description";
|
|
108
129
|
readonly actionListTokenAdjustments: "mcpAdminContracts.action.listTokenAdjustments.description";
|
|
@@ -153,6 +174,7 @@ declare const mcpAdminContractsTranslations: {
|
|
|
153
174
|
readonly "mcpAdminContracts.action.listFeedbackAlerts.description": "List bounded deterministic feedback advisories using an opaque cursor.";
|
|
154
175
|
readonly "mcpAdminContracts.action.getFeedbackFreshness.description": "Read safe freshness metadata for the hourly bug and daily satisfaction processors.";
|
|
155
176
|
readonly "mcpAdminContracts.action.listFeedbackStructuredEntries.description": "List bounded reporter-identifier-free structured feedback entries without narrative or storage references.";
|
|
177
|
+
readonly "mcpAdminContracts.action.getFeedbackGameReconstruction.description": "Read one clearly labelled safe in-game reconstruction manifest without captured pixels, narrative, reporter identity, or storage references.";
|
|
156
178
|
readonly "mcpAdminContracts.action.searchAssetCatalog.description": "Search promoted asset catalog records without live third-party lookup.";
|
|
157
179
|
readonly "mcpAdminContracts.action.getAssetManifest.description": "Fetch a promoted player-safe runtime asset manifest reference.";
|
|
158
180
|
readonly "mcpAdminContracts.action.requestAsset.description": "Queue a governed missing-asset request when no promoted catalog match exists.";
|
|
@@ -166,6 +188,14 @@ declare const mcpAdminContractsTranslations: {
|
|
|
166
188
|
readonly "mcpAdminContracts.action.promoteAsset.description": "Promote an approved asset candidate to an immutable runtime manifest reference.";
|
|
167
189
|
readonly "mcpAdminContracts.action.rollbackAsset.description": "Rollback an asset runtime channel to a previous promoted manifest version.";
|
|
168
190
|
readonly "mcpAdminContracts.action.getAssetJobStatus.description": "Read governed asset job status, planned processing work, and evidence references.";
|
|
191
|
+
readonly "mcpAdminContracts.action.listModelSearchRankers.description": "List allowlisted, calibrated model-search rankers and their current readiness without selecting a substitute.";
|
|
192
|
+
readonly "mcpAdminContracts.action.searchModelCatalog.description": "Search promoted model catalog versions using hard constraints and one exact calibrated ranker selection.";
|
|
193
|
+
readonly "mcpAdminContracts.action.resolveModelRequest.description": "Search the catalog and idempotently create asynchronous provider or generator fallback work when needed.";
|
|
194
|
+
readonly "mcpAdminContracts.action.getModelResolution.description": "Read an owned immutable model-resolution revision, progress, questions, and review evidence.";
|
|
195
|
+
readonly "mcpAdminContracts.action.confirmModelCandidate.description": "Confirm one exact four-view candidate; low assurance additionally requires explicit semantic-risk acceptance.";
|
|
196
|
+
readonly "mcpAdminContracts.action.retryModelResolution.description": "Create the next immutable request revision from bounded refinement answers and candidate exclusions.";
|
|
197
|
+
readonly "mcpAdminContracts.action.cancelModelResolution.description": "Idempotently cancel unfinished work owned by the requester.";
|
|
198
|
+
readonly "mcpAdminContracts.action.rebuildModelCatalogIndex.description": "Run an operator-only idempotent full, backfill, or repair rebuild of the promoted model catalog index.";
|
|
169
199
|
readonly "mcpAdminContracts.action.getUserTokenWallet.description": "Read an account's server-resolved Token wallet summary without exposing provider or payment data.";
|
|
170
200
|
readonly "mcpAdminContracts.action.listUserTokenActivity.description": "Read a bounded, cursor-paginated Token activity history for one account.";
|
|
171
201
|
readonly "mcpAdminContracts.action.listTokenAdjustments.description": "List audited Token adjustment proposals and their approval state.";
|
|
@@ -189,7 +219,7 @@ declare const mcpAdminContractsTranslations: {
|
|
|
189
219
|
*/
|
|
190
220
|
declare function getMcpAdminContractDefaultTranslation(key: McpAdminContractDescriptionKey): string;
|
|
191
221
|
|
|
192
|
-
declare const MCP_ADMIN_CONTRACT_VERSION = "2026-08-
|
|
222
|
+
declare const MCP_ADMIN_CONTRACT_VERSION = "2026-08-26.v8";
|
|
193
223
|
declare const MCP_ADMIN_REGISTRY_SOURCE = "@plasius/mcp-admin-contracts";
|
|
194
224
|
declare const MCP_ADMIN_FOUNDATION_FLAG_ID = "mcp.admin.foundation.enabled";
|
|
195
225
|
declare const MCP_ACCESS_SCOPE = "mcp:access";
|
|
@@ -213,11 +243,25 @@ declare const MCP_ADMIN_PRODUCTION_READINESS_FLAG_ID = "mcp.admin.production-rea
|
|
|
213
243
|
declare const MCP_ADMIN_PRODUCTION_READINESS_ENV_VAR = "MCP_ADMIN_PRODUCTION_READINESS_ENABLED";
|
|
214
244
|
declare const MCP_ASSET_PIPELINE_FLAG_ID = "asset.pipeline.unified-ai-assets.enabled";
|
|
215
245
|
declare const MCP_ASSET_EXTERNAL_HARVEST_FLAG_ID = "asset.pipeline.external-model-harvest.enabled";
|
|
216
|
-
declare const MCP_ASSET_CATALOG_REQUEST_CAPABILITY
|
|
217
|
-
declare const
|
|
218
|
-
declare const
|
|
219
|
-
declare const
|
|
246
|
+
declare const MCP_ASSET_CATALOG_REQUEST_CAPABILITY: "asset.catalog.request";
|
|
247
|
+
declare const MCP_ASSET_CATALOG_CONFIRM_CAPABILITY: "asset.catalog.confirm";
|
|
248
|
+
declare const MCP_ASSET_PIPELINE_MANAGE_CAPABILITY: "asset.pipeline.mcp.manage";
|
|
249
|
+
declare const MCP_ASSET_SOURCE_MANAGE_CAPABILITY: "asset.source.manage";
|
|
250
|
+
declare const MCP_ASSET_CATALOG_REVIEW_CAPABILITY: "asset.catalog.review";
|
|
251
|
+
declare const MCP_ADMIN_MODEL_TOOL_CONTRACT_VERSION: "2026-07-13.v1";
|
|
252
|
+
declare const MCP_ADMIN_MODEL_REGISTRY_SOURCE = "@plasius/asset-mcp";
|
|
253
|
+
declare const MCP_ADMIN_MODEL_RESOLUTION_CONTRACT_VERSION: "2026-07-12.v1";
|
|
254
|
+
declare const MCP_ADMIN_MODEL_CAPABILITIES: Readonly<{
|
|
255
|
+
catalogRequest: "asset.catalog.request";
|
|
256
|
+
catalogConfirm: "asset.catalog.confirm";
|
|
257
|
+
catalogReview: "asset.catalog.review";
|
|
258
|
+
sourceManage: "asset.source.manage";
|
|
259
|
+
pipelineManage: "asset.pipeline.mcp.manage";
|
|
260
|
+
}>;
|
|
261
|
+
declare const MCP_ADMIN_MODEL_OAUTH_SCOPES: readonly string[];
|
|
220
262
|
declare const MCP_ADMIN_FEEDBACK_FLAG_ID = "feedback.mcp.enabled";
|
|
263
|
+
/** Metadata only: the hosted runtime must register the feedback MCP family off. */
|
|
264
|
+
declare const MCP_ADMIN_FEEDBACK_HOST_DEFAULT_ENABLED = false;
|
|
221
265
|
declare const MCP_ADMIN_FEEDBACK_READ_CAPABILITY = "admin.feedback.read";
|
|
222
266
|
declare const MCP_ADMIN_BASE_OAUTH_SCOPE = "mcp:access";
|
|
223
267
|
declare const MCP_ADMIN_FEEDBACK_READ_OAUTH_SCOPE = "admin.feedback.read";
|
|
@@ -228,7 +272,7 @@ declare const MCP_ADMIN_FEEDBACK_WINDOWS: readonly ["previous-utc-hour", "last-2
|
|
|
228
272
|
declare const MCP_ADMIN_FEEDBACK_PACKET_TYPES: readonly ["feedback-bug-packet", "feedback-review-packet"];
|
|
229
273
|
declare const MCP_ADMIN_FEEDBACK_REPORT_TYPES: readonly ["feedback-hourly-bug-report", "feedback-daily-satisfaction-report"];
|
|
230
274
|
declare const MCP_ADMIN_FEEDBACK_PROCESSORS: readonly ["bug-hourly", "review-daily", "commit-reconciliation"];
|
|
231
|
-
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"];
|
|
275
|
+
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", "client-pixels", "filenames", "exact-coordinates", "exact-dimensions", "adapter-fingerprints", "raw-warnings", "blob-references", "request-telemetry", "raw-urls", "unrestricted-scans", "mutations"];
|
|
232
276
|
declare const MCP_ADMIN_ECONOMY_ADJUSTMENTS_FLAG_ID = "mcp.admin-economy-adjustments.enabled";
|
|
233
277
|
declare const ECONOMY_OWNER_ADJUSTMENTS_FLAG_ID = "economy.tokens.owner-adjustments.enabled";
|
|
234
278
|
declare const MCP_ECONOMY_FINANCE_VIEW_CAPABILITY = "economy.finance-operations.view";
|
|
@@ -350,10 +394,51 @@ interface McpActionSummary {
|
|
|
350
394
|
requiredTokenScopes?: readonly string[];
|
|
351
395
|
access?: McpActionAccessRequirements;
|
|
352
396
|
}
|
|
397
|
+
interface McpModelToolExecution {
|
|
398
|
+
protocol: "json-rpc-2.0";
|
|
399
|
+
method: "POST";
|
|
400
|
+
path: "/api/mcp";
|
|
401
|
+
rpcMethod: "tools/call";
|
|
402
|
+
toolName: ModelMcpToolName;
|
|
403
|
+
}
|
|
404
|
+
type McpModelToolSummary = Omit<ModelMcpToolDefinition, "inputSchema" | "outputSchema"> & {
|
|
405
|
+
descriptionKey: McpAdminContractDescriptionKey;
|
|
406
|
+
descriptionDefault: string;
|
|
407
|
+
availability: "near-future";
|
|
408
|
+
execution: McpModelToolExecution;
|
|
409
|
+
verificationNotes: readonly string[];
|
|
410
|
+
};
|
|
411
|
+
type McpModelToolSchemaDescriptor = ModelMcpToolDefinition & {
|
|
412
|
+
descriptionKey: McpAdminContractDescriptionKey;
|
|
413
|
+
descriptionDefault: string;
|
|
414
|
+
availability: "near-future";
|
|
415
|
+
execution: McpModelToolExecution;
|
|
416
|
+
verificationNotes: readonly string[];
|
|
417
|
+
};
|
|
418
|
+
interface McpModelResolutionContext {
|
|
419
|
+
toolContractVersion: typeof MODEL_MCP_CONTRACT_VERSION;
|
|
420
|
+
sourceOfTruth: typeof ASSET_MCP_PACKAGE;
|
|
421
|
+
resolutionContractVersion: typeof MODEL_RESOLUTION_CONTRACT_VERSION;
|
|
422
|
+
endpoint: "/api/mcp";
|
|
423
|
+
protocol: "json-rpc-2.0";
|
|
424
|
+
rpcMethod: "tools/call";
|
|
425
|
+
requiredFeatureFlag: typeof MODEL_MCP_UNIFIED_FEATURE_FLAG_ID;
|
|
426
|
+
conditionalFeatureFlags: readonly [
|
|
427
|
+
typeof MODEL_MCP_EXTERNAL_HARVEST_FEATURE_FLAG_ID,
|
|
428
|
+
typeof MODEL_MCP_GENERATION_FEATURE_FLAG_ID
|
|
429
|
+
];
|
|
430
|
+
tools: readonly ModelMcpToolName[];
|
|
431
|
+
resourceTemplates: readonly string[];
|
|
432
|
+
}
|
|
353
433
|
interface McpDiscoveryResponse {
|
|
354
434
|
contractVersion: string;
|
|
355
435
|
sourceOfTruth: string;
|
|
356
436
|
actions: McpActionSummary[];
|
|
437
|
+
/** Additive canonical JSON-RPC model tools; legacy REST actions stay separate. */
|
|
438
|
+
modelTools?: McpModelToolSummary[];
|
|
439
|
+
/** Authenticated `mcp://models/...` templates owned by `@plasius/asset-mcp`. */
|
|
440
|
+
modelResources?: readonly ModelMcpResourceTemplate[];
|
|
441
|
+
modelSourceOfTruth?: typeof ASSET_MCP_PACKAGE;
|
|
357
442
|
}
|
|
358
443
|
interface McpAuthenticatedUserContext {
|
|
359
444
|
id: string;
|
|
@@ -399,6 +484,8 @@ interface McpContextResponse {
|
|
|
399
484
|
singleResourceMutations: boolean;
|
|
400
485
|
notes: string[];
|
|
401
486
|
};
|
|
487
|
+
/** Additive canonical model-resolution family metadata. */
|
|
488
|
+
modelResolution?: McpModelResolutionContext;
|
|
402
489
|
}
|
|
403
490
|
interface McpSchemaResponse {
|
|
404
491
|
contractVersion: string;
|
|
@@ -420,6 +507,10 @@ interface McpSchemaResponse {
|
|
|
420
507
|
}>;
|
|
421
508
|
contextShape: Record<string, McpFieldShape>;
|
|
422
509
|
extensionRules: McpContextResponse["extensionRules"];
|
|
510
|
+
/** Canonical schemas are referenced directly from `@plasius/asset-mcp`. */
|
|
511
|
+
modelTools?: Record<ModelMcpToolName, McpModelToolSchemaDescriptor>;
|
|
512
|
+
modelResources?: readonly ModelMcpResourceTemplate[];
|
|
513
|
+
modelSourceOfTruth?: typeof ASSET_MCP_PACKAGE;
|
|
423
514
|
}
|
|
424
515
|
interface BuildMcpContextResponseOptions {
|
|
425
516
|
origin: string;
|
|
@@ -453,6 +544,8 @@ declare const MCP_ADMIN_FEEDBACK_ALERT_WINDOWS: readonly ["last-24-hours", "last
|
|
|
453
544
|
declare const MCP_ADMIN_FEEDBACK_PRIVACY_METADATA: McpFeedbackPrivacyMetadata;
|
|
454
545
|
declare const MCP_ADMIN_FEEDBACK_ACTIONS: readonly McpActionDescriptor[];
|
|
455
546
|
declare const MCP_ADMIN_ACTIONS: readonly McpActionDescriptor[];
|
|
547
|
+
declare function listMcpModelToolSummaries(): McpModelToolSummary[];
|
|
548
|
+
declare function listMcpModelResourceTemplates(): readonly ModelMcpResourceTemplate[];
|
|
456
549
|
declare function listMcpActionSummaries(): McpActionSummary[];
|
|
457
550
|
declare const MCP_ADMIN_CONTEXT_SHAPE: Record<string, McpFieldShape>;
|
|
458
551
|
declare const MCP_ADMIN_EXTENSION_RULES: {
|
|
@@ -468,4 +561,4 @@ declare function buildMcpDiscoveryResponse(): McpDiscoveryResponse;
|
|
|
468
561
|
declare function buildMcpSchemaResponse(): McpSchemaResponse;
|
|
469
562
|
declare function buildMcpContextResponse(options: BuildMcpContextResponseOptions): McpContextResponse;
|
|
470
563
|
|
|
471
|
-
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_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 McpCanonicalSchemaSource, type McpContextResponse, type McpDiscoveryResponse, type McpFeedbackPrivacyExclusion, type McpFeedbackPrivacyMetadata, type McpFieldShape, type McpRolloutContext, type McpSchemaResponse, type McpSurfaceUrls, buildAiPluginManifest, buildMcpContextResponse, buildMcpDiscoveryResponse, buildMcpSchemaResponse, buildMcpSurfaceUrls, getMcpAdminContractDefaultTranslation, listMcpActionSummaries, mcpAdminContractDescriptionKeys, mcpAdminContractsEnGbTranslations, mcpAdminContractsTranslations };
|
|
564
|
+
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_HOST_DEFAULT_ENABLED, 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 };
|