@coinrithm/mcp-trading 0.7.3 → 0.7.5

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 CHANGED
@@ -1,158 +1,197 @@
1
- # Changelog
2
-
3
- All notable changes to `@coinrithm/mcp-trading` are documented here. The package
4
- ships two binaries — `coinrithm-mcp` (the MCP server) and `coinrithm-agent` (the
5
- self-host agent runner) — versioned together. The CoinRithm **API contract** is
6
- versioned separately (see `openapi.yaml` `info.version`, currently `1.6.0`).
7
-
8
- ## 0.7.3
9
-
10
- Quality-engine surfaces + independent forecasts. Additive; no breaking change.
11
-
12
- - **Quality verdicts in tool responses.** `discover_pm_markets`, `pm_quote`, and
13
- the `pm_data_*` tools now surface the persisted truth-engine `quality` object
14
- (`decisionEligible`, warning/block reason codes, `policyVersion`, `assessedAt`).
15
- Markets with critical failures stay visible but cannot drive paper opens or
16
- alerts.
17
- - **`openBlocked` preview on `pm_quote`.** Quotes preview the open-time quality
18
- gate (`openBlocked` + `openBlockReasons`), so an agent can skip a market that
19
- would 422 before burning the open attempt. The self-host runner
20
- (`coinrithm-agent`) does this skip automatically.
21
- - **Independent forecasts in the runner.** The self-host agent runner elicits the
22
- model's OWN probability (judged from the question/resolution criteria/deadline,
23
- never anchored to the market price) and submits it as `forecastProbability` on
24
- PM opens feeding the public calibration dataset with proper-scoring-rule
25
- forecasts. Clamped to [1,99]; omitted (never faked) when the model does not
26
- produce one; `HOUSE_AGENT_FORECAST_ENABLED=false` disables.
27
- - **`crossPlatform` on event lists** documented in the API contract: sibling
28
- venues pricing the same question, on list rows.
29
- - **ForecastEx venue truth.** Public MCP discovery copy and registry metadata
30
- now describe all 11 live venues, including ForecastEx.
31
- - **Contract synchronization.** Runner templates and example bundles pin the
32
- served OpenAPI 1.6.0 contract; canonical scorecard paths are unambiguous.
33
-
34
- ## 0.7.2
35
-
36
- Docs-truth + privacy release. No tool behavior change, no API-surface change.
37
-
38
- - **Ten venues in the public listing.** `pm_data_*` tool copy, the README, and
39
- `server.json` now name all ten venues (adds Futuur and Myriad). npm `0.7.1` was
40
- published before those landed, so the registry listing still advertised "eight
41
- venues"; npm versions are immutable, so correcting the public listing required
42
- a new release.
43
- - **`source` parameter description** on `pm_data_events` / `pm_data_event_detail`
44
- now enumerates all ten venue slugs. Accepted values are unchanged — this is
45
- description text only, which is why it is a patch and not a minor.
46
- - **Privacy.** Raw model output is no longer persisted, enforcing the package's
47
- no-chain-of-thought promise.
48
- - **New tripwire.** `server.json` (the MCP-registry listing) is now guarded
49
- against version and venue-count drift; it had no guard, which is how it went
50
- stale in the first place.
51
- - Refreshed stale Arena-gate example copy.
52
-
53
- ## 0.7.1
54
-
55
- Docs + registry-metadata release; no tool behavior changes.
56
-
57
- - **README refresh**: the keyless `pm_data_*` data surface is now front and
58
- center 8 venues (Polymarket, Kalshi, Smarkets, Limitless, Manifold,
59
- Metaculus, PredictIt, Rothera the "seven venues" line predated Rothera),
60
- the anonymous hosted-endpoint path, and the `referenceProbability` /
61
- `volumeHistory` fields the data tools return.
62
- - **`server.json`**: hosted endpoint's `Authorization` header marked optional
63
- (the `pm_data_*` tools work anonymously verified live) and the server
64
- description now leads with the keyless data surface.
65
- - Ships the post-0.7.0 commits: `pm_data_event` advertises `volumeHistory`,
66
- `pm_data_events` advertises `referenceProbability` on list items, and the
67
- hosted MCP root (`GET /`) serves a self-describing JSON landing (with a
68
- 405 + hint on `GET /mcp`).
69
-
70
- ## 0.7.0
71
-
72
- (Retroactive entry — released 2026-07-05 without a changelog note.)
73
-
74
- - **Four keyless `pm_data_*` tools** — CoinRithm's free public cross-venue
75
- prediction-market dataset over MCP, no API key required and yours is never
76
- attached: `pm_data_overview` (market-wide stats), `pm_data_events`
77
- (cross-venue event list), `pm_data_event` (detail incl.
78
- `crossSourceMatches` + resolution evidence), `pm_data_whales`
79
- (large-trade tape).
80
-
81
- ## 0.5.0
82
-
83
- Agent-runner quality + reliability release. `coinrithm-agent` got materially
84
- smarter and less noisy; `coinrithm-mcp` is unchanged in shape. Bundles the work
85
- since 0.4.0.
86
-
87
- - **Prediction markets are a first-class venue** in the decide prompt: a short
88
- `pmN` ref so small models trade PM reliably, eligible-outcome filtering (only
89
- backend-openable outcomes reach the model), and futures-capped agents steered
90
- to PM (a separate budget) instead of re-rejecting.
91
- - **PM anti-churn — now actually effective.** The candidate list is pre-filtered
92
- to exclude markets the agent already holds, and the runner + server both block
93
- re-betting a held market+outcome (no more one-agent, 25-identical-bets churn).
94
- An earlier version read the wrong `/positions/pm` fields and was silently dead;
95
- fixed.
96
- - **Settlement-feedback learning loop.** The agent sees how its own recent bets
97
- actually resolved (win/loss/void + realized PnL) as reflective context, so it
98
- learns from outcomes across cycles.
99
- - **Per-trade reasoning stays honest about the market.** A multi-action decision
100
- no longer stamps its primary rationale onto a secondary trade about a different
101
- market the trade's public Arena "why" always matches the market it's on.
102
- - **Futures reliability.** The model is unblinded to per-position mark /
103
- liquidation / stop / take-profit prices; take-profit is auto-clamped to a valid
104
- R:R target off the stop (kills the `take_profit_not_*_mark` reject waves); and a
105
- marking-down PM book now trips the equity-drawdown kill-switch too.
106
- - **News capability.** Recent high-importance news for the watchlist coins is fed
107
- into the decide context as a market-catalyst layer.
108
- - **Robustness + contract accuracy.** Scheduler/runner hardening, flat-state
109
- prompt steers (weak models stop hallucinating closes), manage-enum
110
- normalization, and the PM contract now documents real entry friction rather
111
- than a disclose-only stance.
112
- - **Security.** `hono` bumped to 4.12.27 (high-severity advisories: serve-static
113
- path traversal, CORS wildcard-with-credentials, body-limit bypass).
114
- - **Docs.** The npm README leads with value / free / OKF / Studio; stale
115
- scheduler and `minDecidedTrades` claims corrected.
116
-
117
- ## 0.4.0
118
-
119
- - **Deterministic scorecard engine (`computeScorecard`).** The reproducible-
120
- evaluation engine for `coinrithm.agent.scorecard.v1` — pure math over an
121
- agent's realized track record (no network, no model): realized PnL, win rate,
122
- expectancy, profit factor, reward-to-risk, Sharpe, Sortino, deflated /
123
- probabilistic Sharpe (Bailey & López de Prado skill vs luck with a multiple-
124
- testing penalty), max drawdown, and Brier + ECE calibration for probabilistic
125
- calls. Same inputs → identical metrics **and** a sha256 `contentHash` of the
126
- canonicalized result, so a scorecard whose hash doesn't reproduce isn't
127
- trusted. Metrics are computed AFTER the run from immutable evidence (leakage-
128
- separation), so tuning-to-the-metric is structurally impossible. Returns
129
- `null` for thin records never a fabricated number.
130
- - **Resolver: committable file metadata + functionality pin.** The OKF resolver
131
- now carries per-file metadata and pins functionality through resolution, so a
132
- bundle's behavior is reproducible from its committed files.
133
-
134
- ## 0.3.0
135
-
136
- - **Agent risk config: coin deny-list (`blocklist`).** `risk.blocklist` lets an
137
- agent name symbols it must never open, even if they are on the watchlist —
138
- deny wins over allow. Enforced in the runner's decision validator (rejects
139
- `futures_open` / `spot_order` on a denied symbol) and surfaced in the system
140
- prompt, so the model is told the boundary and the runner re-checks it.
141
- - **Docs: Open Knowledge Format positioning.** Clarified that a CoinRithm agent
142
- is an OKF bundle a portable directory of markdown + frontmatter that is
143
- model-agnostic (run the same definition on any model). Develop and prove it
144
- free on paper, then run it anywhere.
145
- - npm keywords refreshed (`open-knowledge-format`, `okf`, `model-agnostic`,
146
- `gemini`) for registry discovery.
147
-
148
- ## 0.2.0
149
-
150
- - Added the **`coinrithm-agent`** self-host runner binary alongside the MCP
151
- server: a folder-as-architecture (OKF) agent you bring your own model key to,
152
- with caps enforced by the runner (not the model), dry-run by default,
153
- paper-only.
154
-
155
- ## 0.1.x
156
-
157
- - Initial `coinrithm-mcp` MCP server: reads, quotes, scoped spot/futures/PM
158
- writes, ledger export, and Agent Arena integration over a user-minted API key.
1
+ # Changelog
2
+
3
+ All notable changes to `@coinrithm/mcp-trading` are documented here. The package
4
+ ships two binaries — `coinrithm-mcp` (the MCP server) and `coinrithm-agent` (the
5
+ self-host agent runner) — versioned together. The CoinRithm **API contract** is
6
+ versioned separately (see `openapi.yaml` `info.version`, currently `1.6.0`).
7
+
8
+ ## 0.7.5
9
+
10
+ **Release-hygiene bump. Everything below was already merged but never
11
+ reached npm** — the 0.7.4 tarball was published 2026-07-26T23:01:11Z and
12
+ five commits landed after that instant without a version bump, so the
13
+ repository's 0.7.4 and the published 0.7.4 were different code under one
14
+ version number. This release makes the published artifact match the
15
+ source again.
16
+
17
+ - **Security.** MCP dependency audit fixes, 6 findings to 0 (`da65e9e`).
18
+ Anyone on published 0.7.4 is running the pre-audit dependency set.
19
+ - **`pm_data` Gemini exposure** for agents (`3ab04ae`).
20
+ - **Venue methodology and health** exposed as tools (`74cc495`).
21
+ - **Reproducible decision receipts** persisted by the agent runner
22
+ (`8bebc9e`).
23
+ - **Docs.** Contract version drift corrected and the placeholder SDK
24
+ README replaced, so the docs stop advertising an install that 404s
25
+ (`6d61b92`).
26
+
27
+ No tool was renamed or removed; this is additive plus a dependency
28
+ refresh.
29
+
30
+ Publishing this package is a **manual** step — `publish-mcp.yml` only
31
+ pushes `server.json` to the MCP registry, it does not run `npm publish`.
32
+ That asymmetry is exactly how the drift above accumulated unnoticed.
33
+
34
+ ## 0.7.4
35
+
36
+ Docs-only. No tool behavior change, no API-surface change.
37
+
38
+ - **Acceptable Use of Market Data.** The README (root and this package) and
39
+ `openapi.yaml` (`info.termsOfService`, `info.description`, and the
40
+ `public-pm-data` tag) now reference and summarize CoinRithm's licensing
41
+ flow-down restriction on Market Data from third-party prediction-market
42
+ venues: read-only use for paper-trading context and settled-outcome
43
+ scoring only no model training/fine-tuning/benchmarking, no
44
+ redistribution or bulk-extraction, no use to build a competing product.
45
+ Full terms: <https://www.coinrithm.com/en/terms-of-use>
46
+
47
+ ## 0.7.3
48
+
49
+ Quality-engine surfaces + independent forecasts. Additive; no breaking change.
50
+
51
+ - **Quality verdicts in tool responses.** `discover_pm_markets`, `pm_quote`, and
52
+ the `pm_data_*` tools now surface the persisted truth-engine `quality` object
53
+ (`decisionEligible`, warning/block reason codes, `policyVersion`, `assessedAt`).
54
+ Markets with critical failures stay visible but cannot drive paper opens or
55
+ alerts.
56
+ - **`openBlocked` preview on `pm_quote`.** Quotes preview the open-time quality
57
+ gate (`openBlocked` + `openBlockReasons`), so an agent can skip a market that
58
+ would 422 before burning the open attempt. The self-host runner
59
+ (`coinrithm-agent`) does this skip automatically.
60
+ - **Independent forecasts in the runner.** The self-host agent runner elicits the
61
+ model's OWN probability (judged from the question/resolution criteria/deadline,
62
+ never anchored to the market price) and submits it as `forecastProbability` on
63
+ PM opens feeding the public calibration dataset with proper-scoring-rule
64
+ forecasts. Clamped to [1,99]; omitted (never faked) when the model does not
65
+ produce one; `HOUSE_AGENT_FORECAST_ENABLED=false` disables.
66
+ - **`crossPlatform` on event lists** documented in the API contract: sibling
67
+ venues pricing the same question, on list rows.
68
+ - **ForecastEx venue truth.** Public MCP discovery copy and registry metadata
69
+ now describe all 11 live venues, including ForecastEx.
70
+ - **Contract synchronization.** Runner templates and example bundles pin the
71
+ served OpenAPI 1.6.0 contract; canonical scorecard paths are unambiguous.
72
+
73
+ ## 0.7.2
74
+
75
+ Docs-truth + privacy release. No tool behavior change, no API-surface change.
76
+
77
+ - **Ten venues in the public listing.** `pm_data_*` tool copy, the README, and
78
+ `server.json` now name all ten venues (adds Futuur and Myriad). npm `0.7.1` was
79
+ published before those landed, so the registry listing still advertised "eight
80
+ venues"; npm versions are immutable, so correcting the public listing required
81
+ a new release.
82
+ - **`source` parameter description** on `pm_data_events` / `pm_data_event_detail`
83
+ now enumerates all ten venue slugs. Accepted values are unchanged — this is
84
+ description text only, which is why it is a patch and not a minor.
85
+ - **Privacy.** Raw model output is no longer persisted, enforcing the package's
86
+ no-chain-of-thought promise.
87
+ - **New tripwire.** `server.json` (the MCP-registry listing) is now guarded
88
+ against version and venue-count drift; it had no guard, which is how it went
89
+ stale in the first place.
90
+ - Refreshed stale Arena-gate example copy.
91
+
92
+ ## 0.7.1
93
+
94
+ Docs + registry-metadata release; no tool behavior changes.
95
+
96
+ - **README refresh**: the keyless `pm_data_*` data surface is now front and
97
+ center 8 venues (Polymarket, Kalshi, Smarkets, Limitless, Manifold,
98
+ Metaculus, PredictIt, Rothera the "seven venues" line predated Rothera),
99
+ the anonymous hosted-endpoint path, and the `referenceProbability` /
100
+ `volumeHistory` fields the data tools return.
101
+ - **`server.json`**: hosted endpoint's `Authorization` header marked optional
102
+ (the `pm_data_*` tools work anonymously verified live) and the server
103
+ description now leads with the keyless data surface.
104
+ - Ships the post-0.7.0 commits: `pm_data_event` advertises `volumeHistory`,
105
+ `pm_data_events` advertises `referenceProbability` on list items, and the
106
+ hosted MCP root (`GET /`) serves a self-describing JSON landing (with a
107
+ 405 + hint on `GET /mcp`).
108
+
109
+ ## 0.7.0
110
+
111
+ (Retroactive entry — released 2026-07-05 without a changelog note.)
112
+
113
+ - **Four keyless `pm_data_*` tools** — CoinRithm's free public cross-venue
114
+ prediction-market dataset over MCP, no API key required and yours is never
115
+ attached: `pm_data_overview` (market-wide stats), `pm_data_events`
116
+ (cross-venue event list), `pm_data_event` (detail incl.
117
+ `crossSourceMatches` + resolution evidence), `pm_data_whales`
118
+ (large-trade tape).
119
+
120
+ ## 0.5.0
121
+
122
+ Agent-runner quality + reliability release. `coinrithm-agent` got materially
123
+ smarter and less noisy; `coinrithm-mcp` is unchanged in shape. Bundles the work
124
+ since 0.4.0.
125
+
126
+ - **Prediction markets are a first-class venue** in the decide prompt: a short
127
+ `pmN` ref so small models trade PM reliably, eligible-outcome filtering (only
128
+ backend-openable outcomes reach the model), and futures-capped agents steered
129
+ to PM (a separate budget) instead of re-rejecting.
130
+ - **PM anti-churn now actually effective.** The candidate list is pre-filtered
131
+ to exclude markets the agent already holds, and the runner + server both block
132
+ re-betting a held market+outcome (no more one-agent, 25-identical-bets churn).
133
+ An earlier version read the wrong `/positions/pm` fields and was silently dead;
134
+ fixed.
135
+ - **Settlement-feedback learning loop.** The agent sees how its own recent bets
136
+ actually resolved (win/loss/void + realized PnL) as reflective context, so it
137
+ learns from outcomes across cycles.
138
+ - **Per-trade reasoning stays honest about the market.** A multi-action decision
139
+ no longer stamps its primary rationale onto a secondary trade about a different
140
+ market the trade's public Arena "why" always matches the market it's on.
141
+ - **Futures reliability.** The model is unblinded to per-position mark /
142
+ liquidation / stop / take-profit prices; take-profit is auto-clamped to a valid
143
+ R:R target off the stop (kills the `take_profit_not_*_mark` reject waves); and a
144
+ marking-down PM book now trips the equity-drawdown kill-switch too.
145
+ - **News capability.** Recent high-importance news for the watchlist coins is fed
146
+ into the decide context as a market-catalyst layer.
147
+ - **Robustness + contract accuracy.** Scheduler/runner hardening, flat-state
148
+ prompt steers (weak models stop hallucinating closes), manage-enum
149
+ normalization, and the PM contract now documents real entry friction rather
150
+ than a disclose-only stance.
151
+ - **Security.** `hono` bumped to 4.12.27 (high-severity advisories: serve-static
152
+ path traversal, CORS wildcard-with-credentials, body-limit bypass).
153
+ - **Docs.** The npm README leads with value / free / OKF / Studio; stale
154
+ scheduler and `minDecidedTrades` claims corrected.
155
+
156
+ ## 0.4.0
157
+
158
+ - **Deterministic scorecard engine (`computeScorecard`).** The reproducible-
159
+ evaluation engine for `coinrithm.agent.scorecard.v1` — pure math over an
160
+ agent's realized track record (no network, no model): realized PnL, win rate,
161
+ expectancy, profit factor, reward-to-risk, Sharpe, Sortino, deflated /
162
+ probabilistic Sharpe (Bailey & López de Prado — skill vs luck with a multiple-
163
+ testing penalty), max drawdown, and Brier + ECE calibration for probabilistic
164
+ calls. Same inputs → identical metrics **and** a sha256 `contentHash` of the
165
+ canonicalized result, so a scorecard whose hash doesn't reproduce isn't
166
+ trusted. Metrics are computed AFTER the run from immutable evidence (leakage-
167
+ separation), so tuning-to-the-metric is structurally impossible. Returns
168
+ `null` for thin records — never a fabricated number.
169
+ - **Resolver: committable file metadata + functionality pin.** The OKF resolver
170
+ now carries per-file metadata and pins functionality through resolution, so a
171
+ bundle's behavior is reproducible from its committed files.
172
+
173
+ ## 0.3.0
174
+
175
+ - **Agent risk config: coin deny-list (`blocklist`).** `risk.blocklist` lets an
176
+ agent name symbols it must never open, even if they are on the watchlist —
177
+ deny wins over allow. Enforced in the runner's decision validator (rejects
178
+ `futures_open` / `spot_order` on a denied symbol) and surfaced in the system
179
+ prompt, so the model is told the boundary and the runner re-checks it.
180
+ - **Docs: Open Knowledge Format positioning.** Clarified that a CoinRithm agent
181
+ is an OKF bundle — a portable directory of markdown + frontmatter that is
182
+ model-agnostic (run the same definition on any model). Develop and prove it
183
+ free on paper, then run it anywhere.
184
+ - npm keywords refreshed (`open-knowledge-format`, `okf`, `model-agnostic`,
185
+ `gemini`) for registry discovery.
186
+
187
+ ## 0.2.0
188
+
189
+ - Added the **`coinrithm-agent`** self-host runner binary alongside the MCP
190
+ server: a folder-as-architecture (OKF) agent you bring your own model key to,
191
+ with caps enforced by the runner (not the model), dry-run by default,
192
+ paper-only.
193
+
194
+ ## 0.1.x
195
+
196
+ - Initial `coinrithm-mcp` MCP server: reads, quotes, scoped spot/futures/PM
197
+ writes, ledger export, and Agent Arena integration over a user-minted API key.