propline-mcp 0.40.0 → 0.42.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
@@ -43,7 +43,8 @@ The model uses these tools transparently:
43
43
  | `propline_get_event_context` | Game conditions a prop settles under — probable pitchers, lineup flag, home-plate umpire, first-pitch weather (free) |
44
44
  | `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
45
  | `propline_get_event_results` | Pro: graded won/lost/push per prop |
46
- | `propline_get_player_history` | Player prop history with resolution |
46
+ | `propline_search_players` | Free: find a player by name fragment → stable `player_id` + every spelling the books use (`known_names`) |
47
+ | `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` |
47
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 |
48
49
  | `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) |
49
50
  | `propline_get_event_ev` | Pro: cross-book +EV with no-vig fair lines (`devig`: multiplicative or shin) |
@@ -55,7 +56,7 @@ The model uses these tools transparently:
55
56
 
56
57
  ## Hosted endpoint (no install)
57
58
 
58
- The same 29 tools are served over **Streamable HTTP** at
59
+ The same 30 tools are served over **Streamable HTTP** at
59
60
 
60
61
  ```
61
62
  https://mcp.prop-line.com/mcp
@@ -120,7 +121,7 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) o
120
121
  }
121
122
  ```
122
123
 
123
- Restart Claude Desktop. The hammer icon should show 27 PropLine tools. (Or skip the install and add `https://mcp.prop-line.com/mcp` as a custom connector — see the hosted endpoint above.)
124
+ Restart Claude Desktop. The hammer icon should show 30 PropLine tools. (Or skip the install and add `https://mcp.prop-line.com/mcp` as a custom connector — see the hosted endpoint above.)
124
125
 
125
126
  #### Claude Code
126
127
 
package/dist/http.js CHANGED
@@ -244,8 +244,11 @@ var PropLineClient = class {
244
244
  getEventStats(sportKey, eventId) {
245
245
  return this.request(`/v1/sports/${sportKey}/events/${eventId}/stats`);
246
246
  }
247
- getEventResults(sportKey, eventId) {
248
- return this.request(`/v1/sports/${sportKey}/events/${eventId}/results`);
247
+ getEventResults(sportKey, eventId, opts = {}) {
248
+ return this.request(`/v1/sports/${sportKey}/events/${eventId}/results`, {
249
+ markets: opts.markets,
250
+ bookmakers: opts.bookmakers
251
+ });
249
252
  }
250
253
  getEventContext(sportKey, eventId) {
251
254
  return this.request(`/v1/sports/${sportKey}/events/${eventId}/context`);
@@ -262,11 +265,22 @@ var PropLineClient = class {
262
265
  }
263
266
  );
264
267
  }
268
+ // ----- Player search -----
269
+ searchPlayers(sportKey, search, opts = {}) {
270
+ return this.request(`/v1/sports/${sportKey}/players`, {
271
+ search,
272
+ limit: opts.limit
273
+ });
274
+ }
265
275
  // ----- Player history -----
266
276
  getPlayerHistory(sportKey, playerName, opts = {}) {
267
277
  return this.request(
268
278
  `/v1/sports/${sportKey}/players/${encodeURIComponent(playerName)}/history`,
269
- { limit: opts.limit, markets: opts.markets }
279
+ {
280
+ limit: opts.limit,
281
+ market: opts.market,
282
+ main_line_only: opts.mainLineOnly === void 0 ? void 0 : opts.mainLineOnly ? "true" : "false"
283
+ }
270
284
  );
271
285
  }
272
286
  // ----- Player game log / H2H -----
@@ -328,7 +342,7 @@ var PropLineClient = class {
328
342
  };
329
343
 
330
344
  // src/server.ts
331
- var VERSION = "0.40.0";
345
+ var VERSION = "0.42.0";
332
346
  var DEMO_KEY = "be2b8487fcfacb1fbc292a8aa925a84c";
333
347
  var apiKey = process.env.PROPLINE_API_KEY;
334
348
  var baseUrl = process.env.PROPLINE_BASE_URL;
@@ -864,14 +878,26 @@ var tools = [
864
878
  type: "object",
865
879
  properties: {
866
880
  sport_key: { type: "string" },
867
- event_id: { type: ["string", "number"] }
881
+ event_id: { type: ["string", "number"] },
882
+ markets: {
883
+ type: "string",
884
+ description: "Comma-separated market keys to restrict to (e.g. pitcher_strikeouts,batter_hits)."
885
+ },
886
+ bookmakers: {
887
+ type: "string",
888
+ description: "Comma-separated book keys to restrict to (e.g. bovada). Default returns all books; an unfiltered MLB game can run several MB, so pass one book when that is enough."
889
+ }
868
890
  },
869
891
  required: ["sport_key", "event_id"],
870
892
  additionalProperties: false
871
893
  },
872
894
  handler: (args) => client().getEventResults(
873
895
  args.sport_key,
874
- args.event_id
896
+ args.event_id,
897
+ {
898
+ markets: args.markets,
899
+ bookmakers: args.bookmakers
900
+ }
875
901
  )
876
902
  },
