@stratabook/mcp 0.2.9 → 0.2.10

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +109 -0
  2. package/README.md +8 -0
  3. package/package.json +4 -3
package/CHANGELOG.md ADDED
@@ -0,0 +1,109 @@
1
+ # Changelog
2
+
3
+ All notable changes to the Strata SDKs (`@stratabook/sdk`, `@stratabook/mcp`,
4
+ and the `strata-sdk` Rust crate) are recorded here. Versions move together.
5
+
6
+ ## 0.2.10
7
+
8
+ - Consume the matching SDK conformance release. The safe deployment gate now
9
+ exercises hosted MCP discovery, maker reads, and fresh-request Strand and
10
+ Current preparations after every activation; funded mode proves the
11
+ restart-safe prepare/submit path with a real externally signed Current.
12
+
13
+ ## 0.2.9
14
+
15
+ - Correct the maker preparation terminology inherited from the SDK:
16
+ `transaction_version=0` is browser-safe native Solana v0, not legacy.
17
+ Runtime behavior is unchanged from 0.2.8.
18
+
19
+ ## 0.2.8
20
+
21
+ - Consume `@stratabook/sdk` 0.2.8 so hosted maker quickstarts request
22
+ browser-safe native-v0 preparations compatible with external wallets.
23
+
24
+ ## 0.2.7
25
+
26
+ - Consume `@stratabook/sdk` 0.2.7 so maker quickstarts accept the human base
27
+ symbol from the selected market label, including `SOL` for `SOL/USDC`, and
28
+ inherit its post-sign transaction-message invariant.
29
+
30
+ ## 0.2.6
31
+
32
+ - Carry verified maker preparations across stateless HTTP requests with the
33
+ returned `preparationToken`; submit validates all market, product, wallet,
34
+ operation, transaction, and control-ID bindings before using it.
35
+ - Add both maker quickstart tools to the canonical machine-readable harness.
36
+
37
+ ## 0.2.5
38
+
39
+ - Add `strata_market_making_prepare` and
40
+ `strata_market_making_submit_and_wait`. Agents now provide a market label,
41
+ product, spread, decimal base size, and duration, sign one exact transaction
42
+ externally, and receive chain-derived confirmation without managing arrays,
43
+ atoms, opaque IDs, tick math, or expiry slots.
44
+
45
+ ## 0.2.2
46
+
47
+ - Correct every Strand exposure and level-size tool input from `BaseLots` to
48
+ `BaseAtoms` so agents receive the actual on-chain unit.
49
+ - State explicitly that positive base-atom amounts are valid order sizes and
50
+ the market price denominator is not a minimum order size.
51
+
52
+ ## 0.2.0
53
+
54
+ The unattended-agent release: an external agent can now onboard, hold one
55
+ balance across markets, trade instantly under a user-owned safety slider, and see the book it
56
+ trades into — all without a human signing each action, and without any venue,
57
+ route, or pool ever crossing the boundary.
58
+
59
+ ### Onboarding & signing
60
+ - **One-signature onboarding.** `vault.setup` works for every user-bounded
61
+ market — register a capped, revocable session key with a single wallet
62
+ signature; the first deposit registers the session in the same owner-signed
63
+ transaction.
64
+ - **One signature per action.** `orders.prepare`, `algos.twap.prepare`, and
65
+ `execution.prepare` accept the operation itself and build immediately — the
66
+ session's transaction signature is the whole authorization. The signed-
67
+ challenge form still works. SDK one-call helpers (`orders.execute`,
68
+ `algos.execute`, `executeQuote`) sign and submit in one call with a built-in
69
+ transaction verifier; `sessionSignerFromSecretKey` turns a session secret
70
+ into a ready signer.
71
+ - **Sponsored Vault lifecycle** (`vault.relay`): the owner needs no SOL and no
72
+ RPC; Strata pays the fee (and pre-funds rent) when the wallet is low and
73
+ recovers exactly what it spent from later deposits, Jupiter-style.
74
+
75
+ ### Reads
76
+ - **One account read.** `GET /v2/account/{wallet}/portfolio` — balances,
77
+ positions, open orders, and recent fills across every live market in one
78
+ public read by wallet address (`account`/`portfolio`, `strata_portfolio`).
79
+ - **Order book, best bid/ask, and recent trades in MCP** — `strata_book`,
80
+ `strata_bbo`, `strata_trades` (already in the SDK `books` module).
81
+ - **Maker reads public by wallet** — status, reputation, and the fills stream
82
+ need no signature.
83
+ - **Exact-output market quotes** ("buy at least 1 SOL"): `amount_out_atoms` on
84
+ the same quote handle and execution flow.
85
+ - Sequenced **execution**, **TWAP**, and **maker fill** streams.
86
+
87
+ ### Autonomy (MCP)
88
+ - **Session-autonomy slider.** With a session key in the MCP's env
89
+ (`STRATA_SESSION_SECRET_KEY` + `STRATA_OWNER_WALLET`), `strata_execute_quote`,
90
+ `strata_order_execute`, and `strata_twap_execute` sign and submit within
91
+ `STRATA_AUTONOMY` = `ask` (default; prepare only) / `limits` (up to
92
+ `STRATA_AUTONOMY_MAX_USD_PER_TRADE` / `_PER_DAY` / `_MARKETS`) / `instant`.
93
+ `strata_autonomy` is read-only; nothing an agent calls raises its own
94
+ autonomy. Withdraw/policy/pause/revoke stay owner-only.
95
+
96
+ ### Other
97
+ - `strata_markets` carries each market's opaque `market_id` and asset ids.
98
+ - Account sequence is optional (server-resolved).
99
+ - Tolerance is named `maximum_tolerance_bps` and echoed on every quote (never
100
+ conflated with price impact).
101
+ - CLI: `session-keygen`, `account`, `execute-quote`, direct `twap-prepare` /
102
+ `execution-prepare`.
103
+
104
+ Nothing about venues, routes, pools, adapters, legs, counterparties, or how a fill was built, is exposed at any surface; the contract privacy gate enforces it.
105
+
106
+ ## 0.1.x
107
+
108
+ Initial public SDK: capabilities, markets, action graph, market quote, quote execution (challenge → prepare → submit), firm orders, and the
109
+ opaque market/asset contract.
package/README.md CHANGED
@@ -107,6 +107,14 @@ available collateral while a control is live and returns it after the final
107
107
  control is disabled, exhausted, expired, or cancelled. Current follows Strata's
108
108
  live mark and needs no separate publisher transaction.
109
109
 
110
+ The matching TypeScript package ships `strata-maker-conformance`. Its default
111
+ `safe` mode exercises this hosted MCP's discovery, public maker reads, and
112
+ fresh-request Strand and Current preparations without signing or broadcasting.
113
+ The explicitly confirmed `funded` mode signs a Current preparation externally,
114
+ submits it in a separate MCP request, waits for chain-derived state, and stops
115
+ it through the same restart-safe continuation path. Production activation runs
116
+ the safe suite automatically and rolls back the MCP release if it fails.
117
+
110
118
  ## Hosted Streamable HTTP
111
119
 
112
120
  The managed public endpoint is:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stratabook/mcp",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "description": "Connect AI agents to Strata markets and Sonar quotes with MCP.",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",
@@ -33,7 +33,8 @@
33
33
  "dist/src",
34
34
  "README.md",
35
35
  "LICENSE-APACHE",
36
- "LICENSE-MIT"
36
+ "LICENSE-MIT",
37
+ "CHANGELOG.md"
37
38
  ],
38
39
  "scripts": {
39
40
  "build": "tsc -p tsconfig.json",
@@ -44,7 +45,7 @@
44
45
  },
45
46
  "dependencies": {
46
47
  "@modelcontextprotocol/sdk": "1.30.0",
47
- "@stratabook/sdk": "0.2.9",
48
+ "@stratabook/sdk": "0.2.10",
48
49
  "zod": "^3.25.76"
49
50
  },
50
51
  "devDependencies": {