@battlegrid/mcp-server 1.0.0 → 1.0.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 +59 -85
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -1,27 +1,38 @@
|
|
|
1
1
|
# @battlegrid/mcp-server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@battlegrid/mcp-server)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
MCP server for [BattleGrid](https://battlegrid.trade) — play crypto prediction games from AI agents.
|
|
4
7
|
|
|
5
8
|
## Quick Start
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
2. **Add to your MCP client** (see below)
|
|
9
|
-
3. **Ask your agent**: *"Play a free Market Grid game for me"*
|
|
10
|
+
### npm (stdio transport)
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
```bash
|
|
13
|
+
BATTLEGRID_API_KEY=bg_live_xxx npx @battlegrid/mcp-server
|
|
14
|
+
```
|
|
12
15
|
|
|
13
|
-
###
|
|
16
|
+
### Remote server (streamable-http transport)
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
https://mcp.battlegrid.trade
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
No npm install required — connect directly from any MCP client that supports streamable-http.
|
|
23
|
+
|
|
24
|
+
## Configuration
|
|
14
25
|
|
|
15
|
-
|
|
26
|
+
### Claude Desktop
|
|
16
27
|
|
|
17
28
|
```json
|
|
18
29
|
{
|
|
19
30
|
"mcpServers": {
|
|
20
31
|
"battlegrid": {
|
|
21
32
|
"command": "npx",
|
|
22
|
-
"args": ["
|
|
33
|
+
"args": ["@battlegrid/mcp-server"],
|
|
23
34
|
"env": {
|
|
24
|
-
"BATTLEGRID_API_KEY": "
|
|
35
|
+
"BATTLEGRID_API_KEY": "bg_live_xxx"
|
|
25
36
|
}
|
|
26
37
|
}
|
|
27
38
|
}
|
|
@@ -31,122 +42,85 @@ Add to your Claude Desktop MCP settings:
|
|
|
31
42
|
### Claude Code
|
|
32
43
|
|
|
33
44
|
```bash
|
|
34
|
-
claude mcp add battlegrid
|
|
35
|
-
--transport stdio \
|
|
36
|
-
-- npx -y @battlegrid/mcp-server \
|
|
37
|
-
--env BATTLEGRID_API_KEY=bg_live_your_key_here
|
|
45
|
+
claude mcp add battlegrid -- npx @battlegrid/mcp-server
|
|
38
46
|
```
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
Set your API key:
|
|
41
49
|
|
|
42
|
-
|
|
50
|
+
```bash
|
|
51
|
+
export BATTLEGRID_API_KEY=bg_live_xxx
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Cursor
|
|
43
55
|
|
|
44
56
|
```json
|
|
45
57
|
{
|
|
46
58
|
"mcpServers": {
|
|
47
59
|
"battlegrid": {
|
|
48
60
|
"command": "npx",
|
|
49
|
-
"args": ["
|
|
61
|
+
"args": ["@battlegrid/mcp-server"],
|
|
50
62
|
"env": {
|
|
51
|
-
"BATTLEGRID_API_KEY": "
|
|
63
|
+
"BATTLEGRID_API_KEY": "bg_live_xxx"
|
|
52
64
|
}
|
|
53
65
|
}
|
|
54
66
|
}
|
|
55
67
|
}
|
|
56
68
|
```
|
|
57
69
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Any client supporting stdio transport:
|
|
61
|
-
|
|
62
|
-
| Setting | Value |
|
|
63
|
-
|---------|-------|
|
|
64
|
-
| **Command** | `npx` |
|
|
65
|
-
| **Args** | `-y @battlegrid/mcp-server` |
|
|
66
|
-
| **Env** | `BATTLEGRID_API_KEY=bg_live_your_key_here` |
|
|
67
|
-
|
|
68
|
-
## Alternative: Direct Remote Connection
|
|
70
|
+
## Skills
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
Install the BattleGrid skill for AI agent instructions:
|
|
71
73
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
| **Transport** | `streamable-http` |
|
|
76
|
-
| **Auth Header** | `Authorization: Bearer bg_live_your_key_here` |
|
|
77
|
-
|
|
78
|
-
## Environment Variables
|
|
79
|
-
|
|
80
|
-
| Variable | Required | Description |
|
|
81
|
-
|----------|----------|-------------|
|
|
82
|
-
| `BATTLEGRID_API_KEY` | Yes | Your API key (starts with `bg_live_`) |
|
|
83
|
-
| `BATTLEGRID_API_URL` | No | Override server URL (default: `https://mcp.battlegrid.trade`) |
|
|
74
|
+
```bash
|
|
75
|
+
npx skills add playbattlegrid/battlegrid-mcp
|
|
76
|
+
```
|
|
84
77
|
|
|
85
|
-
##
|
|
78
|
+
## Capabilities
|
|
86
79
|
|
|
87
|
-
###
|
|
80
|
+
### Tools (28)
|
|
88
81
|
|
|
89
82
|
| Category | Tools |
|
|
90
83
|
|----------|-------|
|
|
91
|
-
| **Market Grid** (7) | `list_market_grid_sessions`, `get_market_grid_session`, `check_market_grid_submission`, `submit_market_grid`, `
|
|
84
|
+
| **Market Grid** (7) | `list_market_grid_sessions`, `get_market_grid_session`, `check_market_grid_submission`, `submit_market_grid`, `get_market_grid_results`, `get_market_grid_player_grid`, `update_market_grid` |
|
|
92
85
|
| **Coin Grid** (6) | `list_coin_grid_sessions`, `get_coin_grid_session`, `check_coin_grid_submission`, `submit_coin_grid`, `get_coin_grid_results`, `get_coin_grid_player_grid` |
|
|
93
|
-
| **Account** (
|
|
86
|
+
| **Account** (6) | `get_account_balance`, `get_user_profile`, `get_user_stats`, `list_user_favorites`, `add_user_favorite_preset`, `remove_user_favorite_preset` |
|
|
94
87
|
| **Leaderboard** (3) | `get_leaderboard`, `get_market_grid_leaderboard`, `get_hall_of_fame` |
|
|
95
88
|
| **Market Data** (4) | `get_coin_overview`, `get_recent_candles`, `get_top_ranked_coins`, `list_game_presets` |
|
|
89
|
+
| **Intelligence Agent** (2) | `list_intelligence_agents`, `get_intelligence_agent` |
|
|
96
90
|
|
|
97
|
-
### 5
|
|
91
|
+
### Prompts (5)
|
|
98
92
|
|
|
99
93
|
| Prompt | Description |
|
|
100
94
|
|--------|-------------|
|
|
101
|
-
| `play-market-grid` |
|
|
102
|
-
| `play-coin-grid` | Coin Grid game
|
|
103
|
-
| `analyze-market` | Deep market analysis for
|
|
104
|
-
| `check-performance` | Review
|
|
105
|
-
| `strategy-guide` | Learn game rules and strategies |
|
|
95
|
+
| `play-market-grid` | End-to-end workflow for playing a Market Grid prediction game |
|
|
96
|
+
| `play-coin-grid` | End-to-end workflow for playing a Coin Grid prediction game |
|
|
97
|
+
| `analyze-market` | Deep market analysis for informed predictions |
|
|
98
|
+
| `check-performance` | Review your game results, stats, and leaderboard standing |
|
|
99
|
+
| `strategy-guide` | Learn BattleGrid game mechanics, rules, and strategies |
|
|
106
100
|
|
|
107
|
-
### 3
|
|
101
|
+
### Resources (3)
|
|
108
102
|
|
|
109
103
|
| Resource | URI |
|
|
110
104
|
|----------|-----|
|
|
111
105
|
| Game Rules | `battlegrid://rules/overview` |
|
|
112
|
-
| Grid Format | `battlegrid://reference/grid-format` |
|
|
113
|
-
| Quick Start | `battlegrid://guide/quick-start` |
|
|
106
|
+
| Grid Format Reference | `battlegrid://reference/grid-format` |
|
|
107
|
+
| Quick Start Guide | `battlegrid://guide/quick-start` |
|
|
114
108
|
|
|
115
|
-
##
|
|
109
|
+
## Authentication
|
|
116
110
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
| stdio (local process)
|
|
121
|
-
v
|
|
122
|
-
@battlegrid/mcp-server (this package)
|
|
123
|
-
|
|
|
124
|
-
| streamable-http (authenticated)
|
|
125
|
-
v
|
|
126
|
-
https://mcp.battlegrid.trade
|
|
127
|
-
(23 tools + 5 prompts + 3 resources)
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
This package is a thin proxy — it connects to BattleGrid's remote server and re-exposes all capabilities over stdio. Tools, prompts, and resources auto-sync with the server. No package updates needed when new features launch.
|
|
131
|
-
|
|
132
|
-
## Paid Games
|
|
133
|
-
|
|
134
|
-
1. Enable signer policy at **Profile > MCP** tab
|
|
135
|
-
2. Agent calls `submit_market_grid` — server handles payment automatically
|
|
136
|
-
3. Daily limits: 50 operations, $500 USD per day
|
|
111
|
+
1. Go to [battlegrid.trade](https://battlegrid.trade) → **Profile** → **MCP** tab
|
|
112
|
+
2. Generate an API key (format: `bg_live_*`)
|
|
113
|
+
3. Set `BATTLEGRID_API_KEY` in your environment
|
|
137
114
|
|
|
138
|
-
|
|
115
|
+
For paid games, enable **Server-Signed Wagers** in the MCP tab to allow the agent to submit entries on your behalf.
|
|
139
116
|
|
|
140
|
-
##
|
|
117
|
+
## Environment Variables
|
|
141
118
|
|
|
142
|
-
|
|
|
143
|
-
|
|
144
|
-
| `BATTLEGRID_API_KEY
|
|
145
|
-
| `
|
|
146
|
-
| `Cannot connect to BattleGrid server` | Check internet connection; verify `https://mcp.battlegrid.trade/health` |
|
|
147
|
-
| `Invalid or revoked API key` | Create a new key at Profile > MCP tab |
|
|
148
|
-
| Agent doesn't know game rules | Game instructions are auto-delivered on connect |
|
|
119
|
+
| Variable | Required | Description |
|
|
120
|
+
|----------|----------|-------------|
|
|
121
|
+
| `BATTLEGRID_API_KEY` | Yes | Your BattleGrid API key (`bg_live_*`) |
|
|
122
|
+
| `BATTLEGRID_API_URL` | No | Override server URL (default: `https://mcp.battlegrid.trade`) |
|
|
149
123
|
|
|
150
124
|
## License
|
|
151
125
|
|
|
152
|
-
MIT
|
|
126
|
+
[MIT](LICENSE)
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* BATTLEGRID_API_KEY (required) — Your BattleGrid API key (starts with bg_live_)
|
|
16
16
|
* BATTLEGRID_API_URL (optional) — Override server URL (default: https://mcp.battlegrid.trade)
|
|
17
17
|
*/
|
|
18
|
-
export declare const VERSION = "1.0.
|
|
18
|
+
export declare const VERSION = "1.0.1";
|
|
19
19
|
export declare const DEFAULT_URL = "https://mcp.battlegrid.trade";
|
|
20
20
|
export interface EnvConfig {
|
|
21
21
|
apiKey: string;
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
|
|
|
20
20
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
21
21
|
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
22
22
|
import { ListToolsRequestSchema, CallToolRequestSchema, ListPromptsRequestSchema, GetPromptRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
23
|
-
export const VERSION = '1.0.
|
|
23
|
+
export const VERSION = '1.0.1';
|
|
24
24
|
export const DEFAULT_URL = 'https://mcp.battlegrid.trade';
|
|
25
25
|
const MAX_RETRIES = 3;
|
|
26
26
|
const RETRY_DELAYS_MS = [2000, 4000, 8000];
|
|
@@ -29,11 +29,11 @@ export function validateEnv(env) {
|
|
|
29
29
|
const apiUrl = env.BATTLEGRID_API_URL || DEFAULT_URL;
|
|
30
30
|
if (!apiKey) {
|
|
31
31
|
throw new Error('BATTLEGRID_API_KEY environment variable is required.\n' +
|
|
32
|
-
'Get your API key at: https://battlegrid.
|
|
32
|
+
'Get your API key at: https://battlegrid.trade → Profile → MCP tab');
|
|
33
33
|
}
|
|
34
34
|
if (!apiKey.startsWith('bg_live_')) {
|
|
35
35
|
throw new Error('API key must start with "bg_live_"\n' +
|
|
36
|
-
'Create a new key at: https://battlegrid.
|
|
36
|
+
'Create a new key at: https://battlegrid.trade → Profile → MCP tab');
|
|
37
37
|
}
|
|
38
38
|
return { apiKey, apiUrl };
|
|
39
39
|
}
|
|
@@ -55,7 +55,7 @@ async function connectWithRetry(client, transport, apiUrl) {
|
|
|
55
55
|
// Auth errors should not be retried — the key is wrong
|
|
56
56
|
if (isAuthError(error)) {
|
|
57
57
|
throw new Error('Invalid or revoked API key.\n' +
|
|
58
|
-
'Create a new key at: https://battlegrid.
|
|
58
|
+
'Create a new key at: https://battlegrid.trade → Profile → MCP tab');
|
|
59
59
|
}
|
|
60
60
|
if (attempt === MAX_RETRIES) {
|
|
61
61
|
throw new Error(`Cannot connect to BattleGrid server at ${apiUrl} after ${MAX_RETRIES + 1} attempts.\n` +
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAC/B,MAAM,CAAC,MAAM,WAAW,GAAG,8BAA8B,CAAC;AAC1D,MAAM,WAAW,GAAG,CAAC,CAAC;AACtB,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAS3C,MAAM,UAAU,WAAW,CAAC,GAAuC;IACjE,MAAM,MAAM,GAAG,GAAG,CAAC,kBAAkB,CAAC;IACtC,MAAM,MAAM,GAAG,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;IAErD,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CACb,wDAAwD;YACxD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EA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,IAAI,iBAAiB,EAAE,CAAC;IACtB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACrB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,KAAK,IAAI,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@battlegrid/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "BattleGrid MCP server — play crypto prediction games from AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,11 +44,10 @@
|
|
|
44
44
|
"license": "MIT",
|
|
45
45
|
"repository": {
|
|
46
46
|
"type": "git",
|
|
47
|
-
"url": "https://github.com/
|
|
48
|
-
"directory": "packages/mcp-server"
|
|
47
|
+
"url": "https://github.com/playbattlegrid/battlegrid-mcp"
|
|
49
48
|
},
|
|
50
|
-
"homepage": "https://battlegrid.
|
|
49
|
+
"homepage": "https://battlegrid.trade",
|
|
51
50
|
"bugs": {
|
|
52
|
-
"url": "https://github.com/
|
|
51
|
+
"url": "https://github.com/playbattlegrid/battlegrid-mcp/issues"
|
|
53
52
|
}
|
|
54
53
|
}
|