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 CHANGED
@@ -39,6 +39,7 @@ 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_event_ids` | Event id crosswalk — ESPN, MLB gamePk and each book's own event id (free) |
42
43
  | `propline_get_book_accuracy` | Sportsbook accuracy report — how well each book prices props, vs the market (free) |
43
44
  | `propline_get_event_stats` | Raw box-score stats (free, book-agnostic) |
44
45
  | `propline_get_event_context` | Game conditions a prop settles under — probable pitchers, lineup flag, home-plate umpire, first-pitch weather (free) |
@@ -57,7 +58,7 @@ The model uses these tools transparently:
57
58
 
58
59
  ## Hosted endpoint (no install)
59
60
 
60
- The same 31 tools are served over **Streamable HTTP** at
61
+ The same 32 tools are served over **Streamable HTTP** at
61
62
 
62
63
  ```
63
64
  https://mcp.prop-line.com/mcp
package/dist/http.js CHANGED
@@ -238,6 +238,9 @@ var PropLineClient = class {
238
238
  days: opts.days
239
239
  });
240
240
  }
241
+ getEventIds(sportKey) {
242
+ return this.request(`/v1/sports/${sportKey}/ids`);
243
+ }
241
244
  getBookAccuracy(opts = {}) {
242
245
  return this.request(`/v1/books/accuracy`, {
243
246
  days: opts.days,
@@ -309,7 +312,8 @@ var PropLineClient = class {
309
312
  markets: opts.markets,
310
313
  bookmakers: opts.bookmakers,
311
314
  devig: opts.devig,
312
- fair_source: opts.fairSource
315
+ fair_source: opts.fairSource,
316
+ max_age: opts.maxAge
313
317
  });
314
318
  }
315
319
  getEventProjections(sportKey, eventId, opts = {}) {
@@ -349,7 +353,7 @@ var PropLineClient = class {
349
353
  };
350
354
 
351
355
  // src/server.ts
352
- var VERSION = "0.44.1";
356
+ var VERSION = "0.46.0";
353
357
  var DEMO_KEY = "be2b8487fcfacb1fbc292a8aa925a84c";
354
358
  var apiKey = process.env.PROPLINE_API_KEY;
355
359
  var baseUrl = process.env.PROPLINE_BASE_URL;
@@ -859,6 +863,20 @@ var tools = [
859
863
  },
860
864
  handler: (args) => client().getResolutionSummary({ days: args.days })
861
865
  },
866
+ {
867
+ name: "propline_get_event_ids",
868
+ title: "Get event id crosswalk",
869
+ 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'.",
870
+ inputSchema: {
871
+ type: "object",
872
+ properties: {
873
+ sport_key: { type: "string", description: "Sport key, e.g. baseball_mlb." }
874
+ },
875
+ required: ["sport_key"],
876
+ additionalProperties: false
877
+ },
878
+ handler: (args) => client().getEventIds(args.sport_key)
879
+ },
862
880
  {
863
881
  name: "propline_get_book_accuracy",
864
882
  title: "Get sportsbook accuracy report",
@@ -1157,7 +1175,12 @@ var tools = [
1157
1175
  },
1158
1176
  fair_source: {
1159
1177
  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."
1178
+ 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."
1179
+ },
1180
+ max_age: {
1181
+ type: "integer",
1182
+ minimum: 0,
1183
+ 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."
1161
1184
  }
1162
1185
  },
1163
1186
  required: ["sport_key", "event_id"],
@@ -1171,7 +1194,8 @@ var tools = [
1171
1194
  markets: args.markets,
1172
1195
  bookmakers: args.bookmakers,
1173
1196
  devig: args.devig,
1174
- fairSource: args.fair_source
1197
+ fairSource: args.fair_source,
1198
+ maxAge: args.max_age
1175
1199
  }
1176
1200
  );
1177
1201
  return filterByMinEv(res, args.min_ev_pct);