propline-mcp 0.44.1 → 0.45.0
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/README.md +2 -1
- package/dist/http.js +18 -1
- package/dist/http.js.map +1 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -237,6 +237,9 @@ var PropLineClient = class {
|
|
|
237
237
|
days: opts.days
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
+
getEventIds(sportKey) {
|
|
241
|
+
return this.request(`/v1/sports/${sportKey}/ids`);
|
|
242
|
+
}
|
|
240
243
|
getBookAccuracy(opts = {}) {
|
|
241
244
|
return this.request(`/v1/books/accuracy`, {
|
|
242
245
|
days: opts.days,
|
|
@@ -348,7 +351,7 @@ var PropLineClient = class {
|
|
|
348
351
|
};
|
|
349
352
|
|
|
350
353
|
// src/server.ts
|
|
351
|
-
var VERSION = "0.
|
|
354
|
+
var VERSION = "0.45.0";
|
|
352
355
|
var DEMO_KEY = "be2b8487fcfacb1fbc292a8aa925a84c";
|
|
353
356
|
var apiKey = process.env.PROPLINE_API_KEY;
|
|
354
357
|
var baseUrl = process.env.PROPLINE_BASE_URL;
|
|
@@ -855,6 +858,20 @@ var tools = [
|
|
|
855
858
|
},
|
|
856
859
|
handler: (args) => client().getResolutionSummary({ days: args.days })
|
|
857
860
|
},
|
|
861
|
+
{
|
|
862
|
+
name: "propline_get_event_ids",
|
|
863
|
+
title: "Get event id crosswalk",
|
|
864
|
+
description: "Free-tier endpoint. Id crosswalk for one sport: one object per event from 3 days ago to 30 days ahead with PropLine's event id, commence_time, teams (+ team keys/ids), espn_event_id, mlb_game_pk, merged_from_event_ids, and each sportsbook's own event id + link under books. Useful for: 'join PropLine events onto ESPN / the MLB Stats API / a sportsbook's own feed', 'what is DraftKings' id for this game'.",
|
|
865
|
+
inputSchema: {
|
|
866
|
+
type: "object",
|
|
867
|
+
properties: {
|
|
868
|
+
sport_key: { type: "string", description: "Sport key, e.g. baseball_mlb." }
|
|
869
|
+
},
|
|
870
|
+
required: ["sport_key"],
|
|
871
|
+
additionalProperties: false
|
|
872
|
+
},
|
|
873
|
+
handler: (args) => client().getEventIds(args.sport_key)
|
|
874
|
+
},
|
|
858
875
|
{
|
|
859
876
|
name: "propline_get_book_accuracy",
|
|
860
877
|
title: "Get sportsbook accuracy report",
|