@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/CHANGELOG.md +65 -0
- package/README.md +59 -0
- package/dist/index.cjs +983 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -7
- package/dist/index.d.ts +87 -7
- package/dist/index.js +966 -8
- package/dist/index.js.map +1 -1
- package/docs/adrs/adr-0001-public-safe-mcp-admin-contract-boundary.md +3 -3
- package/docs/adrs/adr-0002-read-only-pseudonymous-token-reporting-tools.md +58 -0
- package/docs/adrs/adr-0003-exact-main-oidc-package-publishing.md +74 -0
- package/docs/adrs/adr-0004-owner-token-adjustment-mcp-boundary.md +41 -0
- package/docs/adrs/index.md +3 -0
- package/package.json +6 -1
- package/legal/CLA-REGISTRY.csv +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,68 @@
|
|
|
14
14
|
- **Security**
|
|
15
15
|
- (placeholder)
|
|
16
16
|
|
|
17
|
+
## [0.4.0] - 2026-08-08
|
|
18
|
+
|
|
19
|
+
- **Added**
|
|
20
|
+
- Added public-safe, read-only `get_admin_token_economy_overview`,
|
|
21
|
+
`list_admin_token_wallet_balances`, `list_admin_token_activity`, and
|
|
22
|
+
`get_admin_token_trends` descriptors with exact aggregate balances,
|
|
23
|
+
bounded pseudonymous rows, privacy-suppressed trends, and explainable
|
|
24
|
+
anomaly metadata.
|
|
25
|
+
|
|
26
|
+
- **Changed**
|
|
27
|
+
- Advanced the additive MCP Admin registry contract to `2026-08-08.v5` and
|
|
28
|
+
exposed action-level OAuth scope, capability, rollout, read-only, and
|
|
29
|
+
identity-resolution metadata.
|
|
30
|
+
|
|
31
|
+
- **Fixed**
|
|
32
|
+
- (placeholder)
|
|
33
|
+
|
|
34
|
+
- **Security**
|
|
35
|
+
- Token reporting contracts exclude raw financial/identity identifiers,
|
|
36
|
+
provider-specific sources, small-cohort trend values, identity resolution,
|
|
37
|
+
and mutation actions; global projection freshness uses canonical sequences.
|
|
38
|
+
|
|
39
|
+
## [0.3.1] - 2026-08-01
|
|
40
|
+
|
|
41
|
+
- **Added**
|
|
42
|
+
- (placeholder)
|
|
43
|
+
|
|
44
|
+
- **Changed**
|
|
45
|
+
- (placeholder)
|
|
46
|
+
|
|
47
|
+
- **Fixed**
|
|
48
|
+
- Made release-preparation merge retries independent of repository auto-merge so required checks can settle without enabling repository-wide auto-merge.
|
|
49
|
+
- Prevented the immutable publication bundle check from treating grep's
|
|
50
|
+
expected early exit as a tar failure under `pipefail`.
|
|
51
|
+
- Made npm publication consume the immutable tarball as an explicit local
|
|
52
|
+
path instead of allowing npm to parse it as a Git dependency specifier.
|
|
53
|
+
- Prevented release preparation from reusing an unpublished package version
|
|
54
|
+
when its existing immutable tag points behind current main; the workflow
|
|
55
|
+
now cuts the requested next version instead.
|
|
56
|
+
|
|
57
|
+
- **Security**
|
|
58
|
+
- (placeholder)
|
|
59
|
+
|
|
60
|
+
## [0.3.0] - 2026-08-01
|
|
61
|
+
|
|
62
|
+
- **Added**
|
|
63
|
+
- Added owner-only Token wallet/activity reads and dual-approved credit,
|
|
64
|
+
rejection, and compensating-reversal MCP descriptors, including explicit
|
|
65
|
+
finance capabilities and OAuth resource scopes (task #51).
|
|
66
|
+
|
|
67
|
+
- **Changed**
|
|
68
|
+
- Advanced the additive MCP contract to `2026-04-28.v4` so discovery clients
|
|
69
|
+
can identify the governed Token adjustment family.
|
|
70
|
+
|
|
71
|
+
- **Fixed**
|
|
72
|
+
- (placeholder)
|
|
73
|
+
|
|
74
|
+
- **Security**
|
|
75
|
+
- Replaced token-based npm publication with a two-phase exact-main OIDC workflow, immutable tarball/SBOM hand-off, isolated pull-request validation, and fail-closed integrity checks.
|
|
76
|
+
- Added fail-closed source and npm-package admission for the administrative contributor registry and pinned the CI/CD runtime to Node.js 24.18.0 LTS.
|
|
77
|
+
- (placeholder)
|
|
78
|
+
|
|
17
79
|
## [0.2.9] - 2026-07-13
|
|
18
80
|
|
|
19
81
|
- **Added**
|
|
@@ -110,3 +172,6 @@
|
|
|
110
172
|
[0.2.7]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.2.7
|
|
111
173
|
[0.2.8]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.2.8
|
|
112
174
|
[0.2.9]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.2.9
|
|
175
|
+
[0.3.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.3.0
|
|
176
|
+
[0.3.1]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.3.1
|
|
177
|
+
[0.4.0]: https://github.com/Plasius-LTD/mcp-admin-contracts/releases/tag/v0.4.0
|
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ This package contains contract metadata only:
|
|
|
13
13
|
- rollout flag identifiers used by the contract
|
|
14
14
|
- deprecated legacy env-name constants retained for source compatibility only
|
|
15
15
|
- analytics and bounded user-aggregation whitelist constants
|
|
16
|
+
- public-safe pseudonymous Token activity/trend metadata
|
|
16
17
|
- TypeScript types for these payloads
|
|
17
18
|
|
|
18
19
|
It intentionally does not contain runtime enforcement:
|
|
@@ -54,8 +55,51 @@ The exported registry currently covers:
|
|
|
54
55
|
- capability-rule and effective-capability descriptors keyed by canonical tuple identities
|
|
55
56
|
- bounded analytics queries and curated analytics presets
|
|
56
57
|
- bounded grouped user-aggregation summaries without raw per-user export
|
|
58
|
+
- read-only global Token overview, pseudonymous wallet/activity, and bounded
|
|
59
|
+
spend-trend descriptors
|
|
57
60
|
- governed asset catalog, source-intake, pipeline, and review descriptors for
|
|
58
61
|
the hosted `plasius-ltd-site` MCP backend
|
|
62
|
+
- owner-only Token finance descriptors for bounded wallet/activity reads and
|
|
63
|
+
dual-approved credit or compensating-reversal workflows
|
|
64
|
+
|
|
65
|
+
Token finance descriptors require the host to enforce the parent
|
|
66
|
+
`economy.tokens.enabled` flag and the package-published
|
|
67
|
+
`mcp.admin-economy-adjustments.enabled` flag. They declare the relevant
|
|
68
|
+
`economy.finance-operations.*` capability and OAuth resource scopes. The
|
|
69
|
+
contract intentionally has no balance-setter or Token delete action: credits
|
|
70
|
+
and reversals are immutable, preview-bound proposals that require a distinct
|
|
71
|
+
owner approval in the runtime authority.
|
|
72
|
+
|
|
73
|
+
### Admin Token reporting
|
|
74
|
+
|
|
75
|
+
The Token descriptors require the `mcp:access` OAuth scope, the
|
|
76
|
+
`admin.economy.read` and `economy.finance-operations.view` capabilities, and
|
|
77
|
+
both stored flags:
|
|
78
|
+
|
|
79
|
+
- `economy.admin-history.enabled`
|
|
80
|
+
- `mcp.admin-economy-history.enabled`
|
|
81
|
+
|
|
82
|
+
The global overview is an identifier-free point-read shape with exact balance
|
|
83
|
+
and lifetime totals, wallet counts, projection time, and canonical authority
|
|
84
|
+
sequence. Wallet balance pages are capped at 100 rows and expose only separate
|
|
85
|
+
MCP-audience wallet/subject aliases, closed component/status codes, exact
|
|
86
|
+
amounts, update time, and projection sequence.
|
|
87
|
+
|
|
88
|
+
Activity pages default to 30 days, allow at most 365 days and 100 rows, and
|
|
89
|
+
return only normalized source groupings, exact signed TokenSubunits,
|
|
90
|
+
source-owned safe labels, and versioned MCP-audience row/subject aliases. Raw
|
|
91
|
+
account, wallet, transaction, order, payment, provider-event, idempotency, and
|
|
92
|
+
journal-integrity identifiers are outside the contract.
|
|
93
|
+
|
|
94
|
+
Trend cohorts below five distinct subjects are suppressed without counts or
|
|
95
|
+
amounts. Reported points may include an explainable 28-window median/MAD
|
|
96
|
+
advisory. All four reporting tools are read-only and MCP has no
|
|
97
|
+
identity-resolution action.
|
|
98
|
+
|
|
99
|
+
These descriptors remain `near-future` until the hosted site registers the
|
|
100
|
+
JSON-RPC tools and passes scope/capability/flag, bounded-output, privacy, and
|
|
101
|
+
audit integration tests. Installing or publishing this package does not create
|
|
102
|
+
runtime routes.
|
|
59
103
|
|
|
60
104
|
Action descriptors keep their existing `description` field and also expose
|
|
61
105
|
`descriptionKey` and `descriptionDefault` so clients can resolve display text
|
|
@@ -108,3 +152,18 @@ these governance files does not change package behavior.
|
|
|
108
152
|
## License
|
|
109
153
|
|
|
110
154
|
Apache-2.0
|
|
155
|
+
|
|
156
|
+
<!-- BEGIN PLASIUS RELEASE INTEGRITY -->
|
|
157
|
+
## Release integrity
|
|
158
|
+
|
|
159
|
+
CI keeps the administrative contributor registry outside Git and npm package
|
|
160
|
+
artifacts using exact, case-normalised path checks. External fork heads are
|
|
161
|
+
rejected; same-repository pull requests validate on GitHub-hosted runners and
|
|
162
|
+
main pushes validate on approved self-hosted runners. Release preparation and
|
|
163
|
+
publication use a two-run exact-main protocol on GitHub-hosted Node.js 24.18.0
|
|
164
|
+
LTS. A read-only job seals the package tarball and SBOM before a dependency-free
|
|
165
|
+
production job publishes that exact artifact through npm OIDC with provenance;
|
|
166
|
+
there is no npm write-token fallback. CD remains disabled until the npm trusted
|
|
167
|
+
publisher binding and protected-branch-only production environment are
|
|
168
|
+
independently verified.
|
|
169
|
+
<!-- END PLASIUS RELEASE INTEGRITY -->
|