@davincibets/mcp-server 1.4.1 → 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 +1 -1
- package/dist/index.js +13 -3
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* Da Vinci Bets MCP Server
|
|
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,7 +1206,7 @@ function formatRateLimit(rl) {
|
|
|
1196
1206
|
// ─── Server Setup ───────────────────────────────────────────────────────────
|
|
1197
1207
|
const server = new McpServer({
|
|
1198
1208
|
name: "Da Vinci Bets",
|
|
1199
|
-
version:
|
|
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. " +
|
|
@@ -1982,7 +1992,7 @@ function errorResult(err) {
|
|
|
1982
1992
|
async function main() {
|
|
1983
1993
|
const transport = new StdioServerTransport();
|
|
1984
1994
|
await server.connect(transport);
|
|
1985
|
-
console.error(
|
|
1995
|
+
console.error(`Da Vinci Bets MCP Server v${SERVER_VERSION} — connected via stdio`);
|
|
1986
1996
|
console.error(`API: ${API_BASE}`);
|
|
1987
1997
|
console.error(`Key: dvb_live_***`);
|
|
1988
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.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"mcpName": "io.github.DaVinciPicks/davincibets-mcp",
|
|
5
|
-
"description": "MCP server for Da Vinci Bets
|
|
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": {
|