propline-mcp 0.42.0 → 0.44.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/README.md +4 -3
- package/dist/http.js +41 -5
- package/dist/http.js.map +1 -1
- package/dist/index.js +41 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -39,15 +39,16 @@ The model uses these tools transparently:
|
|
|
39
39
|
| `propline_get_mlb_grand_salami` | Synthetic daily MLB Grand Salami — total runs + each book's implied line (free) |
|
|
40
40
|
| `propline_get_nhl_daily_goals_total` | Synthetic daily NHL goals total — hockey's Grand Salami (free) |
|
|
41
41
|
| `propline_get_resolution_summary` | Graded-prop volume + per-sport/market breakdown (free) |
|
|
42
|
+
| `propline_get_book_accuracy` | Sportsbook accuracy report — how well each book prices props, vs the market (free) |
|
|
42
43
|
| `propline_get_event_stats` | Raw box-score stats (free, book-agnostic) |
|
|
43
44
|
| `propline_get_event_context` | Game conditions a prop settles under — probable pitchers, lineup flag, home-plate umpire, first-pitch weather (free) |
|
|
44
45
|
| `propline_get_event_movement` | Line movement + steam detection (sharp-money signal across all books) from the tick history (Hobby+). `since` (e.g. `-6h`) measures from a moment; `include_book_ids` adds book ids. |
|
|
45
46
|
| `propline_get_event_results` | Pro: graded won/lost/push per prop |
|
|
46
47
|
| `propline_search_players` | Free: find a player by name fragment → stable `player_id` + every spelling the books use (`known_names`) |
|
|
47
48
|
| `propline_get_player_history` | Player prop history with resolution; accepts a `player_id`; optional `main_line_only`; entries carry `is_main_line` + `line_moved_in_play` |
|
|
48
|
-
| `propline_get_player_games` | Player game log — recent games with every raw box-score stat per game, one call instead of one per event; `opponent` gives head-to-head (last N *meetings*). Raw-stat archive, so it includes games no book priced |
|
|
49
|
+
| `propline_get_player_games` | Player game log — recent games with every raw box-score stat per game, one call instead of one per event; `opponent` gives head-to-head (last N *meetings*). Raw-stat archive, so it includes games no book priced. Accepts a `player_id` in place of the name |
|
|
49
50
|
| `propline_get_player_trends` | Hit-rate trends — over/under/push splits over last 5/10/20/50 graded games, streak, avg actual (optional `dfs_odds_type` to scope to a PrizePicks flavor) |
|
|
50
|
-
| `propline_get_event_ev` | Pro: cross-book +EV with no-vig fair lines (`devig`: multiplicative or shin) |
|
|
51
|
+
| `propline_get_event_ev` | Pro: cross-book +EV with no-vig fair lines (`devig`: multiplicative or shin; `fair_source`: pick the anchor book(s), tried in order) |
|
|
51
52
|
| `propline_get_event_projections` | Hobby+: market-implied consensus projection per (market, player) |
|
|
52
53
|
| `propline_get_best_line` | Hobby+: cross-book line shopping — best price per (market, player, line) across all comparable books, `all_prices` sorted best-first; optional `bookmakers` filter |
|
|
53
54
|
| `propline_list_webhooks` | Streaming Lite+: list webhook subscriptions (read-only, secrets masked) |
|
|
@@ -56,7 +57,7 @@ The model uses these tools transparently:
|
|
|
56
57
|
|
|
57
58
|
## Hosted endpoint (no install)
|
|
58
59
|
|
|
59
|
-
The same
|
|
60
|
+
The same 31 tools are served over **Streamable HTTP** at
|
|
60
61
|
|
|
61
62
|
```
|
|
62
63
|
https://mcp.prop-line.com/mcp
|
package/dist/http.js
CHANGED
|
@@ -238,6 +238,12 @@ var PropLineClient = class {
|
|
|
238
238
|
days: opts.days
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
+
getBookAccuracy(opts = {}) {
|
|
242
|
+
return this.request(`/v1/books/accuracy`, {
|
|
243
|
+
days: opts.days,
|
|
244
|
+
sport: opts.sport
|
|
245
|
+
});
|
|
246
|
+
}
|
|
241
247
|
getFutures(sportKey) {
|
|
242
248
|
return this.request(`/v1/sports/${sportKey}/futures`);
|
|
243
249
|
}
|
|
@@ -302,7 +308,8 @@ var PropLineClient = class {
|
|
|
302
308
|
return this.request(`/v1/sports/${sportKey}/events/${eventId}/ev`, {
|
|
303
309
|
markets: opts.markets,
|
|
304
310
|
bookmakers: opts.bookmakers,
|
|
305
|
-
devig: opts.devig
|
|
311
|
+
devig: opts.devig,
|
|
312
|
+
fair_source: opts.fairSource
|
|
306
313
|
});
|
|
307
314
|
}
|
|
308
315
|
getEventProjections(sportKey, eventId, opts = {}) {
|
|
@@ -342,7 +349,7 @@ var PropLineClient = class {
|
|
|
342
349
|
};
|
|
343
350
|
|
|
344
351
|
// src/server.ts
|
|
345
|
-
var VERSION = "0.
|
|
352
|
+
var VERSION = "0.44.1";
|
|
346
353
|
var DEMO_KEY = "be2b8487fcfacb1fbc292a8aa925a84c";
|
|
347
354
|
var apiKey = process.env.PROPLINE_API_KEY;
|
|
348
355
|
var baseUrl = process.env.PROPLINE_BASE_URL;
|
|
@@ -852,6 +859,30 @@ var tools = [
|
|
|
852
859
|
},
|
|
853
860
|
handler: (args) => client().getResolutionSummary({ days: args.days })
|
|
854
861
|
},
|
|
862
|
+
{
|
|
863
|
+
name: "propline_get_book_accuracy",
|
|
864
|
+
title: "Get sportsbook accuracy report",
|
|
865
|
+
description: "Free-tier endpoint. How well each sportsbook prices player props: each book's closing prop prices are de-vigged and scored (Brier) against the real result and against the other books on the same line. Per book: props scored, brier, consensus_brier, skill_bp (> 0 = closer to the result than the market average) with a 95% interval, verdict (beats_market / trails_market / in_line) and margin_pct (average overround), plus by_sport and by_market breakdowns. Useful for: 'which book prices props most accurately', 'which book has the lowest margin'. A pricing report, never a profit claim or betting edge.",
|
|
866
|
+
inputSchema: {
|
|
867
|
+
type: "object",
|
|
868
|
+
properties: {
|
|
869
|
+
days: {
|
|
870
|
+
type: "number",
|
|
871
|
+
description: "Look-back window, 7-120. Defaults to 30."
|
|
872
|
+
},
|
|
873
|
+
sport: {
|
|
874
|
+
type: "string",
|
|
875
|
+
description: "Optional sport key, e.g. baseball_mlb."
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
required: [],
|
|
879
|
+
additionalProperties: false
|
|
880
|
+
},
|
|
881
|
+
handler: (args) => client().getBookAccuracy({
|
|
882
|
+
days: args.days,
|
|
883
|
+
sport: args.sport
|
|
884
|
+
})
|
|
885
|
+
},
|
|
855
886
|
{
|
|
856
887
|
name: "propline_get_event_stats",
|
|
857
888
|
title: "Get event stats",
|
|
@@ -1032,14 +1063,14 @@ var tools = [
|
|
|
1032
1063
|
{
|
|
1033
1064
|
name: "propline_get_player_games",
|
|
1034
1065
|
title: "Get player game log / H2H",
|
|
1035
|
-
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.",
|
|
1066
|
+
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).",
|
|
1036
1067
|
inputSchema: {
|
|
1037
1068
|
type: "object",
|
|
1038
1069
|
properties: {
|
|
1039
1070
|
sport_key: { type: "string" },
|
|
1040
1071
|
player_name: {
|
|
1041
1072
|
type: "string",
|
|
1042
|
-
description: "Player name as it appears in box scores \u2014 e.g. 'Aaron Judge', 'Nikola Jokic'"
|
|
1073
|
+
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'"
|
|
1043
1074
|
},
|
|
1044
1075
|
limit: {
|
|
1045
1076
|
type: "number",
|
|
@@ -1123,6 +1154,10 @@ var tools = [
|
|
|
1123
1154
|
type: "string",
|
|
1124
1155
|
enum: ["multiplicative", "shin"],
|
|
1125
1156
|
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."
|
|
1157
|
+
},
|
|
1158
|
+
fair_source: {
|
|
1159
|
+
type: "string",
|
|
1160
|
+
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."
|
|
1126
1161
|
}
|
|
1127
1162
|
},
|
|
1128
1163
|
required: ["sport_key", "event_id"],
|
|
@@ -1135,7 +1170,8 @@ var tools = [
|
|
|
1135
1170
|
{
|
|
1136
1171
|
markets: args.markets,
|
|
1137
1172
|
bookmakers: args.bookmakers,
|
|
1138
|
-
devig: args.devig
|
|
1173
|
+
devig: args.devig,
|
|
1174
|
+
fairSource: args.fair_source
|
|
1139
1175
|
}
|
|
1140
1176
|
);
|
|
1141
1177
|
return filterByMinEv(res, args.min_ev_pct);
|