@with-thesis/mcp 0.1.0 → 0.1.2
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 +9 -58
- package/bin/thesis-mcp.mjs +0 -0
- package/package.json +1 -6
package/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
Run it locally over stdio with an API key:
|
|
5
|
+
Get an API key at [withthesis.dev](https://withthesis.dev), then run:
|
|
8
6
|
|
|
9
7
|
```sh
|
|
10
8
|
THESIS_API_KEY=th_live_xxx npx -y @with-thesis/mcp
|
|
11
9
|
```
|
|
12
10
|
|
|
13
|
-
Claude Desktop
|
|
11
|
+
## Claude Desktop
|
|
12
|
+
|
|
13
|
+
Add this to your Claude Desktop MCP config:
|
|
14
14
|
|
|
15
15
|
```json
|
|
16
16
|
{
|
|
@@ -26,7 +26,9 @@ Claude Desktop example:
|
|
|
26
26
|
}
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
Cursor
|
|
29
|
+
## Cursor
|
|
30
|
+
|
|
31
|
+
Add this to your Cursor MCP config:
|
|
30
32
|
|
|
31
33
|
```json
|
|
32
34
|
{
|
|
@@ -42,58 +44,7 @@ Cursor example:
|
|
|
42
44
|
}
|
|
43
45
|
```
|
|
44
46
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
## Hosted HTTP model
|
|
48
|
-
|
|
49
|
-
Customers connect to a hosted endpoint such as:
|
|
50
|
-
|
|
51
|
-
```txt
|
|
52
|
-
https://mcp.withthesis.dev/mcp
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Auth is bearer-token based today:
|
|
56
|
-
|
|
57
|
-
- `Authorization: Bearer th_live_xxx`
|
|
58
|
-
- `X-Thesis-API-Key: th_live_xxx`
|
|
59
|
-
- `X-API-Key: th_live_xxx`
|
|
60
|
-
|
|
61
|
-
## Local development
|
|
62
|
-
|
|
63
|
-
From the repo root:
|
|
64
|
-
|
|
65
|
-
```sh
|
|
66
|
-
bun run api:dev
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
Remote HTTP dev server:
|
|
70
|
-
|
|
71
|
-
```sh
|
|
72
|
-
THESIS_API_URL=http://localhost:4000 \
|
|
73
|
-
THESIS_API_KEY=th_live_xxx \
|
|
74
|
-
MCP_ALLOW_ENV_AUTH_FALLBACK=true \
|
|
75
|
-
bun run mcp:dev:http
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
Local stdio dev server:
|
|
79
|
-
|
|
80
|
-
```sh
|
|
81
|
-
THESIS_API_URL=http://localhost:4000 \
|
|
82
|
-
THESIS_API_KEY=th_live_xxx \
|
|
83
|
-
bun run mcp:dev:stdio
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
Environment variables:
|
|
87
|
-
|
|
88
|
-
- `THESIS_API_URL`: optional, defaults to `https://api.withthesis.dev`
|
|
89
|
-
- `THESIS_API_KEY`: required for stdio
|
|
90
|
-
- `MCP_ALLOW_ENV_AUTH_FALLBACK`: optional, only for local HTTP dev when you want the server to use `THESIS_API_KEY` without an incoming auth header
|
|
91
|
-
- `PORT` or `MCP_PORT`: optional, defaults to `4100`
|
|
92
|
-
- `MCP_RATE_LIMIT_REQUESTS_PER_MIN`: optional coarse per-instance front-door rate limit, defaults to `300`
|
|
93
|
-
|
|
94
|
-
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.
|
|
95
|
-
|
|
96
|
-
## Implemented tools
|
|
47
|
+
## Included Tools
|
|
97
48
|
|
|
98
49
|
- `get_games`
|
|
99
50
|
- `get_game`
|
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.2",
|
|
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
|
},
|