@chrischall/warapp-mcp 0.2.0 → 0.3.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.
@@ -0,0 +1,31 @@
1
+ {
2
+ "steps": [
3
+ {
4
+ "tool": "warapp_session_status",
5
+ "args": {},
6
+ "prompt": [
7
+ {
8
+ "name": "password",
9
+ "label": "war.app password",
10
+ "type": "password",
11
+ "help": "Used once to sign in, never stored: it goes to war.app once, with the war.app email you gave above, and only the session war.app gives back is kept. If it stops working (a changed password, say), use Sign in on this connection again, or reconnect it."
12
+ }
13
+ ],
14
+ "title": "Sign in to war.app",
15
+ "description": "This lets the connector reach war.app directly, without your browser. Connecting needs this sign-in to succeed: if war.app refuses it (a wrong password, a bot check, an outage, or an account that signs in only through Facebook), the connection is not made. Your password is sent to war.app once, with your war.app email, and then discarded; what is kept is the session war.app gives back, a full-account credential stored as your own secret on this connection. A refused sign-in is not retried for you, because war.app may count failed attempts."
16
+ }
17
+ ],
18
+ "capture": {
19
+ "tool": "warapp_sign_in",
20
+ "args": {
21
+ "email": {
22
+ "from": "WARAPP_EMAIL"
23
+ },
24
+ "password": {
25
+ "from": "password"
26
+ }
27
+ },
28
+ "path": "authToken",
29
+ "into": "WARAPP_AUTH_TOKEN"
30
+ }
31
+ }
package/manifest.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifest_version": "0.3",
4
4
  "name": "warapp-mcp",
5
5
  "display_name": "war.app (Warzone)",
6
- "version": "0.2.0",
6
+ "version": "0.3.1",
7
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, accepting another player's surrender, Begin on a speed first turn, picks, turn orders, withdrawing them, chat sends, marking notifications and chat read, deleting notifications and linking a session (local only) are confirm-gated.",
8
8
  "author": {
9
9
  "name": "Chris Hall",
package/mint.yaml CHANGED
@@ -10,14 +10,27 @@ slug: warapp
10
10
  # `bridgePortEnv: WARAPP_WS_PORT` (with a runtime that supports a bridge) —
11
11
  # registration fields this manifest has no schema for.
12
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.
13
+ # Direct transport. A local install can link the signed-in war.app session
14
+ # (warapp_link_session, stored on that machine) and then talk to war.app
15
+ # directly without a browser (WARAPP_TRANSPORT=auto/direct). A hosted child
16
+ # never stores a session and never registers warapp_link_session (src/hosted.ts):
17
+ # it rides the direct leg only from the session captured at sign-in — the
18
+ # AuthToken mcp-host's authFlow (`auth.flow` below) captures into the per-user
19
+ # secret WARAPP_AUTH_TOKEN (#333: the war.app password is asked once and never
20
+ # stored; the token is held in memory) — with the bridge above as its fallback
21
+ # on the same registration. Without that token it is pinned to the bridge, as
22
+ # before. THE TRADE-OFF: once the registration carries the flow, every NEW
23
+ # connection needs one successful war.app password sign-in. mcp-host ends the
24
+ # login with no grant on any warapp_sign_in refusal — a captcha, an outage or
25
+ # a network fault as well as a wrong password — and may clear the fields
26
+ # already entered; an account with no war.app password (Facebook sign-in)
27
+ # cannot connect. The bridge is the fallback only for connections made before
28
+ # the flow was added and for a session that expires later. Adding the flow is
29
+ # the owner's decision (docs/PLAN-DIRECT.md, "Registration change", step 2). The flow is docs/examples/warapp-auth-flow.json (shipped in the npm
30
+ # package): one masked password prompt, then warapp_sign_in with WARAPP_EMAIL
31
+ # and that password as the capture, path authToken into WARAPP_AUTH_TOKEN.
32
+ # WARAPP_AUTH_TOKEN is deliberately not in `env`: a capture into a host-set
33
+ # variable is refused.
21
34
  summary: >-
22
35
  war.app (Warzone) advisor: games waiting on you, maps, scouting, chat and
23
36
  turn plans in your war.app tab. Joining, leaving or surrendering games,
@@ -42,10 +55,11 @@ identity:
42
55
  perUserChild: true
43
56
 
44
57
  auth:
45
- # Collected once on the connector's authorize page. There is no `flow`:
46
- # GameFeed takes the email + token on every request (form body), with no
47
- # login exchange, MFA or session to mint. Every auth field is stored as a
48
- # per-user secret (the field schema has no separate `secret` flag).
58
+ # Collected once on the connector's authorize page: GameFeed takes the email
59
+ # + token on every request (form body), with no login exchange. Every auth
60
+ # field is stored as a per-user secret (the field schema has no separate
61
+ # `secret` flag). The `flow` then signs in to war.app once for the direct
62
+ # transport (see the header): a path inside the package, read at the pin.
49
63
  fields:
50
64
  - name: WARAPP_EMAIL
51
65
  label: war.app email
@@ -60,6 +74,7 @@ auth:
60
74
  Your API token, shown at https://war.app/API/GetAPIToken while signed
61
75
  in to war.app. Stored as a per-user secret and never shown again.
62
76
  Changing your war.app password rotates it — reconnect with the new one.
77
+ flow: docs/examples/warapp-auth-flow.json
63
78
 
64
79
  # WARAPP_EMAIL / WARAPP_API_TOKEN are collected per user above, and an auth
65
80
  # field may not name a host-set variable, so they are not in `env`. Set them in
@@ -82,7 +97,9 @@ env:
82
97
  help: >-
83
98
  How the live-game tools reach war.app on a LOCAL install: auto (default —
84
99
  the chrome-less direct transport when a session is linked, else the
85
- browser bridge), direct, or fetchproxy. A hosted child keeps the bridge.
100
+ browser bridge), direct, or fetchproxy. A hosted child keeps the bridge
101
+ unless mcp-host captured a war.app session at sign-in (WARAPP_AUTH_TOKEN);
102
+ then it reads this as a local install does.
86
103
  - name: WARAPP_PLAYER_RECORD
87
104
  required: false
88
105
  help: >-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrischall/warapp-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "mcpName": "io.github.chrischall/warapp-mcp",
5
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
6
  "author": "Claude Code (AI) <https://www.anthropic.com/claude>",
@@ -33,7 +33,8 @@
33
33
  "server.json",
34
34
  "manifest.json",
35
35
  "skills",
36
- "mint.yaml"
36
+ "mint.yaml",
37
+ "docs/examples/warapp-auth-flow.json"
37
38
  ],
38
39
  "scripts": {
39
40
  "build": "tsc && npm run bundle",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/chrischall/warapp-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.2.0",
9
+ "version": "0.3.1",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@chrischall/warapp-mcp",
14
- "version": "0.2.0",
14
+ "version": "0.3.1",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },