@plasius/mcp-admin-contracts 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +60 -0
- package/dist/index.cjs +203 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +94 -6
- package/dist/index.d.ts +94 -6
- package/dist/index.js +209 -10
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0006-canonical-model-resolution-discovery.md +66 -0
- package/docs/adrs/index.md +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# ADR 0006: Canonical Model-Resolution Discovery
|
|
2
|
+
|
|
3
|
+
## Status
|
|
4
|
+
|
|
5
|
+
Accepted
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
The hosted MCP surface needs public-safe discovery for the eight canonical
|
|
10
|
+
model-resolution tools. This package already publishes legacy REST-backed
|
|
11
|
+
admin action descriptors, while `@plasius/asset-mcp` owns the canonical MCP
|
|
12
|
+
tool names, JSON Schemas, annotations, OAuth metadata, capability requirements,
|
|
13
|
+
rollout metadata, review-result metadata, and authenticated model resources.
|
|
14
|
+
|
|
15
|
+
Copying those schemas or security fields into this package would create two
|
|
16
|
+
authorities and permit drift. Adding the snake_case tools to the legacy action
|
|
17
|
+
array would also blur JSON-RPC `tools/call` execution with existing REST route
|
|
18
|
+
adapters and could break consumers that treat that array as the legacy registry.
|
|
19
|
+
|
|
20
|
+
## Decision
|
|
21
|
+
|
|
22
|
+
The package consumes pinned `@plasius/asset-mcp 0.1.6` and
|
|
23
|
+
`@plasius/asset-contracts 0.3.1` releases.
|
|
24
|
+
|
|
25
|
+
- `buildMcpDiscoveryResponse` adds `modelTools` summaries and canonical
|
|
26
|
+
`modelResources` alongside, rather than inside, the legacy `actions` array.
|
|
27
|
+
- `buildMcpSchemaResponse` references each canonical input schema, output
|
|
28
|
+
schema, annotation set, security scheme, capability, review-result record,
|
|
29
|
+
and rollout record directly from `@plasius/asset-mcp`.
|
|
30
|
+
- Execution metadata identifies JSON-RPC 2.0 `tools/call` at `POST /api/mcp`.
|
|
31
|
+
Existing descriptors retain their REST execution records unchanged.
|
|
32
|
+
- Bounded verification notes identify whether the canonical result itself or
|
|
33
|
+
a follow-up `get_model_resolution` call verifies the operation.
|
|
34
|
+
- Shared verification-note arrays and the exported context schema are deeply
|
|
35
|
+
frozen so consumer mutation cannot alter later discovery responses.
|
|
36
|
+
- The context response publishes the canonical tool and model-resolution
|
|
37
|
+
contract versions, exact tool names, resource templates, required parent
|
|
38
|
+
flag, and conditional provider/generator flags.
|
|
39
|
+
- The model-family OAuth registry contains `mcp:access` plus all five asset
|
|
40
|
+
capability scopes for issuer and protected-resource publication. Per-tool
|
|
41
|
+
scopes remain the exact narrower sets owned by `@plasius/asset-mcp`.
|
|
42
|
+
- New response fields are optional in the exported TypeScript interfaces for
|
|
43
|
+
additive source compatibility, while package builders always populate them.
|
|
44
|
+
- En-GB translation keys are package-owned display metadata. Their defaults
|
|
45
|
+
must exactly equal the pinned canonical descriptions or discovery building
|
|
46
|
+
fails closed.
|
|
47
|
+
- Runtime authentication, authorization, ownership, rollout evaluation,
|
|
48
|
+
resource access, audit, and tool execution remain outside this package.
|
|
49
|
+
|
|
50
|
+
The parent flag is `asset.pipeline.unified-ai-assets.enabled`. External
|
|
51
|
+
provider acquisition and future generation use the conditional flags
|
|
52
|
+
`asset.pipeline.external-model-harvest.enabled` and
|
|
53
|
+
`asset.pipeline.ai-model-generation.enabled` respectively. This package only
|
|
54
|
+
advertises those identifiers.
|
|
55
|
+
|
|
56
|
+
## Consequences
|
|
57
|
+
|
|
58
|
+
Hosted consumers can build public discovery, schemas, and context without
|
|
59
|
+
reimplementing model contracts. Canonical package upgrades are explicit and a
|
|
60
|
+
description mismatch fails visibly. Legacy clients continue to see the same 48
|
|
61
|
+
legacy descriptor objects and may ignore the additive fields.
|
|
62
|
+
|
|
63
|
+
Publishing this package alone does not make any model tool available. The
|
|
64
|
+
host must register the canonical tools and resources, align OAuth protected
|
|
65
|
+
resource metadata, enforce capabilities and rollout flags, and pass its own
|
|
66
|
+
integration and production checks.
|
package/docs/adrs/index.md
CHANGED
|
@@ -5,3 +5,4 @@
|
|
|
5
5
|
- [ADR 0003: Exact-main OIDC package publishing](./adr-0003-exact-main-oidc-package-publishing.md)
|
|
6
6
|
- [ADR 0004: Owner Token adjustment MCP boundary](./adr-0004-owner-token-adjustment-mcp-boundary.md)
|
|
7
7
|
- [ADR 0005: Privacy-Safe Read-Only Feedback Contract](./adr-0005-privacy-safe-read-only-feedback-contract.md)
|
|
8
|
+
- [ADR 0006: Canonical Model-Resolution Discovery](./adr-0006-canonical-model-resolution-discovery.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasius/mcp-admin-contracts",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Public-safe MCP admin discovery contract descriptors and response builders.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -107,6 +107,8 @@
|
|
|
107
107
|
"node": ">=24"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
|
+
"@plasius/asset-contracts": "0.3.1",
|
|
111
|
+
"@plasius/asset-mcp": "0.1.6",
|
|
110
112
|
"@plasius/schema": "^1.4.0"
|
|
111
113
|
}
|
|
112
114
|
}
|