propline-mcp 0.44.1 → 0.46.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 +28 -4
- package/dist/http.js.map +1 -1
- package/dist/index.js +28 -4
- 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,
|
|
@@ -308,7 +311,8 @@ var PropLineClient = class {
|
|
|
308
311
|
markets: opts.markets,
|
|
309
312
|
bookmakers: opts.bookmakers,
|
|
310
313
|
devig: opts.devig,
|
|
311
|
-
fair_source: opts.fairSource
|
|
314
|
+
fair_source: opts.fairSource,
|
|
315
|
+
max_age: opts.maxAge
|
|
312
316
|
});
|
|
313
317
|
}
|
|
314
318
|
getEventProjections(sportKey, eventId, opts = {}) {
|
|
@@ -348,7 +352,7 @@ var PropLineClient = class {
|
|
|
348
352
|
};
|
|
349
353
|
|
|
350
354
|
// src/server.ts
|
|
351
|
-
var VERSION = "0.
|
|
355
|
+
var VERSION = "0.46.0";
|
|
352
356
|
var DEMO_KEY = "be2b8487fcfacb1fbc292a8aa925a84c";
|
|
353
357
|
var apiKey = process.env.PROPLINE_API_KEY;
|
|
354
358
|
var baseUrl = process.env.PROPLINE_BASE_URL;
|
|
@@ -855,6 +859,20 @@ var tools = [
|
|
|
855
859
|
},
|
|
856
860
|
handler: (args) => client().getResolutionSummary({ days: args.days })
|
|
857
861
|
},
|
|
862
|
+
{
|
|
863
|
+
name: "propline_get_event_ids",
|
|
864
|
+
title: "Get event id crosswalk",
|
|
865
|
+
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'.",
|
|
866
|
+
inputSchema: {
|
|
867
|
+
type: "object",
|
|
868
|
+
properties: {
|
|
869
|
+
sport_key: { type: "string", description: "Sport key, e.g. baseball_mlb." }
|
|
870
|
+
},
|
|
871
|
+
required: ["sport_key"],
|
|
872
|
+
additionalProperties: false
|
|
873
|
+
},
|
|
874
|
+
handler: (args) => client().getEventIds(args.sport_key)
|
|
875
|
+
},
|
|
858
876
|
{
|
|
859
877
|
name: "propline_get_book_accuracy",
|
|
860
878
|
title: "Get sportsbook accuracy report",
|
|
@@ -1153,7 +1171,12 @@ var tools = [
|
|
|
1153
1171
|
},
|
|
1154
1172
|
fair_source: {
|
|
1155
1173
|
type: "string",
|
|
1156
|
-
description: "Optional anchor override: one book or a comma-separated list tried IN ORDER per line, from pinnacle, polymarket, kalshi, bovada, smarkets (anything else is a 400). Lines none of them anchor are dropped. Omit for the default order."
|
|
1174
|
+
description: "Optional anchor override: one book or a comma-separated list tried IN ORDER per line, from pinnacle, polymarket, kalshi, bovada, smarkets (anything else is a 400). Lines none of them anchor are dropped. Omit for the default order. The single value 'consensus' (not combinable with book names) uses the median no-vig probability across every book quoting a clean, fresh two-sided market (3+ books); each line then lists the books used in fair_books. It is opt-in and NOT a proven better anchor \u2014 never describe it as more profitable."
|
|
1175
|
+
},
|
|
1176
|
+
max_age: {
|
|
1177
|
+
type: "integer",
|
|
1178
|
+
minimum: 0,
|
|
1179
|
+
description: "Optional, seconds. Drops quoted prices the book has not delivered within that many seconds (each outcome carries last_update). The fair line is unaffected."
|
|
1157
1180
|
}
|
|
1158
1181
|
},
|
|
1159
1182
|
required: ["sport_key", "event_id"],
|
|
@@ -1167,7 +1190,8 @@ var tools = [
|
|
|
1167
1190
|
markets: args.markets,
|
|
1168
1191
|
bookmakers: args.bookmakers,
|
|
1169
1192
|
devig: args.devig,
|
|
1170
|
-
fairSource: args.fair_source
|
|
1193
|
+
fairSource: args.fair_source,
|
|
1194
|
+
maxAge: args.max_age
|
|
1171
1195
|
}
|
|
1172
1196
|
);
|
|
1173
1197
|
return filterByMinEv(res, args.min_ev_pct);
|