propline-mcp 0.40.0 → 0.41.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/dist/http.js +20 -5
- package/dist/http.js.map +1 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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`);
|
|
@@ -328,7 +331,7 @@ var PropLineClient = class {
|
|
|
328
331
|
};
|
|
329
332
|
|
|
330
333
|
// src/server.ts
|
|
331
|
-
var VERSION = "0.
|
|
334
|
+
var VERSION = "0.41.0";
|
|
332
335
|
var DEMO_KEY = "be2b8487fcfacb1fbc292a8aa925a84c";
|
|
333
336
|
var apiKey = process.env.PROPLINE_API_KEY;
|
|
334
337
|
var baseUrl = process.env.PROPLINE_BASE_URL;
|
|
@@ -864,14 +867,26 @@ var tools = [
|
|
|
864
867
|
type: "object",
|
|
865
868
|
properties: {
|
|
866
869
|
sport_key: { type: "string" },
|
|
867
|
-
event_id: { type: ["string", "number"] }
|
|
870
|
+
event_id: { type: ["string", "number"] },
|
|
871
|
+
markets: {
|
|
872
|
+
type: "string",
|
|
873
|
+
description: "Comma-separated market keys to restrict to (e.g. pitcher_strikeouts,batter_hits)."
|
|
874
|
+
},
|
|
875
|
+
bookmakers: {
|
|
876
|
+
type: "string",
|
|
877
|
+
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."
|
|
878
|
+
}
|
|
868
879
|
},
|
|
869
880
|
required: ["sport_key", "event_id"],
|
|
870
881
|
additionalProperties: false
|
|
871
882
|
},
|
|
872
883
|
handler: (args) => client().getEventResults(
|
|
873
884
|
args.sport_key,
|
|
874
|
-
args.event_id
|
|
885
|
+
args.event_id,
|
|
886
|
+
{
|
|
887
|
+
markets: args.markets,
|
|
888
|
+
bookmakers: args.bookmakers
|
|
889
|
+
}
|
|
875
890
|
)
|
|
876
891
|
},
|
|
877
892
|
{
|