877
903
  {
@@ -937,25 +963,57 @@ var tools = [
937
963
  }
938
964
  )
939
965
  },
966
+ {
967
+ name: "propline_search_players",
968
+ title: "Search players",
969
+ 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.",
970
+ inputSchema: {
971
+ type: "object",
972
+ properties: {
973
+ sport_key: { type: "string" },
974
+ search: {
975
+ type: "string",
976
+ description: "Name fragment to match, e.g. 'judge'"
977
+ },
978
+ limit: {
979
+ type: "number",
980
+ description: "Max players to return, 1-100. Default 25."
981
+ }
982
+ },
983
+ required: ["sport_key", "search"],
984
+ additionalProperties: false
985
+ },
986
+ handler: (args) => client().searchPlayers(args.sport_key, args.search, {
987
+ limit: args.limit
988
+ })
989
+ },
940
990
  {
941
991
  name: "propline_get_player_history",
942
992
  title: "Get player prop history",
943
- description: "Player prop history across recent games. Returns each prior prop this player took with line, prices, resolution, and actual value. Pro tier returns full data; free tier returns redacted resolution/actual_value with an upgrade pointer.",
993
+ 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.",
944
994
  inputSchema: {
945
995
  type: "object",
946
996
  properties: {
947
997
  sport_key: { type: "string" },
948
998
  player_name: {
949
999
  type: "string",
950
- description: "Player name as it appears in box scores \u2014 e.g. 'Aaron Judge', 'Nikola Jokic'"
1000
+ 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'"
1001
+ },
1002
+ market: {
1003
+ type: "string",
1004
+ description: "Market key, e.g. 'pitcher_strikeouts' or 'player_points'"
1005
+ },
1006
+ markets: {
1007
+ type: "string",
1008
+ description: "Deprecated alias: the first market of a comma-separated list is used when `market` is omitted"
951
1009
  },
952
1010
  limit: {
953
1011
  type: "number",
954
1012
  description: "Max number of past games (default 20, max 100)"
955
1013
  },
956
- markets: {
957
- type: "string",
958
- description: "Comma-separated subset of markets (e.g. 'player_points,player_rebounds')"
1014
+ main_line_only: {
1015
+ type: "boolean",
1016
+ description: "Only each book's main line (drops alt-ladder rungs). Omit for every line."
959
1017
  }
960
1018
  },
961
1019
  required: ["sport_key", "player_name"],
@@ -966,7 +1024,8 @@ var tools = [
966
1024
  args.player_name,
967
1025
  {
968
1026
  limit: args.limit,
969
- markets: args.markets
1027
+ market: args.market ?? (args.markets?.split(",")[0]?.trim() || void 0),
1028
+ mainLineOnly: args.main_line_only
970
1029
  }
971
1030
  )
972
1031
  },
@@ -1018,7 +1077,7 @@ var tools = [
1018
1077
  sport_key: { type: "string" },
1019
1078
  player_name: {
1020
1079
  type: "string",
1021
- description: "Player name as it appears in box scores \u2014 e.g. 'Aaron Judge', 'Nikola Jokic'"
1080
+ 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'"
1022
1081
  },
1023
1082
  market: {
1024
1083
  type: "string",