propline-mcp 0.41.0 → 0.43.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 +6 -5
- package/dist/http.js +63 -13
- package/dist/http.js.map +1 -1
- package/dist/index.js +63 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -264,11 +264,22 @@ var PropLineClient = class {
|
|
|
264
264
|
}
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
|
+
// ----- Player search -----
|
|
268
|
+
searchPlayers(sportKey, search, opts = {}) {
|
|
269
|
+
return this.request(`/v1/sports/${sportKey}/players`, {
|
|
270
|
+
search,
|
|
271
|
+
limit: opts.limit
|
|
272
|
+
});
|
|
273
|
+
}
|
|
267
274
|
// ----- Player history -----
|
|
268
275
|
getPlayerHistory(sportKey, playerName, opts = {}) {
|
|
269
276
|
return this.request(
|
|
270
277
|
`/v1/sports/${sportKey}/players/${encodeURIComponent(playerName)}/history`,
|
|
271
|
-
{
|
|
278
|
+
{
|
|
279
|
+
limit: opts.limit,
|
|
280
|
+
market: opts.market,
|
|
281
|
+
main_line_only: opts.mainLineOnly === void 0 ? void 0 : opts.mainLineOnly ? "true" : "false"
|
|
282
|
+
}
|
|
272
283
|
);
|
|
273
284
|
}
|
|
274
285
|
// ----- Player game log / H2H -----
|
|
@@ -290,7 +301,8 @@ var PropLineClient = class {
|
|
|
290
301
|
return this.request(`/v1/sports/${sportKey}/events/${eventId}/ev`, {
|
|
291
302
|
markets: opts.markets,
|
|
292
303
|
bookmakers: opts.bookmakers,
|
|
293
|
-
devig: opts.devig
|
|
304
|
+
devig: opts.devig,
|
|
305
|
+
fair_source: opts.fairSource
|
|
294
306
|
});
|
|
295
307
|
}
|
|
296
308
|
getEventProjections(sportKey, eventId, opts = {}) {
|
|
@@ -330,7 +342,7 @@ var PropLineClient = class {
|
|
|
330
342
|
};
|
|
331
343
|
|
|
332
344
|
// src/server.ts
|
|
333
|
-
var VERSION = "0.
|
|
345
|
+
var VERSION = "0.43.0";
|
|
334
346
|
var DEMO_KEY = "be2b8487fcfacb1fbc292a8aa925a84c";
|
|
335
347
|
var apiKey = process.env.PROPLINE_API_KEY;
|
|
336
348
|
var baseUrl = process.env.PROPLINE_BASE_URL;
|
|
@@ -948,25 +960,57 @@ var tools = [
|
|
|
948
960
|
}
|
|
949
961
|
)
|
|
950
962
|
},
|
|
963
|
+
{
|
|
964
|
+
name: "propline_search_players",
|
|
965
|
+
title: "Search players",
|
|
966
|
+
description: "Find a player by name fragment and get their stable player_id (e.g. 'mlb:677951') plus every spelling the books use (known_names). Free tier. Pass the player_id as player_name to propline_get_player_history / propline_get_player_trends to avoid name-spelling ambiguity.",
|
|
967
|
+
inputSchema: {
|
|
968
|
+
type: "object",
|
|
969
|
+
properties: {
|
|
970
|
+
sport_key: { type: "string" },
|
|
971
|
+
search: {
|
|
972
|
+
type: "string",
|
|
973
|
+
description: "Name fragment to match, e.g. 'judge'"
|
|
974
|
+
},
|
|
975
|
+
limit: {
|
|
976
|
+
type: "number",
|
|
977
|
+
description: "Max players to return, 1-100. Default 25."
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
required: ["sport_key", "search"],
|
|
981
|
+
additionalProperties: false
|
|
982
|
+
},
|
|
983
|
+
handler: (args) => client().searchPlayers(args.sport_key, args.search, {
|
|
984
|
+
limit: args.limit
|
|
985
|
+
})
|
|
986
|
+
},
|
|
951
987
|
{
|
|
952
988
|
name: "propline_get_player_history",
|
|
953
989
|
title: "Get player prop history",
|
|
954
|
-
description: "Player prop history across recent games. Returns each prior prop this player took with line, prices, resolution,
|
|
990
|
+
description: "Player prop history across recent games for one market. Returns each prior prop this player took with line, prices, resolution, actual value, is_main_line (the book's main line vs an alt-ladder rung) and line_moved_in_play. Pass main_line_only=true to drop alt rungs. Pro tier returns full data; free tier returns redacted resolution/actual_value with an upgrade pointer.",
|
|
955
991
|
inputSchema: {
|
|
956
992
|
type: "object",
|
|
957
993
|
properties: {
|
|
958
994
|
sport_key: { type: "string" },
|
|
959
995
|
player_name: {
|
|
960
996
|
type: "string",
|
|
961
|
-
description: "Player name as it appears in box scores \u2014 e.g. 'Aaron Judge', 'Nikola Jokic'"
|
|
997
|
+
description: "Player name as it appears in box scores \u2014 e.g. 'Aaron Judge', 'Nikola Jokic' \u2014 or a player_id from propline_search_players, e.g. 'mlb:592450'"
|
|
998
|
+
},
|
|
999
|
+
market: {
|
|
1000
|
+
type: "string",
|
|
1001
|
+
description: "Market key, e.g. 'pitcher_strikeouts' or 'player_points'"
|
|
1002
|
+
},
|
|
1003
|
+
markets: {
|
|
1004
|
+
type: "string",
|
|
1005
|
+
description: "Deprecated alias: the first market of a comma-separated list is used when `market` is omitted"
|
|
962
1006
|
},
|
|
963
1007
|
limit: {
|
|
964
1008
|
type: "number",
|
|
965
1009
|
description: "Max number of past games (default 20, max 100)"
|
|
966
1010
|
},
|
|
967
|
-
|
|
968
|
-
type: "
|
|
969
|
-
description: "
|
|
1011
|
+
main_line_only: {
|
|
1012
|
+
type: "boolean",
|
|
1013
|
+
description: "Only each book's main line (drops alt-ladder rungs). Omit for every line."
|
|
970
1014
|
}
|
|
971
1015
|
},
|
|
972
1016
|
required: ["sport_key", "player_name"],
|
|
@@ -977,21 +1021,22 @@ var tools = [
|
|
|
977
1021
|
args.player_name,
|
|
978
1022
|
{
|
|
979
1023
|
limit: args.limit,
|
|
980
|
-
|
|
1024
|
+
market: args.market ?? (args.markets?.split(",")[0]?.trim() || void 0),
|
|
1025
|
+
mainLineOnly: args.main_line_only
|
|
981
1026
|
}
|
|
982
1027
|
)
|
|
983
1028
|
},
|
|
984
1029
|
{
|
|
985
1030
|
name: "propline_get_player_games",
|
|
986
1031
|
title: "Get player game log / H2H",
|
|
987
|
-
description: "A player's recent games with every raw box-score stat per game \u2014 one call instead of one request per event. Use this to answer 'how has X actually performed lately?' and to build L5/L10/L20, season splits and head-to-head yourself. Pass `opponent` for H2H (accepts a full name, nickname or abbreviation \u2014 'Boston Red Sox', 'Red Sox', 'BOS'); the limit applies AFTER that filter, so opponent + limit=10 means the last 10 MEETINGS, not the Boston games among the last 10 games. H2H is not capped to the current season. IMPORTANT: this is the raw box-score archive, NOT graded-prop history \u2014 it covers every game with a box score on file, including games no sportsbook priced, so a 'last 10 games' window here really is the last 10 games (one built from propline_get_player_trends silently skips unpriced games). It carries no line, price or grade; use propline_get_player_trends for hit rates against a posted line. `player_team`/`opponent`/`is_home` are null when the player's side can't be identified, and always for individual sports (tennis, golf, UFC) \u2014 report them as unknown rather than guessing.",
|
|
1032
|
+
description: "A player's recent games with every raw box-score stat per game \u2014 one call instead of one request per event. Use this to answer 'how has X actually performed lately?' and to build L5/L10/L20, season splits and head-to-head yourself. Pass `opponent` for H2H (accepts a full name, nickname or abbreviation \u2014 'Boston Red Sox', 'Red Sox', 'BOS'); the limit applies AFTER that filter, so opponent + limit=10 means the last 10 MEETINGS, not the Boston games among the last 10 games. H2H is not capped to the current season. IMPORTANT: this is the raw box-score archive, NOT graded-prop history \u2014 it covers every game with a box score on file, including games no sportsbook priced, so a 'last 10 games' window here really is the last 10 games (one built from propline_get_player_trends silently skips unpriced games). It carries no line, price or grade; use propline_get_player_trends for hit rates against a posted line. `player_team`/`opponent`/`is_home` are null when the player's side can't be identified, and always for individual sports (tennis, golf, UFC) \u2014 report them as unknown rather than guessing. Accepts a player_id in place of the name; the response carries player_id (null when the player has none yet).",
|
|
988
1033
|
inputSchema: {
|
|
989
1034
|
type: "object",
|
|
990
1035
|
properties: {
|
|
991
1036
|
sport_key: { type: "string" },
|
|
992
1037
|
player_name: {
|
|
993
1038
|
type: "string",
|
|
994
|
-
description: "Player name as it appears in box scores \u2014 e.g. 'Aaron Judge', 'Nikola Jokic'"
|
|
1039
|
+
description: "Player name as it appears in box scores \u2014 e.g. 'Aaron Judge', 'Nikola Jokic' \u2014 or a player_id from propline_search_players, e.g. 'mlb:592450'"
|
|
995
1040
|
},
|
|
996
1041
|
limit: {
|
|
997
1042
|
type: "number",
|
|
@@ -1029,7 +1074,7 @@ var tools = [
|
|
|
1029
1074
|
sport_key: { type: "string" },
|
|
1030
1075
|
player_name: {
|
|
1031
1076
|
type: "string",
|
|
1032
|
-
description: "Player name as it appears in box scores \u2014 e.g. 'Aaron Judge', 'Nikola Jokic'"
|
|
1077
|
+
description: "Player name as it appears in box scores \u2014 e.g. 'Aaron Judge', 'Nikola Jokic' \u2014 or a player_id from propline_search_players, e.g. 'mlb:592450'"
|
|
1033
1078
|
},
|
|
1034
1079
|
market: {
|
|
1035
1080
|
type: "string",
|
|
@@ -1075,6 +1120,10 @@ var tools = [
|
|
|
1075
1120
|
type: "string",
|
|
1076
1121
|
enum: ["multiplicative", "shin"],
|
|
1077
1122
|
description: "How the anchor's vig is removed. 'multiplicative' (default) divides each implied probability by the booksum; 'shin' solves Shin's insider-trading model, which loads the overround onto the longshot and corrects the favourite-longshot bias \u2014 use it when the user asks about longshot props (anytime TD, first scorer). The response echoes devig_method; say which method the numbers came from."
|
|
1123
|
+
},
|
|
1124
|
+
fair_source: {
|
|
1125
|
+
type: "string",
|
|
1126
|
+
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."
|
|
1078
1127
|
}
|
|
1079
1128
|
},
|
|
1080
1129
|
required: ["sport_key", "event_id"],
|
|
@@ -1087,7 +1136,8 @@ var tools = [
|
|
|
1087
1136
|
{
|
|
1088
1137
|
markets: args.markets,
|
|
1089
1138
|
bookmakers: args.bookmakers,
|
|
1090
|
-
devig: args.devig
|
|
1139
|
+
devig: args.devig,
|
|
1140
|
+
fairSource: args.fair_source
|
|
1091
1141
|
}
|
|
1092
1142
|
);
|
|
1093
1143
|
return filterByMinEv(res, args.min_ev_pct);
|