@battlegrid/mcp-server 31.2.109 → 31.2.110

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 CHANGED
@@ -24,10 +24,36 @@ 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 — v111.1 (every read fits hosted Claude, and a large one says so)
28
+
29
+ **One refusal is added at v111.1; nothing you send is refused that was accepted.** v111.1 is the contract on top of
30
+ v111. Reconnect the proxy, or restart it, so discovery reads the new schemas and the new resource.
31
+
32
+ ### Refusal vocabulary
33
+
34
+ - **`RESULT_TOO_LARGE`.** A read-only tool whose result would serialize past the server's result-character cap
35
+ (at most 150,000, hosted Claude's tool-result cap) is refused whole, never cut, with details
36
+ `{ limit: "result_chars", actual, maximum }`. `get_market_context` (fewer `modules`), and `get_agent_journal`,
37
+ `list_gate_blocks` and `list_market_grid_sessions` (a smaller `limit`) add `nextAct: "narrow"`; a read with no
38
+ input that asks for less adds none. A tool that writes is never refused this way. The code also joins the draft
39
+ diagnostics' `code` enum.
40
+
41
+ ### Behaviour behind unchanged schemas
42
+
43
+ - **The server instructions are an index within 4,096 characters**, the length Claude reads: the rules every session
44
+ needs, then one routing line per workflow naming its entry tool and skills. The workflow cards move to the
45
+ `battlegrid://guide/workflows` resource, and the grid format stays in `battlegrid://reference/grid-format`.
46
+ - **Ten large reads declare `_meta["anthropic/maxResultSizeChars"]`** equal to the server's cap, so Claude Code keeps
47
+ their results in the conversation rather than moving them to a file.
48
+ - **Input schemas hold each reused or recursive shape once, under named `$defs`**, where they pointed into a sibling
49
+ property; they accept exactly what they accepted. No schema publishes `{ "not": {} }`, and four strategy outputs
50
+ stop publishing `conditionVerdicts`, a property no response carried.
51
+ - **Descriptions name their parameters instead of listing the members of an input enum**; the enum is the list.
52
+
27
53
  ## Contract history — v111 (the draft tools take their arguments at the top level)
28
54
 
29
55
  **Breaking at v111: every draft-lifecycle tool takes its id, `draftVersion` and payload as top-level
30
- arguments.** v111 is the contract on top of v110.12. Reconnect the proxy, or restart it, so discovery
56
+ arguments.** v111 is the contract on top of v110.13. Reconnect the proxy, or restart it, so discovery
31
57
  reads the new schemas.
32
58
 
33
59
  ### Rejected input — something you send is no longer accepted
@@ -3635,8 +3661,9 @@ you reach over MCP:
3635
3661
  > fails CI on a hand edit. Change the skill upstream and let the export lane bring it here.
3636
3662
 
3637
3663
  A client connected to BattleGrid's remote server directly receives its `initialize` instructions:
3638
- the rules that span tools and one routing card per workflow, each naming the `battlegrid-*` skill
3639
- above that holds the full procedure. This proxy does not relay those instructions; the skills
3664
+ the rules that span tools and one routing line per workflow, each naming the `battlegrid-*` skill
3665
+ above that holds the full procedure, with the workflow cards in the `battlegrid://guide/workflows`
3666
+ resource. This proxy does not relay those instructions; the skills
3640
3667
  installed beside it carry the same workflows.
3641
3668
 
3642
3669
  ## License
package/dist/index.d.ts CHANGED
@@ -48,7 +48,7 @@ import { type Implementation, type Prompt, type Resource } from '@modelcontextpr
48
48
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
49
49
  * correction. Never move it to track the server.
50
50
  */
51
- export declare const PACKAGE_VERSION = "31.2.109";
51
+ export declare const PACKAGE_VERSION = "31.2.110";
52
52
  export declare const DEFAULT_URL = "https://mcp.battlegrid.trade/mcp";
53
53
  export interface EnvConfig {
54
54
  apiKeys: string[];
package/dist/index.js CHANGED
@@ -51,7 +51,7 @@ import { ListToolsRequestSchema, CallToolRequestSchema, ListPromptsRequestSchema
51
51
  * being asked. Move it for a change to THIS package — a proxy fix, a dependency bump, a docs
52
52
  * correction. Never move it to track the server.
53
53
  */
54
- export const PACKAGE_VERSION = '31.2.109';
54
+ export const PACKAGE_VERSION = '31.2.110';
55
55
  export const DEFAULT_URL = 'https://mcp.battlegrid.trade/mcp';
56
56
  const MAX_RETRIES = 3;
57
57
  const RETRY_DELAYS_MS = [2000, 4000, 8000];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@battlegrid/mcp-server",
3
- "version": "31.2.109",
3
+ "version": "31.2.110",
4
4
  "description": "BattleGrid MCP server — play crypto prediction games from AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",