@davincibets/mcp-server 1.0.0 → 1.0.1
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.js +8 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -100,7 +100,7 @@ async function apiFetch(opts) {
|
|
|
100
100
|
// ─── Server Setup ───────────────────────────────────────────────────────────
|
|
101
101
|
const server = new McpServer({
|
|
102
102
|
name: "Da Vinci Bets",
|
|
103
|
-
version: "1.0.
|
|
103
|
+
version: "1.0.1",
|
|
104
104
|
});
|
|
105
105
|
// ─── Tool: get_predictions ──────────────────────────────────────────────────
|
|
106
106
|
server.tool("get_predictions", "Fetch AI-powered sports predictions filtered by sport, market, and confidence. " +
|
|
@@ -284,10 +284,11 @@ server.tool("get_top_picks", "Get the highest-conviction AI picks across all spo
|
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
// ─── Tool: get_pick_card ────────────────────────────────────────────────────
|
|
287
|
-
server.tool("get_pick_card", "Render a prediction as a shareable 1080×1350 PNG image card
|
|
288
|
-
"
|
|
287
|
+
server.tool("get_pick_card", "Render a prediction as a shareable 1080×1350 PNG image card with ESPN logos, " +
|
|
288
|
+
"L5 form dots, confidence bar, expanded AI analysis, and injuries. " +
|
|
289
|
+
"Powered by Browserless screenshot engine. Great for social media. " +
|
|
289
290
|
"Requires a game_id from get_predictions results. " +
|
|
290
|
-
"Partner-tier keys recommended (higher rate limits for batch
|
|
291
|
+
"Partner-tier keys recommended (higher rate limits for batch generation).", {
|
|
291
292
|
game_id: z
|
|
292
293
|
.string()
|
|
293
294
|
.regex(/^[a-zA-Z0-9_-]+$/, "game_id must be alphanumeric with _ or -")
|
|
@@ -303,7 +304,7 @@ server.tool("get_pick_card", "Render a prediction as a shareable 1080×1350 PNG
|
|
|
303
304
|
if (sport)
|
|
304
305
|
params.sport = sport;
|
|
305
306
|
const imageBuffer = await apiFetch({
|
|
306
|
-
path: `/api/card-
|
|
307
|
+
path: `/api/social/card-render/${encodeURIComponent(game_id)}`,
|
|
307
308
|
params,
|
|
308
309
|
raw: true,
|
|
309
310
|
});
|
|
@@ -350,7 +351,7 @@ server.tool("get_batch_cards", "Render multiple pick cards as PNG images in one
|
|
|
350
351
|
params.sport = sport;
|
|
351
352
|
const results = await Promise.allSettled(game_ids.map(async (gid) => {
|
|
352
353
|
const buf = await apiFetch({
|
|
353
|
-
path: `/api/card-
|
|
354
|
+
path: `/api/social/card-render/${encodeURIComponent(gid)}`,
|
|
354
355
|
params,
|
|
355
356
|
raw: true,
|
|
356
357
|
});
|
|
@@ -533,7 +534,7 @@ function errorResult(err) {
|
|
|
533
534
|
async function main() {
|
|
534
535
|
const transport = new StdioServerTransport();
|
|
535
536
|
await server.connect(transport);
|
|
536
|
-
console.error("Da Vinci Bets MCP Server v1.0.
|
|
537
|
+
console.error("Da Vinci Bets MCP Server v1.0.1 — connected via stdio");
|
|
537
538
|
console.error(`API: ${API_BASE}`);
|
|
538
539
|
console.error(`Key: dvb_live_***`);
|
|
539
540
|
}
|