@battlegrid/mcp-server 31.2.42 → 31.2.44
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/README.md +65 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,71 @@ Seeing package `31.x` alongside handshake `battlegrid@33.x` — the package **be
|
|
|
24
24
|
|
|
25
25
|
**What this changes for you:** nothing about how you call anything. Upgrading the package no longer waits on a server deploy, and a server deploy no longer strands you on a package that names the wrong contract — reconnect and the announcement follows. **Contract breaking-change notes are no longer keyed to package versions**, since a contract move is no longer a release here; the v11-and-earlier notes below are kept as history, and the live vocabulary is always discovery.
|
|
26
26
|
|
|
27
|
+
## Contract history — v66
|
|
28
|
+
|
|
29
|
+
**Breaking: one tool retired and one input reshaped.** Radar content now commits only as a draft the
|
|
30
|
+
player was shown a live preview of. The player's radar builder and every conversation share one
|
|
31
|
+
unsaved draft per coin.
|
|
32
|
+
|
|
33
|
+
### Removed tool — something you call no longer exists
|
|
34
|
+
|
|
35
|
+
- **`upsert_radar_deployment` is retired**, with no alias. Calling it is an unknown-tool error. To
|
|
36
|
+
deploy or change a coin's Radar policy:
|
|
37
|
+
1. `stage_radar_deployment_draft` the axes you are changing;
|
|
38
|
+
2. `preview_radar_resolution` with `request: { kind: "DRAFT", draftVersion }` at the version staging
|
|
39
|
+
returned;
|
|
40
|
+
3. show the player the resolution, and on their word call `commit_radar_deployment_draft` with the
|
|
41
|
+
`previewToken` that preview returned and `confirm: true`.
|
|
42
|
+
|
|
43
|
+
Pausing is no longer a flag on the write: use `pause_radar_deployment`.
|
|
44
|
+
|
|
45
|
+
### Rejected input — something you send is no longer accepted
|
|
46
|
+
|
|
47
|
+
- **`preview_radar_resolution`'s `request` needs a `kind`.** `{ kind: "SLOTS", deploymentTimeframe,
|
|
48
|
+
slots, simulatedRegime? }` is the old request. `{ kind: "DRAFT", draftVersion }` previews the
|
|
49
|
+
player's draft of the coin at that version, composed over the deployed policy exactly as the commit
|
|
50
|
+
writes it. `{ kind: "COMMITTED" }` previews the deployed policy a resume would arm. A request
|
|
51
|
+
without `kind` is refused.
|
|
52
|
+
|
|
53
|
+
### Wider surface — seven tools added
|
|
54
|
+
|
|
55
|
+
- **`stage_radar_deployment_draft`**, **`get_radar_deployment_draft`**,
|
|
56
|
+
**`list_radar_deployment_drafts`** and **`discard_radar_deployment_draft`** (`mcp:read`). The draft
|
|
57
|
+
axes are `DEPLOYMENT_TIMEFRAME`, `RULES` (the complete ordered rule list, first = highest priority)
|
|
58
|
+
and `DEFAULT_SLOT`, each written whole. None of them commits or arms anything.
|
|
59
|
+
- **`commit_radar_deployment_draft`** (`coinId`, `previewToken`, `confirm: true`; `mcp:wager`) — the
|
|
60
|
+
only MCP committer of radar content.
|
|
61
|
+
- **`pause_radar_deployment`** (`coinId`; `mcp:wager`) — no revision and no certificate: a disarm never
|
|
62
|
+
waits on a read.
|
|
63
|
+
- **`resume_radar_deployment`** (`coinId`, `previewToken`, `confirm: true`; `mcp:wager`) — needs the
|
|
64
|
+
certificate a live `COMMITTED` preview returned.
|
|
65
|
+
|
|
66
|
+
### Reshaped output — `preview_radar_resolution`
|
|
67
|
+
|
|
68
|
+
- Gains **`previewToken`**, the certificate a LIVE preview (no `simulatedRegime`) of `DRAFT` or
|
|
69
|
+
`COMMITTED` earns — null otherwise, and good for five minutes. It also gains
|
|
70
|
+
**`enabledAfterCommit`**: whether the policy trades once the previewed write lands. A paused
|
|
71
|
+
policy's draft stays paused.
|
|
72
|
+
|
|
73
|
+
### Refusals worth knowing before you commit or resume
|
|
74
|
+
|
|
75
|
+
- **The certificate is bound to what you previewed**: your credential, the player, the coin, the
|
|
76
|
+
subject, the deployment and its revision, the draft version and the composed content. If the
|
|
77
|
+
player edits the draft, another commit lands, the coin is redeployed, or an agent in it is deleted,
|
|
78
|
+
the commit or resume is a `CONFLICT` and nothing is written. Preview again; never reuse the old
|
|
79
|
+
certificate.
|
|
80
|
+
- **`commit_radar_deployment_draft` takes only a draft certificate**, and `resume_radar_deployment`
|
|
81
|
+
only a committed-policy one.
|
|
82
|
+
- **`discard_radar_deployment_draft` with `confirm: true` requires `expectedVersion`**: the version the
|
|
83
|
+
unconfirmed call named and the player was shown. A draft that moved since is answered again, and
|
|
84
|
+
nothing is removed.
|
|
85
|
+
- **`delete_radar_deployment` also ends the player's radar draft of the coin.**
|
|
86
|
+
|
|
87
|
+
### Vocabulary
|
|
88
|
+
|
|
89
|
+
`toolCount` goes 126 → 132. `preview_radar_resolution`'s input and output schemas move, and
|
|
90
|
+
`upsert_radar_deployment`'s are removed.
|
|
91
|
+
|
|
27
92
|
## Contract history — v65
|
|
28
93
|
|
|
29
94
|
**Breaking on one input, and four refusals behind unchanged schemas.** Agent staging now names the
|
package/dist/index.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ import { type Implementation, type Prompt, type Resource } from '@modelcontextpr
|
|
|
49
49
|
* being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
|
|
50
50
|
* correction. Never move it to track the server.
|
|
51
51
|
*/
|
|
52
|
-
export declare const PACKAGE_VERSION = "31.2.
|
|
52
|
+
export declare const PACKAGE_VERSION = "31.2.44";
|
|
53
53
|
export declare const DEFAULT_URL = "https://mcp.battlegrid.trade/mcp";
|
|
54
54
|
export interface EnvConfig {
|
|
55
55
|
apiKeys: string[];
|
package/dist/index.js
CHANGED
|
@@ -52,7 +52,7 @@ import { ListToolsRequestSchema, CallToolRequestSchema, ListPromptsRequestSchema
|
|
|
52
52
|
* being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
|
|
53
53
|
* correction. Never move it to track the server.
|
|
54
54
|
*/
|
|
55
|
-
export const PACKAGE_VERSION = '31.2.
|
|
55
|
+
export const PACKAGE_VERSION = '31.2.44';
|
|
56
56
|
export const DEFAULT_URL = 'https://mcp.battlegrid.trade/mcp';
|
|
57
57
|
const MAX_RETRIES = 3;
|
|
58
58
|
const RETRY_DELAYS_MS = [2000, 4000, 8000];
|