Skip to content

Commit ae60969

Browse files
committed
docs: update onboarding instructions for hosted app
1 parent fa21b95 commit ae60969

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
node_modules
22
dist
33
coverage
4+
.next
5+
*.tsbuildinfo
46
*.log
57
.DS_Store
68
.env

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,15 @@ claude mcp add agw -- npx -y @abstract-foundation/agw-mcp serve --chain-id 11124
2626
npx -y @abstract-foundation/agw-mcp init --chain-id 11124
2727
```
2828

29-
This opens the companion app where you:
29+
This opens the hosted onboarding app (`https://mcp.abs.xyz`) where you:
3030

3131
1. Choose a policy preset (or provide custom policy JSON)
3232
2. Connect your Abstract Global Wallet
3333
3. Approve the session key
3434

3535
Session data is saved to `~/.agw-mcp/session.json` with `0o600` file permissions. The session signer key is stored separately in `~/.agw-mcp/session-signer.key`.
36+
If a previous active session exists locally, the CLI attempts to revoke it on-chain after creating the new one.
37+
Bootstrap is single-process per storage directory (lockfile: `~/.agw-mcp/.bootstrap-init.lock`) to prevent concurrent `init` races.
3638

3739
### 2. Start the MCP server
3840

@@ -130,6 +132,15 @@ Environment variables are also supported:
130132
```bash
131133
AGW_MCP_CHAIN_ID=2741 npx -y @abstract-foundation/agw-mcp serve
132134
AGW_MCP_RPC_URL=https://api.mainnet.abs.xyz npx -y @abstract-foundation/agw-mcp serve
135+
AGW_MCP_APP_URL=http://localhost:3001 npx -y @abstract-foundation/agw-mcp init --chain-id 11124
136+
```
137+
138+
`init` requires `https://` app URLs except for loopback local development URLs (`http://localhost`, `http://127.0.0.1`, `http://[::1]`).
139+
140+
For local hosted-app development:
141+
142+
```bash
143+
npx -y @abstract-foundation/agw-mcp init --chain-id 11124 --app-url http://localhost:3001
133144
```
134145

135146
## Security Model

0 commit comments

Comments
 (0)