propline-mcp 0.41.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
@@ -265,11 +265,22 @@ var PropLineClient = class {
265
265
  }
266
266
  );
267
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
+ }
268
275
  // ----- Player history -----
269
276
  getPlayerHistory(sportKey, playerName, opts = {}) {
270
277
  return this.request(
271
278
  `/v1/sports/${sportKey}/players/${encodeURIComponent(playerName)}/history`,
272
- { 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
+ }
273
284
  );
274
285
  }
275
286
  // ----- Player game log / H2H -----
@@ -331,7 +342,7 @@ var PropLineClient = class {
331
342
  };
332
343
 
333
344
  // src/server.ts
334
- var VERSION = "0.41.0";
345
+ var VERSION = "0.42.0";
335
346
  var DEMO_KEY = "be2b8487fcfacb1fbc292a8aa925a84c";
336
347
  var apiKey = process.env.PROPLINE_API_KEY;
337
348
  var baseUrl = process.env.PROPLINE_BASE_URL;
@@ -952,25 +963,57 @@ var tools = [
952
963
  }
953
964
  )
954
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
+ },
955
990
  {
956
991
  name: "propline_get_player_history",
957
992
  title: "Get player prop history",
958
- 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.",
959
994
  inputSchema: {
960
995
  type: "object",
961
996
  properties: {
962
997
  sport_key: { type: "string" },
963
998
  player_name: {
964
999
  type: "string",
965
- 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"
966
1009
  },
967
1010
  limit: {
968
1011
  type: "number",
969
1012
  description: "Max number of past games (default 20, max 100)"
970
1013
  },
971
- markets: {
972
- type: "string",
973
- 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."
974
1017
  }
975
1018
  },
976
1019
  required: ["sport_key", "player_name"],
@@ -981,7 +1024,8 @@ var tools = [
981
1024
  args.player_name,
982
1025
  {
983
1026
  limit: args.limit,
984
- markets: args.markets
1027
+ market: args.market ?? (args.markets?.split(",")[0]?.trim() || void 0),
1028
+ mainLineOnly: args.main_line_only
985
1029
  }
986
1030
  )
987
1031
  },
@@ -1033,7 +1077,7 @@ var tools = [
1033
1077
  sport_key: { type: "string" },
1034
1078
  player_name: {
1035
1079
  type: "string",
1036
- 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'"
1037
1081
  },
1038
1082
  market: {
1039
1083
  type: "string",