@with-thesis/mcp 0.1.0 → 0.1.1
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 +52 -20
- package/bin/thesis-mcp.mjs +0 -0
- package/package.json +1 -6
package/README.md
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
# @with-thesis/mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Connect thesis sports data to Claude Desktop, Cursor, and other MCP clients with your thesis API key.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## What You Need
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- A thesis API key
|
|
8
|
+
- `npx` available on your machine
|
|
9
|
+
|
|
10
|
+
Get an API key at [withthesis.dev](https://withthesis.dev).
|
|
11
|
+
|
|
12
|
+
## Quick Start
|
|
13
|
+
|
|
14
|
+
Run the MCP server locally over stdio:
|
|
8
15
|
|
|
9
16
|
```sh
|
|
10
17
|
THESIS_API_KEY=th_live_xxx npx -y @with-thesis/mcp
|
|
11
18
|
```
|
|
12
19
|
|
|
13
|
-
|
|
20
|
+
The package talks directly to the thesis API at `https://api.withthesis.dev` using your API key.
|
|
21
|
+
|
|
22
|
+
## Claude Desktop
|
|
23
|
+
|
|
24
|
+
Add this to your Claude Desktop MCP config:
|
|
14
25
|
|
|
15
26
|
```json
|
|
16
27
|
{
|
|
@@ -26,7 +37,9 @@ Claude Desktop example:
|
|
|
26
37
|
}
|
|
27
38
|
```
|
|
28
39
|
|
|
29
|
-
Cursor
|
|
40
|
+
## Cursor
|
|
41
|
+
|
|
42
|
+
Add this to your Cursor MCP config:
|
|
30
43
|
|
|
31
44
|
```json
|
|
32
45
|
{
|
|
@@ -42,23 +55,51 @@ Cursor example:
|
|
|
42
55
|
}
|
|
43
56
|
```
|
|
44
57
|
|
|
45
|
-
|
|
58
|
+
## Included Tools
|
|
59
|
+
|
|
60
|
+
- `get_games`
|
|
61
|
+
- `get_game`
|
|
62
|
+
- `get_boxscore`
|
|
63
|
+
- `get_odds`
|
|
64
|
+
- `get_line_movement`
|
|
65
|
+
- `get_bookmakers`
|
|
66
|
+
|
|
67
|
+
## Environment Variables
|
|
68
|
+
|
|
69
|
+
- `THESIS_API_KEY`: required
|
|
70
|
+
- `THESIS_API_URL`: optional, defaults to `https://api.withthesis.dev`
|
|
71
|
+
|
|
72
|
+
## Troubleshooting
|
|
73
|
+
|
|
74
|
+
If the client cannot start the server:
|
|
75
|
+
|
|
76
|
+
- make sure `npx` is installed and available
|
|
77
|
+
- make sure `THESIS_API_KEY` is set
|
|
78
|
+
- make sure your API key is the raw key from thesis, not the hashed value in the database
|
|
46
79
|
|
|
47
|
-
|
|
80
|
+
If the client connects but tool calls fail:
|
|
48
81
|
|
|
49
|
-
|
|
82
|
+
- verify the API key still works against thesis directly
|
|
83
|
+
- check whether your key is free or pro if you expect higher limits
|
|
84
|
+
- if you use a custom `THESIS_API_URL`, make sure it points at a working thesis API instance
|
|
85
|
+
|
|
86
|
+
## Advanced
|
|
87
|
+
|
|
88
|
+
The published package is for local stdio MCP clients.
|
|
89
|
+
|
|
90
|
+
If you want a hosted HTTP MCP endpoint, the thesis server can also be deployed separately and expose an endpoint such as:
|
|
50
91
|
|
|
51
92
|
```txt
|
|
52
93
|
https://mcp.withthesis.dev/mcp
|
|
53
94
|
```
|
|
54
95
|
|
|
55
|
-
|
|
96
|
+
HTTP auth is bearer-token based:
|
|
56
97
|
|
|
57
98
|
- `Authorization: Bearer th_live_xxx`
|
|
58
99
|
- `X-Thesis-API-Key: th_live_xxx`
|
|
59
100
|
- `X-API-Key: th_live_xxx`
|
|
60
101
|
|
|
61
|
-
##
|
|
102
|
+
## Development
|
|
62
103
|
|
|
63
104
|
From the repo root:
|
|
64
105
|
|
|
@@ -91,13 +132,4 @@ Environment variables:
|
|
|
91
132
|
- `PORT` or `MCP_PORT`: optional, defaults to `4100`
|
|
92
133
|
- `MCP_RATE_LIMIT_REQUESTS_PER_MIN`: optional coarse per-instance front-door rate limit, defaults to `300`
|
|
93
134
|
|
|
94
|
-
The hosted MCP service forwards requests to the main
|
|
95
|
-
|
|
96
|
-
## Implemented tools
|
|
97
|
-
|
|
98
|
-
- `get_games`
|
|
99
|
-
- `get_game`
|
|
100
|
-
- `get_boxscore`
|
|
101
|
-
- `get_odds`
|
|
102
|
-
- `get_line_movement`
|
|
103
|
-
- `get_bookmakers`
|
|
135
|
+
The hosted MCP service forwards requests to the main thesis API. The MCP rate limiter is only a coarse front-door guard and does not replace the API's real auth, quota, or billing enforcement.
|
package/bin/thesis-mcp.mjs
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@with-thesis/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "thesis MCP server for API-key-based AI client access.",
|
|
6
6
|
"homepage": "https://withthesis.dev",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/tensorix-labs/thesis.git",
|
|
10
|
-
"directory": "packages/mcp"
|
|
11
|
-
},
|
|
12
7
|
"publishConfig": {
|
|
13
8
|
"access": "public"
|
|
14
9
|
},
|