@chrischall/warapp-mcp 0.0.0-stage → 0.0.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/.claude-plugin/marketplace.json +34 -0
- package/.claude-plugin/plugin.json +21 -0
- package/.mcp.json +11 -0
- package/LICENSE +21 -0
- package/README.md +73 -2
- package/dist/bundle.js +61692 -0
- package/manifest.json +77 -0
- package/mint.yaml +53 -0
- package/package.json +63 -4
- package/server.json +35 -0
- package/skills/warapp-api/SKILL.md +135 -0
- package/skills/warapp-api/scripts/warapp.sh +167 -0
- package/skills/warapp-mcp/SKILL.md +63 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
|
|
3
|
+
"name": "warapp-mcp",
|
|
4
|
+
"owner": {
|
|
5
|
+
"name": "Chris Hall",
|
|
6
|
+
"email": "chris.c.hall@gmail.com"
|
|
7
|
+
},
|
|
8
|
+
"metadata": {
|
|
9
|
+
"description": "Read-only MCP server for war.app (Warzone) — your games, players, settings, map bonuses and chokepoints, board analysis and route planning, through war.app's per-player GameFeed API.",
|
|
10
|
+
"version": "0.0.0"
|
|
11
|
+
},
|
|
12
|
+
"plugins": [
|
|
13
|
+
{
|
|
14
|
+
"name": "warapp-mcp",
|
|
15
|
+
"displayName": "war.app (Warzone)",
|
|
16
|
+
"source": "./",
|
|
17
|
+
"description": "Read-only war.app (Warzone) game advisor for Claude — games, maps, bonuses and route planning",
|
|
18
|
+
"version": "0.0.0",
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "Chris Hall"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/chrischall/warapp-mcp",
|
|
23
|
+
"repository": "https://github.com/chrischall/warapp-mcp",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"keywords": [
|
|
26
|
+
"warzone",
|
|
27
|
+
"war.app",
|
|
28
|
+
"strategy-game",
|
|
29
|
+
"mcp"
|
|
30
|
+
],
|
|
31
|
+
"category": "productivity"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "warapp-mcp",
|
|
3
|
+
"displayName": "war.app (Warzone)",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"description": "Read-only war.app (Warzone) game advisor for Claude — games, maps, bonuses and route planning",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Chris Hall",
|
|
8
|
+
"email": "chris.c.hall@gmail.com"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/chrischall/warapp-mcp",
|
|
11
|
+
"repository": "https://github.com/chrischall/warapp-mcp",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"warzone",
|
|
15
|
+
"war.app",
|
|
16
|
+
"strategy-game",
|
|
17
|
+
"mcp"
|
|
18
|
+
],
|
|
19
|
+
"skills": "./skills/",
|
|
20
|
+
"mcpServers": "./.mcp.json"
|
|
21
|
+
}
|
package/.mcp.json
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Chris Hall
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,74 @@
|
|
|
1
|
-
#
|
|
1
|
+
# warapp-mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Read-only [war.app](https://war.app) (Warzone) game advisor MCP server for Claude. It reads
|
|
4
|
+
your games through war.app's per-player **GameFeed** API and helps you think about them:
|
|
5
|
+
players and settings, the map's bonuses and chokepoints, the board, and routes between
|
|
6
|
+
territories. It never submits orders.
|
|
7
|
+
|
|
8
|
+
> This project was developed and is maintained by AI (Claude Code). Use at your own discretion.
|
|
9
|
+
|
|
10
|
+
## Setup
|
|
11
|
+
|
|
12
|
+
1. Sign in to war.app in a browser and open <https://war.app/API/GetAPIToken> to see your
|
|
13
|
+
API token. Changing your war.app password rotates it.
|
|
14
|
+
2. Add the server to your MCP client:
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"mcpServers": {
|
|
19
|
+
"warapp": {
|
|
20
|
+
"command": "npx",
|
|
21
|
+
"args": ["-y", "@chrischall/warapp-mcp"],
|
|
22
|
+
"env": {
|
|
23
|
+
"WARAPP_EMAIL": "you@example.com",
|
|
24
|
+
"WARAPP_API_TOKEN": "<your token>"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
3. Call `warapp_healthcheck` to confirm war.app accepts the credentials.
|
|
32
|
+
|
|
33
|
+
| Variable | Required | |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| `WARAPP_EMAIL` | yes | The email address you sign in to war.app with. |
|
|
36
|
+
| `WARAPP_API_TOKEN` | yes | Your API token from <https://war.app/API/GetAPIToken>. |
|
|
37
|
+
| `WARAPP_ENV_FILE` | no | A dotenv file to read the two above from (default `~/.config/warapp-mcp/.env`). Values already in the environment win. |
|
|
38
|
+
|
|
39
|
+
The server starts without credentials and reports what is missing on the first call
|
|
40
|
+
that needs them.
|
|
41
|
+
|
|
42
|
+
## Tools
|
|
43
|
+
|
|
44
|
+
| Tool | |
|
|
45
|
+
|---|---|
|
|
46
|
+
| `warapp_healthcheck` | Check that war.app accepts your email and API token. |
|
|
47
|
+
| `warapp_get_game` | A game's state, turn, players (and who has committed orders), settings digest and map. `view`: compact / full / raw. |
|
|
48
|
+
| `warapp_get_map` | The game map's bonuses ranked easiest first, plus chokepoints. Filter by `bonus` name to see one bonus's territories, borders and entry points. |
|
|
49
|
+
| `warapp_analyze_board` | Advice for one `player` from the current board: income, the bonuses closest to completion with armies needed, and visible threats. Needs a board; lobbies have none. The board parser is unverified, so the advice states its assumptions. |
|
|
50
|
+
| `warapp_plan_route` | Shortest path between two territories, given by name or id. |
|
|
51
|
+
|
|
52
|
+
All tools are read-only. Player, game, map and chat text comes back marked as untrusted third-party content.
|
|
53
|
+
|
|
54
|
+
## Skills
|
|
55
|
+
|
|
56
|
+
The package (and the Claude Code plugin) ships two skills under `skills/`:
|
|
57
|
+
|
|
58
|
+
- **warapp-mcp** — which tool answers which question, and how the tools behave in mcp-host context groups.
|
|
59
|
+
- **warapp-api** — the same GameFeed reads from a shell with curl and jq, no server needed. Source
|
|
60
|
+
`skills/warapp-api/scripts/warapp.sh` (bash or zsh) for `warapp_game`, `warapp_map` (cached per map)
|
|
61
|
+
and `warapp_feed`; it reads `WARAPP_EMAIL` / `WARAPP_API_TOKEN` from the environment or
|
|
62
|
+
`~/.config/warapp-mcp/.env` and never prints the token.
|
|
63
|
+
|
|
64
|
+
## Development
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
npm install
|
|
68
|
+
npm run build # tsc --noEmit + esbuild bundle → dist/bundle.js
|
|
69
|
+
npm test # typecheck + vitest
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
MIT
|