@davincibets/mcp-server 1.4.0 → 1.4.2

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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Da Vinci Bets MCP Server v1.3.2
3
+ * Da Vinci Bets MCP Server
4
4
  *
5
5
  * Gives any AI assistant (Claude, Cursor, Windsurf, etc.) native access
6
6
  * to Da Vinci Bets predictions via the user's personal API key.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Da Vinci Bets MCP Server v1.3.2
3
+ * Da Vinci Bets MCP Server
4
4
  *
5
5
  * Gives any AI assistant (Claude, Cursor, Windsurf, etc.) native access
6
6
  * to Da Vinci Bets predictions via the user's personal API key.
@@ -38,6 +38,16 @@ catch {
38
38
  process.exit(1);
39
39
  }
40
40
  const API_BASE = _rawUrl;
41
+ /**
42
+ * The ONE version string. Everything user-visible reads this.
43
+ *
44
+ * The startup banner carried a hardcoded "v1.3.2" and drifted through TWO
45
+ * releases — 1.4.0 and 1.4.1 both shipped announcing 1.3.2 to every operator on
46
+ * connect, while MCP `initialize` correctly reported the real version. The
47
+ * version-sync guard could not catch it because it only knew about four
48
+ * declarations, and this was a fifth. A constant cannot drift; a literal can.
49
+ */
50
+ const SERVER_VERSION = "1.4.2";
41
51
  const _rawKey = process.env.DVB_API_KEY;
42
52
  if (!_rawKey) {
43
53
  console.error("ERROR: DVB_API_KEY is required.\n" +
@@ -1196,12 +1206,20 @@ function formatRateLimit(rl) {
1196
1206
  // ─── Server Setup ───────────────────────────────────────────────────────────
1197
1207
  const server = new McpServer({
1198
1208
  name: "Da Vinci Bets",
1199
- version: "1.4.0", // keep in sync with package.json
1209
+ version: SERVER_VERSION,
1200
1210
  });
1201
1211
  // ─── Tool: get_predictions ──────────────────────────────────────────────────
1202
1212
  server.tool("get_predictions", "Fetch AI-powered sports predictions filtered by sport, market, team, and confidence. " +
1203
1213
  "Returns predictions with win probabilities, odds, edge values, confidence tiers, and game IDs. " +
1204
- "Covers NBA, NFL, NHL, and MLB across moneylines, spreads, and totals. " +
1214
+ // Markets are named generically on purpose. This string is baked into a
1215
+ // PUBLISHED npm package, so it cannot track the live suppression state the
1216
+ // way the web copy now does (lib/constants/suppressed-markets.ts): a paused
1217
+ // market would leave a stale claim in every installed copy until the next
1218
+ // release. The API itself already returns only what we publish, so naming
1219
+ // no specific market is both accurate and stable. All four spread cells
1220
+ // have been paused since June 2026.
1221
+ "Covers NBA, NFL, NHL, and MLB. The markets returned are whichever we are " +
1222
+ "currently publishing; the response reflects live coverage. " +
1205
1223
  "Use the team parameter to find predictions for a specific team (e.g., 'Lakers', 'NYY', 'Chiefs'). " +
1206
1224
  "Game IDs from results can be used with get_pick_card to render shareable images.", {
1207
1225
  sport: z
@@ -1974,7 +1992,7 @@ function errorResult(err) {
1974
1992
  async function main() {
1975
1993
  const transport = new StdioServerTransport();
1976
1994
  await server.connect(transport);
1977
- console.error("Da Vinci Bets MCP Server v1.3.2 — connected via stdio");
1995
+ console.error(`Da Vinci Bets MCP Server v${SERVER_VERSION} — connected via stdio`);
1978
1996
  console.error(`API: ${API_BASE}`);
1979
1997
  console.error(`Key: dvb_live_***`);
1980
1998
  console.error(`Teams: ${TEAMS.length} teams loaded across 4 sports`);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@davincibets/mcp-server",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "mcpName": "io.github.DaVinciPicks/davincibets-mcp",
5
- "description": "MCP server for Da Vinci Bets — AI sports predictions in your AI assistant",
5
+ "description": "MCP server for Da Vinci Bets \u2014 AI sports predictions in your AI assistant",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "scripts": {
17
17
  "build": "tsc",
18
18
  "dev": "tsx src/index.ts",
19
- "prepublishOnly": "npm run build"
19
+ "prepublishOnly": "bash scripts/check-version-sync.sh && npm run build"
20
20
  },
21
21
  "keywords": [
22
22
  "mcp",