@chrischall/warapp-mcp 0.0.0-stage → 0.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/.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 +264 -2
- package/dist/analysis/award.js +159 -0
- package/dist/analysis/bonuses.js +98 -0
- package/dist/analysis/breach.js +62 -0
- package/dist/analysis/card-support.js +329 -0
- package/dist/analysis/card-threats.js +234 -0
- package/dist/analysis/cards-in-effect.js +130 -0
- package/dist/analysis/chains.js +59 -0
- package/dist/analysis/chokepoints.js +140 -0
- package/dist/analysis/combat.js +231 -0
- package/dist/analysis/commander-safety.js +149 -0
- package/dist/analysis/commitments.js +338 -0
- package/dist/analysis/exchange.js +155 -0
- package/dist/analysis/graph.js +82 -0
- package/dist/analysis/guard-off.js +54 -0
- package/dist/analysis/guess.js +351 -0
- package/dist/analysis/headroom.js +241 -0
- package/dist/analysis/hold-diff.js +64 -0
- package/dist/analysis/how-lost.js +130 -0
- package/dist/analysis/index.js +14 -0
- package/dist/analysis/local-deploy.js +159 -0
- package/dist/analysis/lookahead.js +108 -0
- package/dist/analysis/opponent-profile.js +551 -0
- package/dist/analysis/opponents.js +1245 -0
- package/dist/analysis/outlook.js +633 -0
- package/dist/analysis/overrides.js +60 -0
- package/dist/analysis/picks.js +1879 -0
- package/dist/analysis/plan/after-leftover.js +140 -0
- package/dist/analysis/plan/cap-spend.js +242 -0
- package/dist/analysis/plan/captures.js +1195 -0
- package/dist/analysis/plan/commander.js +236 -0
- package/dist/analysis/plan/completed.js +29 -0
- package/dist/analysis/plan/conceded-out.js +131 -0
- package/dist/analysis/plan/estimates.js +715 -0
- package/dist/analysis/plan/guard-off.js +232 -0
- package/dist/analysis/plan/holds.js +1631 -0
- package/dist/analysis/plan/leftover.js +760 -0
- package/dist/analysis/plan/move-order.js +319 -0
- package/dist/analysis/plan/orders.js +317 -0
- package/dist/analysis/plan/relations.js +702 -0
- package/dist/analysis/plan/report.js +672 -0
- package/dist/analysis/plan/shared.js +1218 -0
- package/dist/analysis/plan/stand-still.js +823 -0
- package/dist/analysis/plan/state.js +44 -0
- package/dist/analysis/plan/strike.js +1416 -0
- package/dist/analysis/plan/targets.js +651 -0
- package/dist/analysis/plan/team.js +299 -0
- package/dist/analysis/plan/threats.js +927 -0
- package/dist/analysis/plan/transfers.js +328 -0
- package/dist/analysis/plan/util.js +5 -0
- package/dist/analysis/plan/vacated.js +285 -0
- package/dist/analysis/planner.js +2922 -0
- package/dist/analysis/player-record.js +144 -0
- package/dist/analysis/player.js +268 -0
- package/dist/analysis/profile.js +347 -0
- package/dist/analysis/relations.js +1030 -0
- package/dist/analysis/schedule.js +88 -0
- package/dist/analysis/since-last.js +50 -0
- package/dist/analysis/static-seats.js +71 -0
- package/dist/analysis/stress.js +577 -0
- package/dist/analysis/team-brief.js +151 -0
- package/dist/analysis/tripwire.js +644 -0
- package/dist/analysis/turn-sim.js +259 -0
- package/dist/analysis/whereabouts.js +1109 -0
- package/dist/board.js +105 -0
- package/dist/bundle.js +143479 -0
- package/dist/cards.js +435 -0
- package/dist/chat-cursor.js +135 -0
- package/dist/chat.js +192 -0
- package/dist/client.js +361 -0
- package/dist/config.js +62 -0
- package/dist/direct/link.js +102 -0
- package/dist/direct/session.js +267 -0
- package/dist/direct/transport.js +424 -0
- package/dist/guess-salt.js +65 -0
- package/dist/hosted.js +24 -0
- package/dist/index.js +33 -0
- package/dist/join-color.js +140 -0
- package/dist/live.js +278 -0
- package/dist/map-stats.js +152 -0
- package/dist/map-store.js +204 -0
- package/dist/move-order.js +141 -0
- package/dist/my-games.js +180 -0
- package/dist/normalize.js +411 -0
- package/dist/open-games.js +537 -0
- package/dist/outlook-log.js +138 -0
- package/dist/path-lock.js +22 -0
- package/dist/pick-list.js +193 -0
- package/dist/player-record-store.js +229 -0
- package/dist/player-states.js +31 -0
- package/dist/profile-store.js +677 -0
- package/dist/protocol/bundle.js +375 -0
- package/dist/protocol/codec.js +556 -0
- package/dist/protocol/decoded.js +12 -0
- package/dist/protocol/interp.js +1904 -0
- package/dist/protocol/methods.js +531 -0
- package/dist/protocol/rpc.js +202 -0
- package/dist/push/listener.js +393 -0
- package/dist/push/packets.js +66 -0
- package/dist/push/socketio.js +333 -0
- package/dist/push/websocket.js +179 -0
- package/dist/redact.js +62 -0
- package/dist/relations-store.js +242 -0
- package/dist/replay.js +215 -0
- package/dist/scalars.js +28 -0
- package/dist/scout.js +346 -0
- package/dist/stats.js +269 -0
- package/dist/strategy/card-clock.js +185 -0
- package/dist/strategy/map-notes.js +128 -0
- package/dist/strategy/notes.js +2168 -0
- package/dist/team-cards.js +84 -0
- package/dist/team-orders.js +150 -0
- package/dist/teams.js +19 -0
- package/dist/tools/award.js +206 -0
- package/dist/tools/begin-turn.js +162 -0
- package/dist/tools/board.js +77 -0
- package/dist/tools/card-advice.js +256 -0
- package/dist/tools/card-effects.js +49 -0
- package/dist/tools/card-plays.js +434 -0
- package/dist/tools/card-support-advice.js +140 -0
- package/dist/tools/chat-inbox.js +146 -0
- package/dist/tools/chat.js +483 -0
- package/dist/tools/check-plan.js +688 -0
- package/dist/tools/commander-check.js +102 -0
- package/dist/tools/commitments.js +216 -0
- package/dist/tools/common.js +143 -0
- package/dist/tools/diplomacy.js +342 -0
- package/dist/tools/game.js +126 -0
- package/dist/tools/guess-view.js +56 -0
- package/dist/tools/healthcheck.js +90 -0
- package/dist/tools/hints.js +34 -0
- package/dist/tools/how-lost.js +154 -0
- package/dist/tools/index.js +142 -0
- package/dist/tools/join-game.js +327 -0
- package/dist/tools/leave-game.js +181 -0
- package/dist/tools/live-context.js +339 -0
- package/dist/tools/live.js +404 -0
- package/dist/tools/map-stats.js +117 -0
- package/dist/tools/map.js +133 -0
- package/dist/tools/my-games.js +123 -0
- package/dist/tools/open-games.js +104 -0
- package/dist/tools/opponents.js +151 -0
- package/dist/tools/order-options.js +135 -0
- package/dist/tools/picks.js +292 -0
- package/dist/tools/profile-hook.js +156 -0
- package/dist/tools/profile-opponents.js +121 -0
- package/dist/tools/profile-reads.js +99 -0
- package/dist/tools/push.js +385 -0
- package/dist/tools/relations.js +611 -0
- package/dist/tools/resolve.js +45 -0
- package/dist/tools/route.js +36 -0
- package/dist/tools/scout.js +87 -0
- package/dist/tools/session.js +163 -0
- package/dist/tools/strategy.js +200 -0
- package/dist/tools/stress-opponents.js +83 -0
- package/dist/tools/surrender.js +240 -0
- package/dist/tools/survival.js +189 -0
- package/dist/tools/team-brief.js +266 -0
- package/dist/tools/team-source.js +222 -0
- package/dist/tools/team.js +182 -0
- package/dist/tools/turn.js +2761 -0
- package/dist/tools/uncommit.js +160 -0
- package/dist/tools/where.js +275 -0
- package/dist/tools/write-kit.js +158 -0
- package/dist/transport-bridge.js +33 -0
- package/dist/trend.js +452 -0
- package/dist/version.js +4 -0
- package/manifest.json +247 -0
- package/mint.yaml +140 -0
- package/package.json +68 -4
- package/server.json +72 -0
- package/skills/warapp-api/SKILL.md +226 -0
- package/skills/warapp-api/references/scout.mjs +348 -0
- package/skills/warapp-api/scripts/warapp.sh +228 -0
- package/skills/warapp-mcp/SKILL.md +1011 -0
package/manifest.json
ADDED
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/anthropics/dxt/main/dist/mcpb-manifest.schema.json",
|
|
3
|
+
"manifest_version": "0.3",
|
|
4
|
+
"name": "warapp-mcp",
|
|
5
|
+
"display_name": "war.app (Warzone)",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"description": "war.app (Warzone) game advisor for Claude — your games, maps, bonuses, board analysis and routes via the GameFeed API, plus your games list (waiting on you first), opponent scouting with your head-to-head, the live board, territory picks, cards, turn planning and submission, turn notifications, and chat through your signed-in war.app tab (ContextMint Bridge). Joining, leaving or surrendering a game, Begin on a speed first turn, picks, turn orders, withdrawing them, chat sends and linking a session (local only) are confirm-gated.",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Chris Hall",
|
|
10
|
+
"email": "chris.c.hall@gmail.com",
|
|
11
|
+
"url": "https://github.com/chrischall"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/chrischall/warapp-mcp"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://github.com/chrischall/warapp-mcp",
|
|
18
|
+
"support": "https://github.com/chrischall/warapp-mcp/issues",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"keywords": [
|
|
21
|
+
"warzone",
|
|
22
|
+
"war.app",
|
|
23
|
+
"strategy-game",
|
|
24
|
+
"risk"
|
|
25
|
+
],
|
|
26
|
+
"server": {
|
|
27
|
+
"type": "node",
|
|
28
|
+
"entry_point": "dist/bundle.js",
|
|
29
|
+
"mcp_config": {
|
|
30
|
+
"command": "node",
|
|
31
|
+
"args": [
|
|
32
|
+
"${__dirname}/dist/bundle.js"
|
|
33
|
+
],
|
|
34
|
+
"env": {
|
|
35
|
+
"WARAPP_EMAIL": "${user_config.email}",
|
|
36
|
+
"WARAPP_API_TOKEN": "${user_config.api_token}",
|
|
37
|
+
"WARAPP_WS_PORT": "${user_config.ws_port}",
|
|
38
|
+
"WARAPP_TRANSPORT": "${user_config.transport}",
|
|
39
|
+
"WARAPP_SESSION_FILE": "${user_config.session_file}",
|
|
40
|
+
"WARAPP_ENV_FILE": "${user_config.env_file}",
|
|
41
|
+
"WARAPP_PLAYER_RECORD": "${user_config.player_record}",
|
|
42
|
+
"WARAPP_PLAYER_PROFILE": "${user_config.player_profile}"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"user_config": {
|
|
47
|
+
"email": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"title": "war.app email",
|
|
50
|
+
"description": "The email address you sign in to war.app with.",
|
|
51
|
+
"required": true
|
|
52
|
+
},
|
|
53
|
+
"api_token": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"title": "war.app API token",
|
|
56
|
+
"description": "Your API token, shown at https://war.app/API/GetAPIToken while signed in. Changing your password rotates it.",
|
|
57
|
+
"sensitive": true,
|
|
58
|
+
"required": true
|
|
59
|
+
},
|
|
60
|
+
"ws_port": {
|
|
61
|
+
"type": "number",
|
|
62
|
+
"title": "Bridge port",
|
|
63
|
+
"description": "The fetchproxy bridge port the live-game tools use to reach your signed-in war.app tab. The whole fetchproxy fleet and ContextMint Bridge share 37149; override only for local testing (or when a host injects a per-registration port). Defaults to 37149.",
|
|
64
|
+
"required": false
|
|
65
|
+
},
|
|
66
|
+
"env_file": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"title": "Credentials file (optional)",
|
|
69
|
+
"description": "Optional dotenv file holding WARAPP_EMAIL / WARAPP_API_TOKEN. Defaults to ~/.config/warapp-mcp/.env.",
|
|
70
|
+
"required": false
|
|
71
|
+
},
|
|
72
|
+
"transport": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"title": "Transport (optional)",
|
|
75
|
+
"description": "How the live-game tools reach war.app: 'auto' (default — the chrome-less direct transport when a session is linked, else the browser bridge), 'direct', or 'fetchproxy' (browser bridge only).",
|
|
76
|
+
"required": false
|
|
77
|
+
},
|
|
78
|
+
"session_file": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"title": "Direct-transport session file (optional)",
|
|
81
|
+
"description": "Where the linked direct-transport session is stored (default <data dir>/session.json). Local-only; a full-account credential kept at file mode 0600.",
|
|
82
|
+
"required": false
|
|
83
|
+
},
|
|
84
|
+
"player_record": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"title": "Player record (optional)",
|
|
87
|
+
"description": "The name-free record of how other players kept truces, across games (salted hashes, no names). On by default; 'off' turns it off.",
|
|
88
|
+
"required": false
|
|
89
|
+
},
|
|
90
|
+
"player_profile": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"title": "Opponent profiles (optional)",
|
|
93
|
+
"description": "Counts of what each opponent did on the turns your boards showed (gameplay only, no names or chat), kept per game to profile its habits, and folded name-free (salted-hash keys) into counts across finished games. On by default; 'off' turns it off.",
|
|
94
|
+
"required": false
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"tools": [
|
|
98
|
+
{
|
|
99
|
+
"name": "warapp_healthcheck",
|
|
100
|
+
"description": "Check that war.app accepts your email and API token"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "warapp_my_games",
|
|
104
|
+
"description": "List your war.app games, games waiting on you first (through your signed-in tab)"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "warapp_list_open_games",
|
|
108
|
+
"description": "List open war.app games you could join: pace, seats, entry fee and rules (works without a browser once a session is linked)"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "warapp_join_game",
|
|
112
|
+
"description": "Join an open war.app game from the open games list (confirm-gated)"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "warapp_leave_game",
|
|
116
|
+
"description": "Leave a game that has not started, giving up your seat (confirm-gated), confirmed from game state"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "warapp_surrender",
|
|
120
|
+
"description": "Surrender a war.app game you are playing, or take back a pending surrender (confirm-gated)"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "warapp_begin_turn",
|
|
124
|
+
"description": "Press Begin in a speed-first-turn game to reveal the board and start your turn timer (confirm-gated)"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "warapp_scout_player",
|
|
128
|
+
"description": "Scout a war.app player: level, games, boots, ranked records and your head-to-head (through your signed-in tab)"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "warapp_get_game",
|
|
132
|
+
"description": "Look up a war.app game: state, turn, players and who has committed, settings digest"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "warapp_get_map",
|
|
136
|
+
"description": "Rank a game map's bonuses (easiest first) and find its chokepoints"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "warapp_map_stats",
|
|
140
|
+
"description": "Opt-in (local, WARAPP_STATS=1): a map's most-picked starts, win rate by starting bonus and first-bonus turn, from finished ladder games"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "warapp_analyze_board",
|
|
144
|
+
"description": "Advise a player from the board (GameFeed or live): income, closest bonuses, armies needed, threats"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "warapp_strategy",
|
|
148
|
+
"description": "Strategy notes with sources, fitted to a game's format and settings, plus map notes: efficient bonuses, entry points, chokepoints"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "warapp_plan_route",
|
|
152
|
+
"description": "Shortest path between two territories on a game's map"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "warapp_get_live_board",
|
|
156
|
+
"description": "The live board through your war.app tab: owners, armies, fog, pickable territories"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "warapp_get_my_picks",
|
|
160
|
+
"description": "Your submitted territory picks in priority order"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "warapp_plan_turn",
|
|
164
|
+
"description": "Plan your turn from the live board: deploys and moves by name, expected bonuses, and submit-ready orders"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "warapp_check_plan",
|
|
168
|
+
"description": "Stress-test a list of orders before submitting: the replies one enemy deploy could make, and what each would cost you"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "warapp_track_opponents",
|
|
172
|
+
"description": "Track each opponent over your board history: deploys per turn, income, armies hidden in the fog, and bonuses that could explain the gap"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "warapp_locate_opponents",
|
|
176
|
+
"description": "Guess where each opponent is and what it may be doing: what you saw kept apart from likely starts, hidden territories, approaches and what to prepare for"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "warapp_profile_opponents",
|
|
180
|
+
"description": "Profile each opponent's habits from what your boards showed: how often it reinforces, attacks, strikes first, stacks, retaliates and retakes, with counts and counter-play"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "warapp_plan_picks",
|
|
184
|
+
"description": "Plan your territory picks: a ranked list in a compact primary and fallback group, with reasons and submit-ready ids"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"name": "warapp_submit_picks",
|
|
188
|
+
"description": "Submit territory picks (confirm-gated), verified by reading them back"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "warapp_submit_turn",
|
|
192
|
+
"description": "Commit your turn's orders (confirm-gated), validated on the live board and confirmed from game state"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "warapp_uncommit_turn",
|
|
196
|
+
"description": "Withdraw your committed orders for the current turn so you can submit corrected ones (confirm-gated)"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "warapp_get_chat",
|
|
200
|
+
"description": "Read a game's chat"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "warapp_chat_inbox",
|
|
204
|
+
"description": "Read the unseen chat across all your games in one call"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "warapp_get_team",
|
|
208
|
+
"description": "Read your team in a team game: teammates (human or AI, committed or not, visible income, entered orders or picks), the team hand and unread team chat"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "warapp_team_brief",
|
|
212
|
+
"description": "The facts for a team-chat message, never sent: pick-list overlap, picks lost, opponent incomes, my plan, asks, offers, cards and conflicts with my teammates' orders"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "warapp_send_chat",
|
|
216
|
+
"description": "Post a game chat message, public or private (confirm-gated)"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "warapp_get_relations",
|
|
220
|
+
"description": "Read the truces you recorded for a game: each one's state, board-derived watch flags and trust, quiet borders, and the partner's record"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "warapp_advise_diplomacy",
|
|
224
|
+
"description": "Advise on truces in a free-for-all: each neighbour's shared border, a truce priced by planning with and without it, a verdict, an offer's three checks, and facts you may cite"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "warapp_record_agreement",
|
|
228
|
+
"description": "Record a truce or a change to one in the server's agreement ledger and the partner's name-free cross-game record (nothing is sent to war.app)"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "warapp_wait_for_turn",
|
|
232
|
+
"description": "Wait until one of your games is waiting on you, woken by war.app's push notifications"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "warapp_recent_events",
|
|
236
|
+
"description": "List the game-update pushes this server has received"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "warapp_session_status",
|
|
240
|
+
"description": "Report whether a war.app session is linked for the direct (no-browser) transport, its age, and the active transport (never the cookie)"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "warapp_link_session",
|
|
244
|
+
"description": "Link your signed-in war.app session once for the direct (no-browser) transport, storing the cookie locally (confirm-gated)"
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
}
|
package/mint.yaml
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
version: 1
|
|
2
|
+
name: war.app (Warzone)
|
|
3
|
+
slug: warapp
|
|
4
|
+
# Hosting: browser bridge. GameFeed is called directly with the API token, but
|
|
5
|
+
# the live board, territory picks, turn orders and chat sends go over war.app's web-client
|
|
6
|
+
# protocol (/Services), and turn notifications over its socket.io push channel
|
|
7
|
+
# (xhr-polling) — both authenticated by the browser's cookies, so the
|
|
8
|
+
# fetchproxy bridge relays them through the user's signed-in war.app tab. The
|
|
9
|
+
# registration therefore also needs `bridge: true` and
|
|
10
|
+
# `bridgePortEnv: WARAPP_WS_PORT` (with a runtime that supports a bridge) —
|
|
11
|
+
# registration fields this manifest has no schema for.
|
|
12
|
+
#
|
|
13
|
+
# Direct transport is LOCAL-ONLY. A local install can link the signed-in
|
|
14
|
+
# war.app session (warapp_link_session) and then talk to war.app directly
|
|
15
|
+
# without a browser (WARAPP_TRANSPORT=auto/direct). That stores a full-account
|
|
16
|
+
# AuthToken on the machine, so hosting never uses it: a hosted child keeps the
|
|
17
|
+
# browser bridge above and stores no session token — enforced in code
|
|
18
|
+
# (src/hosted.ts): when hosted, warapp_link_session is not registered, the
|
|
19
|
+
# session store reads as empty and the transport is pinned to the bridge.
|
|
20
|
+
# Nothing in this manifest enables direct mode.
|
|
21
|
+
summary: >-
|
|
22
|
+
war.app (Warzone) game advisor — your games, players and settings, map
|
|
23
|
+
bonuses and chokepoints, board analysis and route planning through war.app's
|
|
24
|
+
GameFeed API, plus the games waiting on you, opponent scouting (their record and
|
|
25
|
+
your head-to-head), the live board, territory picks, turn planning and game chat
|
|
26
|
+
through your signed-in war.app tab, with card plays and a wait for your turn on
|
|
27
|
+
war.app's push notifications. Joining, leaving or surrendering a game, Begin on a
|
|
28
|
+
speed first turn, picks, turn orders, withdrawing them and chat messages are sent only
|
|
29
|
+
after you confirm.
|
|
30
|
+
examples:
|
|
31
|
+
- prompt: Which of my war.app games are waiting on me?
|
|
32
|
+
note: Lists your games through your war.app tab, the ones waiting on you first.
|
|
33
|
+
- prompt: Scout the other players in my war.app game 12345678 — how good are they, and how have I done against them?
|
|
34
|
+
note: Level, games played, boot rate and ranked records, plus the games you have played together.
|
|
35
|
+
- prompt: Which bonuses on the map of my war.app game 12345678 are easiest to take and hold?
|
|
36
|
+
note: Ranks bonuses by value per territory and per border.
|
|
37
|
+
- prompt: Plan my turn in war.app game 12345678 to complete a bonus, then submit it.
|
|
38
|
+
note: Plans deploys and moves from the live board; submits only after you confirm.
|
|
39
|
+
- prompt: Tell me when it's my turn in war.app games 12345678 and 23456789.
|
|
40
|
+
note: Waits on war.app's push notifications through your war.app tab.
|
|
41
|
+
|
|
42
|
+
identity:
|
|
43
|
+
# One child per caller: GameFeed answers AS the player whose email + token
|
|
44
|
+
# are presented, so two people sharing one child would share one player's
|
|
45
|
+
# view of every game (fog included). Required for `auth` below.
|
|
46
|
+
perUserChild: true
|
|
47
|
+
|
|
48
|
+
auth:
|
|
49
|
+
# Collected once on the connector's authorize page. There is no `flow`:
|
|
50
|
+
# GameFeed takes the email + token on every request (form body), with no
|
|
51
|
+
# login exchange, MFA or session to mint. Every auth field is stored as a
|
|
52
|
+
# per-user secret (the field schema has no separate `secret` flag).
|
|
53
|
+
fields:
|
|
54
|
+
- name: WARAPP_EMAIL
|
|
55
|
+
label: war.app email
|
|
56
|
+
type: text
|
|
57
|
+
required: true
|
|
58
|
+
help: The email address you sign in to war.app with.
|
|
59
|
+
- name: WARAPP_API_TOKEN
|
|
60
|
+
label: war.app API token
|
|
61
|
+
type: password
|
|
62
|
+
required: true
|
|
63
|
+
help: >-
|
|
64
|
+
Your API token, shown at https://war.app/API/GetAPIToken while signed
|
|
65
|
+
in to war.app. Stored as a per-user secret and never shown again.
|
|
66
|
+
Changing your war.app password rotates it — reconnect with the new one.
|
|
67
|
+
|
|
68
|
+
# WARAPP_EMAIL / WARAPP_API_TOKEN are collected per user above, and an auth
|
|
69
|
+
# field may not name a host-set variable, so they are not in `env`. Set them in
|
|
70
|
+
# the environment (or ~/.config/warapp-mcp/.env, or the file WARAPP_ENV_FILE
|
|
71
|
+
# names) only for a local, single-user install.
|
|
72
|
+
env:
|
|
73
|
+
- name: WARAPP_WS_PORT
|
|
74
|
+
required: false
|
|
75
|
+
help: >-
|
|
76
|
+
Concentrator port for the fetchproxy bridge (defaults to the fleet-shared
|
|
77
|
+
37149). The runner injects a per-registration port for a hosted bridged
|
|
78
|
+
child, so this is the name to give `bridgePortEnv` at registration.
|
|
79
|
+
- name: WARAPP_DEBUG
|
|
80
|
+
required: false
|
|
81
|
+
help: >-
|
|
82
|
+
Truthy logs the fetchproxy bridge's role and lifecycle to stderr.
|
|
83
|
+
Diagnostic only.
|
|
84
|
+
- name: WARAPP_TRANSPORT
|
|
85
|
+
required: false
|
|
86
|
+
help: >-
|
|
87
|
+
How the live-game tools reach war.app on a LOCAL install: auto (default —
|
|
88
|
+
the chrome-less direct transport when a session is linked, else the
|
|
89
|
+
browser bridge), direct, or fetchproxy. A hosted child keeps the bridge.
|
|
90
|
+
- name: WARAPP_PLAYER_RECORD
|
|
91
|
+
required: false
|
|
92
|
+
help: >-
|
|
93
|
+
The cross-game record of how other players kept truces (name-free, keyed
|
|
94
|
+
by a salted hash; owner decision D5, on by default, hosted as well). Set
|
|
95
|
+
off to switch it off.
|
|
96
|
+
- name: WARAPP_PLAYER_PROFILE
|
|
97
|
+
required: false
|
|
98
|
+
help: >-
|
|
99
|
+
Opponent profiles: gameplay counts per game and across games (name-free,
|
|
100
|
+
keyed by the same salted hash; owner decision P4, on by default, hosted
|
|
101
|
+
as well). Set off to switch it off.
|
|
102
|
+
- name: WARAPP_SESSION_FILE
|
|
103
|
+
required: false
|
|
104
|
+
help: >-
|
|
105
|
+
Local-only: where the linked direct-transport session is stored (default
|
|
106
|
+
<dataDir>/session.json, file mode 0600). A hosted child stores no session.
|
|
107
|
+
|
|
108
|
+
state:
|
|
109
|
+
dataDir: true
|
|
110
|
+
reason: >-
|
|
111
|
+
Two things must survive a cold start. The fetchproxy identity
|
|
112
|
+
($HOME/.fetchproxy/identity/warapp-mcp.json) is what the browser extension
|
|
113
|
+
paired with: without a persistent $HOME every cold start mints a new
|
|
114
|
+
identity and asks the user to pair again. And the war.app client bundle
|
|
115
|
+
(ujs.js, ~16 MB) is cached under $MCP_DATA_DIR/bundle/<version>.<sha256>.js: the
|
|
116
|
+
live board is decoded with the client's own readers, so without the cache
|
|
117
|
+
every cold start downloads it again. The agreement ledger
|
|
118
|
+
($MCP_DATA_DIR/relations: the truces recorded per game) lives there too, and
|
|
119
|
+
so does the cross-game player record (relations/players.json and its salt:
|
|
120
|
+
owner decision D5, on hosted as well, name-free and keyed by a salted hash;
|
|
121
|
+
WARAPP_PLAYER_RECORD=off switches it off), and the opponent profile turns
|
|
122
|
+
($MCP_DATA_DIR/profiles/games: gameplay counts per game, owner decision P4,
|
|
123
|
+
on hosted as well, folded when a game finishes into the name-free
|
|
124
|
+
profiles/players.json and population.json, keyed by the same salt; WARAPP_PLAYER_PROFILE=off switches it off). GameFeed maps are kept at
|
|
125
|
+
$MCP_DATA_DIR/maps/<mapId>.json (public map data, base bonus values, at most
|
|
126
|
+
40, re-downloaded after 30 days) with maps/games.json naming each game's map,
|
|
127
|
+
so a known game is not downloaded with its map again after a cold start; and
|
|
128
|
+
each planned game's settings are kept name-free at
|
|
129
|
+
$MCP_DATA_DIR/games/<gameId>.json (players by id only), so the cached boards
|
|
130
|
+
can be replayed offline.
|
|
131
|
+
|
|
132
|
+
egress:
|
|
133
|
+
allow:
|
|
134
|
+
# Fetched by this process: POST /API/GameFeed (src/client.ts). The
|
|
135
|
+
# /Services calls and war.app pages go through the user's tab over the
|
|
136
|
+
# bridge, not from here.
|
|
137
|
+
- war.app
|
|
138
|
+
# The client bundle (https://warappcdn.com/js/Release/ujs.js?v=<n>),
|
|
139
|
+
# downloaded directly once per version (src/tools/live-context.ts).
|
|
140
|
+
- warappcdn.com
|
package/package.json
CHANGED
|
@@ -1,6 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrischall/warapp-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"mcpName": "io.github.chrischall/warapp-mcp",
|
|
5
|
+
"description": "war.app (Warzone) game advisor MCP server for Claude — games, maps, bonuses and board analysis via the GameFeed API, plus your games list, opponent scouting, the live board, territory picks, cards, turn planning and submission, turn notifications and chat through your signed-in war.app tab. Developed and maintained by AI (Claude Code).",
|
|
6
|
+
"author": "Claude Code (AI) <https://www.anthropic.com/claude>",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/chrischall/warapp-mcp.git"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"mcp",
|
|
14
|
+
"model-context-protocol",
|
|
15
|
+
"claude",
|
|
16
|
+
"ai",
|
|
17
|
+
"warzone",
|
|
18
|
+
"war.app",
|
|
19
|
+
"strategy-game",
|
|
20
|
+
"risk"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"warapp-mcp": "dist/bundle.js"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
".claude-plugin",
|
|
32
|
+
".mcp.json",
|
|
33
|
+
"server.json",
|
|
34
|
+
"manifest.json",
|
|
35
|
+
"skills",
|
|
36
|
+
"mint.yaml"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsc && npm run bundle",
|
|
40
|
+
"bundle": "node scripts/bundle.mjs",
|
|
41
|
+
"dev": "node dist/bundle.js",
|
|
42
|
+
"test": "npm run typecheck && npm run lint && vitest run",
|
|
43
|
+
"test:watch": "vitest",
|
|
44
|
+
"test:coverage": "npm run typecheck && npm run lint && vitest run --coverage",
|
|
45
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json",
|
|
46
|
+
"lint": "biome lint --error-on-warnings"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@chrischall/mcp-utils": "^3.8.1",
|
|
50
|
+
"@fetchproxy/server": "^3.8.0",
|
|
51
|
+
"@modelcontextprotocol/server": "^2.4.0",
|
|
52
|
+
"acorn": "^8.19.0",
|
|
53
|
+
"dotenv": "^18.0.1",
|
|
54
|
+
"undici": "^7.30.2",
|
|
55
|
+
"zod": "^4.6.7"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@biomejs/biome": "^2.6.7",
|
|
59
|
+
"@modelcontextprotocol/client": "^2.4.0",
|
|
60
|
+
"@types/node": "^26.0.1",
|
|
61
|
+
"@vitest/coverage-v8": "^5.0.0",
|
|
62
|
+
"esbuild": "^0.28.1",
|
|
63
|
+
"typescript": "^7.0.2",
|
|
64
|
+
"vitest": "^5.0.0"
|
|
65
|
+
},
|
|
66
|
+
"allowScripts": {
|
|
67
|
+
"esbuild": false,
|
|
68
|
+
"fsevents": false
|
|
69
|
+
}
|
|
70
|
+
}
|
package/server.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.chrischall/warapp-mcp",
|
|
4
|
+
"description": "war.app (Warzone) game advisor — games, maps, bonuses, routes, live board, picks, turns and chat",
|
|
5
|
+
"repository": {
|
|
6
|
+
"url": "https://github.com/chrischall/warapp-mcp",
|
|
7
|
+
"source": "github"
|
|
8
|
+
},
|
|
9
|
+
"version": "0.1.0",
|
|
10
|
+
"packages": [
|
|
11
|
+
{
|
|
12
|
+
"registryType": "npm",
|
|
13
|
+
"identifier": "@chrischall/warapp-mcp",
|
|
14
|
+
"version": "0.1.0",
|
|
15
|
+
"transport": {
|
|
16
|
+
"type": "stdio"
|
|
17
|
+
},
|
|
18
|
+
"environmentVariables": [
|
|
19
|
+
{
|
|
20
|
+
"name": "WARAPP_EMAIL",
|
|
21
|
+
"description": "The email address you sign in to war.app with.",
|
|
22
|
+
"isRequired": true,
|
|
23
|
+
"format": "string"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "WARAPP_API_TOKEN",
|
|
27
|
+
"description": "Your war.app API token, from https://war.app/API/GetAPIToken while signed in.",
|
|
28
|
+
"isRequired": true,
|
|
29
|
+
"isSecret": true,
|
|
30
|
+
"format": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "WARAPP_WS_PORT",
|
|
34
|
+
"description": "fetchproxy bridge concentrator port for the live-game tools. Defaults to the fleet-shared 37149.",
|
|
35
|
+
"isRequired": false,
|
|
36
|
+
"format": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "WARAPP_ENV_FILE",
|
|
40
|
+
"description": "Optional dotenv file with WARAPP_EMAIL / WARAPP_API_TOKEN (default ~/.config/warapp-mcp/.env)",
|
|
41
|
+
"isRequired": false,
|
|
42
|
+
"isSecret": false,
|
|
43
|
+
"format": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "WARAPP_TRANSPORT",
|
|
47
|
+
"description": "How the live-game tools reach war.app: auto (default, direct when a session is linked else the browser bridge), direct, or fetchproxy.",
|
|
48
|
+
"isRequired": false,
|
|
49
|
+
"format": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "WARAPP_SESSION_FILE",
|
|
53
|
+
"description": "Where the linked direct-transport session is stored (default <data dir>/session.json). Local-only, file mode 0600.",
|
|
54
|
+
"isRequired": false,
|
|
55
|
+
"format": "string"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "WARAPP_PLAYER_RECORD",
|
|
59
|
+
"description": "The name-free cross-game record of how other players kept truces (salted hashes, no names). On by default; set off to turn it off.",
|
|
60
|
+
"isRequired": false,
|
|
61
|
+
"format": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "WARAPP_PLAYER_PROFILE",
|
|
65
|
+
"description": "Opponent profiling: counts of what each opponent did on the turns your boards showed (gameplay only, no names or chat), kept per game, and folded name-free (salted-hash keys) into counts across finished games. On by default; set off to turn it off.",
|
|
66
|
+
"isRequired": false,
|
|
67
|
+
"format": "string"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|