odds-api-mcp-server 1.0.1 → 1.1.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/index.d.ts CHANGED
@@ -1,2 +1,41 @@
1
1
  #!/usr/bin/env node
2
- export {};
2
+ type ParamValue = string | number | boolean | undefined;
3
+ interface ToolDefinition {
4
+ name: string;
5
+ description: string;
6
+ inputSchema: {
7
+ type: "object";
8
+ properties: Record<string, unknown>;
9
+ required: string[];
10
+ };
11
+ handler(args: Record<string, unknown>): Promise<{
12
+ content: Array<{
13
+ type: "text";
14
+ text: string;
15
+ }>;
16
+ isError?: boolean;
17
+ }>;
18
+ }
19
+ declare function apiRequest(endpoint: string, params?: Record<string, ParamValue>, method?: "GET" | "PUT"): Promise<unknown>;
20
+ declare function jsonResponse(data: unknown): {
21
+ content: {
22
+ type: "text";
23
+ text: string;
24
+ }[];
25
+ };
26
+ declare function textResponse(text: string): {
27
+ content: {
28
+ type: "text";
29
+ text: string;
30
+ }[];
31
+ };
32
+ declare function errorResponse(message: string): {
33
+ content: {
34
+ type: "text";
35
+ text: string;
36
+ }[];
37
+ isError: boolean;
38
+ };
39
+ declare const tools: ToolDefinition[];
40
+ declare const toolMap: Map<string, ToolDefinition>;
41
+ export { tools, toolMap, apiRequest, jsonResponse, textResponse, errorResponse };