@buildaureon/mcp 0.1.8 → 0.1.10

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/docs/setup.md CHANGED
@@ -1,347 +1,406 @@
1
- # Setup Guide
2
-
3
- Complete installation and host configuration for **`@buildaureon/mcp`** `v0.1.1` against the live AUREON API.
4
-
5
- This package is a **stdio** [Model Context Protocol](https://modelcontextprotocol.io) server. It wraps [`@buildaureon/sdk`](https://github.com/buildaureon/aureon-sdk) and exposes **54 tools** so Cursor, Claude Desktop, and other MCP hosts can call the Financial Compass control plane.
6
-
7
- Related docs: [Authentication](./auth.md) · [Tools](./tools.md) · [Agent guide](./agent-guide.md) · [Architecture](./architecture.md) · [Security](./security.md) · [Package README](../README.md)
8
-
9
- ---
10
-
11
- ## What this guide covers
12
-
13
- - What you need before connecting an agent
14
- - Environment variables the MCP process reads
15
- - How to create an issued developer API key
16
- - Cursor and Claude Desktop config (published package first)
17
- - Running via `npx` without a permanent install
18
- - Building from a source clone (optional)
19
- - Smoke prompts to verify the wire is live
20
- - Troubleshooting table, FAQ, and a final checklist
21
-
22
- If you only want auth semantics (key vs Bearer vs private key), skip ahead to [./auth.md](./auth.md).
23
-
24
- ---
25
-
26
- ## What you need
27
-
28
- | Requirement | Notes |
29
- | --- | --- |
30
- | **Node.js 20+** | ESM runtime. Check with `node -v`. |
31
- | **Issued developer API key** | Issue the key on the **same** API you will call. Local mainnet: Developers on `http://127.0.0.1:5174`. Public testnet: [app.aureonlabs.network](https://app.aureonlabs.network) → **Developers** (still chain 46630). Plaintext is shown once. |
32
- | **Network access** | Default is local mainnet `http://127.0.0.1:8788` (chain 4663). Optional `AUREON_NETWORK=testnet` uses `https://api.aureonlabs.network` (still 46630). |
33
- | **MCP host** | Cursor, Claude Desktop, or any client that can launch a stdio MCP server. |
34
-
35
- You do **not** need a wallet Bearer token for day-to-day control-plane tools when you use an issued key.
36
-
37
- You do **not** need a private key inside MCP. Private keys are only for signing and broadcasting vault deposit/withdraw transactions **outside** the MCP process after prepare tools return unsigned steps.
38
-
39
- The MCP server never custodies funds and never signs chain transactions.
40
-
41
- ---
42
-
43
- ## Package at a glance
44
-
45
- | Item | Value |
46
- | --- | --- |
47
- | npm package | `@buildaureon/mcp` |
48
- | Version | `0.1.1` |
49
- | Depends on | `@buildaureon/sdk` |
50
- | Transport | stdio MCP (JSON-RPC over stdin/stdout) |
51
- | Tool count | 47 |
52
- | Default API | `http://127.0.0.1:8788` (4663). Public host is opt-in testnet 46630. |
53
- | Console | [app.aureonlabs.network](https://app.aureonlabs.network) |
54
-
55
- Primary launch command (recommended for hosts):
56
-
57
- ```bash
58
- npx -y @buildaureon/mcp
59
- ```
60
-
61
- ---
62
-
63
- ## Environment variables
64
-
65
- The process reads these at startup. Put them in your MCP host `env` block (Cursor / Claude), not in chat transcripts.
66
-
67
- | Variable | Required | Default | Description |
68
- | --- | --- | --- | --- |
69
- | `AUREON_API_KEY` | **Preferred** | — | Issued developer key (`aureon_…`). Product access **and** wallet identity for control-plane tools. |
70
- | `AUREON_AUTH_TOKEN` | Optional | — | Wallet Bearer session. Wins over key identity when both are present on a request. |
71
- | `AUREON_NETWORK` | Optional | `mainnet` | Omit for local mainnet 4663 / 8788. Set `testnet` for the public host (still 46630). |
72
- | `AUREON_API_URL` | Optional | mainnet `http://127.0.0.1:8788` | Override URL. Must match `AUREON_NETWORK` if both are set. |
73
-
74
- At least one of `AUREON_API_KEY` or `AUREON_AUTH_TOKEN` must be set or the server refuses to start.
75
-
76
- **Recommendation:** set only `AUREON_API_KEY` for local mainnet. Add `AUREON_NETWORK=testnet` only if you want the public host (still 46630).
77
-
78
- Never put a wallet private key in MCP env. Prepare tools return unsigned calldata; the host wallet signs elsewhere.
79
-
80
- ---
81
-
82
- ## Create an issued developer API key
83
-
84
- 1. Open [https://app.aureonlabs.network](https://app.aureonlabs.network).
85
- 2. Complete invite / early-access flow if prompted, then connect your wallet.
86
- 3. Open **Developers**.
87
- 4. Create a key with a clear label (for example `cursor-mcp` or `claude-desktop`).
88
- 5. Copy the secret immediately plaintext is shown once.
89
- 6. Paste it into your MCP host config as `AUREON_API_KEY`.
90
- 7. If the secret leaks, pause or revoke it from the same Developers page and issue a replacement.
91
-
92
- That key binds control-plane calls to your wallet. You do not need a separate Bearer handshake for normal agent work.
93
-
94
- ---
95
-
96
- ## Cursor configuration
97
-
98
- ### Option Apublished package (recommended)
99
-
100
- Create or edit `.cursor/mcp.json` in the project, or merge into your user MCP config:
101
-
102
- ```json
103
- {
104
- "mcpServers": {
105
- "aureon": {
106
- "command": "npx",
107
- "args": ["-y", "@buildaureon/mcp"],
108
- "env": {
109
- "AUREON_API_KEY": "aureon_...."
110
- }
111
- }
112
- }
113
- }
114
- ```
115
-
116
- Restart Cursor (or reload MCP servers). Confirm **aureon** appears under MCP / tools.
117
-
118
- Ask a smoke prompt such as: *“Use aureon_ping, then aureon_me.”*
119
-
120
- Issue the key on the same network this process will call. A public-console key does not authenticate the local 8788 mainnet API. To hit the public host (still 46630), add `"AUREON_NETWORK": "testnet"`.
121
-
122
- ### Option B from a local build
123
-
124
- Use this only when you are iterating on a clone of the package. Replace the working directory with your own clone path.
125
-
126
- ```json
127
- {
128
- "mcpServers": {
129
- "aureon": {
130
- "command": "node",
131
- "args": ["dist/index.js"],
132
- "cwd": "/path/to/your/clone/mcp",
133
- "env": {
134
- "AUREON_API_KEY": "aureon_...."
135
- }
136
- }
137
- }
138
- }
139
- ```
140
-
141
- Build first (`pnpm build` or `npm run build` inside the MCP package) so `dist/index.js` exists.
142
-
143
- Prefer Option A for everyday agent use. Local `cwd` configs are for contributors and package development.
144
-
145
- ---
146
-
147
- ## Claude Desktop configuration
148
-
149
- Merge the same shape into Claude Desktop’s MCP config file (location depends on your OS; Claude’s docs describe where `claude_desktop_config.json` lives).
150
-
151
- ```json
152
- {
153
- "mcpServers": {
154
- "aureon": {
155
- "command": "npx",
156
- "args": ["-y", "@buildaureon/mcp"],
157
- "env": {
158
- "AUREON_API_KEY": "aureon_...."
159
- }
160
- }
161
- }
162
- }
163
- ```
164
-
165
- Restart Claude Desktop after saving. In a new chat, ask the model to list AUREON tools or call `aureon_ping`.
166
-
167
- For a from-source Claude entry, use `node` + `dist/index.js` with `"cwd": "/path/to/your/clone/mcp"` the same way as Cursor Option B.
168
-
169
- Example templates also ship in the package under `examples/cursor.mcp.json` and `examples/claude-desktop.json`.
170
-
171
- ---
172
-
173
- ## Run with npx (no permanent install)
174
-
175
- From a terminal, with the key in the environment:
176
-
177
- ```bash
178
- export AUREON_API_KEY=aureon_....
179
- # omit AUREON_API_URL for local mainnet 8788 / 4663
180
- # export AUREON_NETWORK=testnet # public host, still 46630
181
-
182
- npx -y @buildaureon/mcp
183
- ```
184
-
185
- On Windows PowerShell:
186
-
187
- ```powershell
188
- $env:AUREON_API_KEY = "aureon_...."
189
- # omit AUREON_API_URL for local mainnet 8788 / 4663
190
- # $env:AUREON_NETWORK = "testnet" # public host, still 46630
191
- npx -y @buildaureon/mcp
192
- ```
193
-
194
- The process speaks MCP on stdio. Running it in a bare terminal is mainly useful to confirm it starts; hosts like Cursor attach automatically when configured.
195
-
196
- You can also add the package to a project:
197
-
198
- ```bash
199
- npm install @buildaureon/mcp
200
- # or
201
- pnpm add @buildaureon/mcp
202
- ```
203
-
204
- Hosts should still prefer `npx -y @buildaureon/mcp` so they pick up published fixes without a manual upgrade step.
205
-
206
- ---
207
-
208
- ## From-source build (optional)
209
-
210
- Use a clone when contributing to `@buildaureon/mcp` or testing unreleased changes. Point every path at **your** clone — never hard-code another machine’s layout.
211
-
212
- ```bash
213
- cd /path/to/your/clone
214
- pnpm install
215
- pnpm --filter @buildaureon/mcp build
216
- pnpm --filter @buildaureon/mcp start
217
- ```
218
-
219
- Inside the MCP package directory alone:
220
-
221
- ```bash
222
- cd /path/to/your/clone/mcp
223
- pnpm install # or npm install, depending on your workspace setup
224
- pnpm build # tsup dist/
225
- pnpm start # node dist/index.js
226
- ```
227
-
228
- Useful scripts (from `package.json`):
229
-
230
- | Script | Purpose |
231
- | --- | --- |
232
- | `build` | Compile with `tsup` into `dist/` |
233
- | `dev` | Run TypeScript entry via `tsx` (hot iteration) |
234
- | `start` | `node dist/index.js` (what hosts should launch after build) |
235
- | `typecheck` | `tsc --noEmit` |
236
- | `test` | Unit / smoke tests |
237
-
238
- Wire the host to `node dist/index.js` with `cwd` set to `/path/to/your/clone/mcp` as shown above.
239
-
240
- Always authenticate against the **live** API with an issued key from the Developers page. Do not invent local secret files or private API endpoints for normal setup.
241
-
242
- ---
243
-
244
- ## Smoke prompts
245
-
246
- After the host shows the aureon server as connected, try these in order:
247
-
248
- 1. **Connectivity** “Call `aureon_ping` and summarize the response.”
249
- 2. **Identity** “Call `aureon_me` and tell me which wallet is bound.”
250
- 3. **Read path** — “Sync my portfolio with `aureon_sync_portfolio`, then `aureon_get_vault_status`.”
251
- 4. **Objectives** — “List objectives with `aureon_list_objectives`.”
252
- 5. **Health** — “Show compass health with `aureon_get_health`.”
253
-
254
- If ping works but `aureon_me` fails, the key is likely invalid, paused, or revoked — rotate from Developers and update the host `env`.
255
-
256
- For write workflows (create objective, restore, prepare vault), see [./agent-guide.md](./agent-guide.md) and the full schemas in [./tools.md](./tools.md).
257
-
258
- ---
259
-
260
- ## Verify the tool surface
261
-
262
- A healthy install exposes auth, read, objective, portfolio, execution, market, vault prepare, and developer key tools — **47** in total.
263
-
264
- You do not need every tool on day one. Start with:
265
-
266
- - `aureon_ping`
267
- - `aureon_me`
268
- - `aureon_sync_portfolio`
269
- - `aureon_list_objectives`
270
- - `aureon_get_health`
271
-
272
- Vault **prepare** tools return unsigned steps only. Signing and broadcasting stay with your wallet or a separate SDK script that holds a private key — never the MCP env. Details: [./auth.md](./auth.md) and [./security.md](./security.md).
273
-
274
- ---
275
-
276
- ## Troubleshooting
277
-
278
- | Symptom | Likely cause | What to try |
279
- | --- | --- | --- |
280
- | Server missing in host UI | Config JSON invalid or host not restarted | Validate JSON, restart Cursor / Claude |
281
- | Startup error about missing credentials | Neither key nor Bearer set | Set `AUREON_API_KEY` in the host `env` block |
282
- | `401` / unauthorized on tools | Bad, paused, or revoked key | Create a new issued key; update config |
283
- | `npx` hangs or fails | Network / registry issue | Retry; ensure Node 20+; try `npm view @buildaureon/mcp version` |
284
- | Tools listed but every call fails | Wrong URL / mixed network | Omit `AUREON_API_URL` for 8788, or set `AUREON_NETWORK=testnet` for the public host (still 46630) |
285
- | `aureon_me` shows unexpected wallet | Bearer also set and winning | Clear `AUREON_AUTH_TOKEN` / logout; prefer key-only — see [./auth.md](./auth.md) |
286
- | Local `node dist/index.js` fails | Missing build | Run `pnpm build` so `dist/index.js` exists |
287
- | Deposit / withdraw “not signed” | Expected | MCP returns unsigned steps; sign outside MCP |
288
- | `aureon_dev_login` fails | Production API | Expected — use issued key on live API |
289
-
290
- Still stuck? Confirm HTTPS reachability to the API, then re-check that the key string has no extra quotes or trailing spaces in the host config.
291
-
292
- ---
293
-
294
- ## FAQ
295
-
296
- ### Do I need to install the package globally?
297
-
298
- No. Prefer `npx -y @buildaureon/mcp` in the host config so the published `v0.1.1` (or newer) is fetched on demand.
299
-
300
- ### Is a Bearer token required?
301
-
302
- No for the recommended agent path. An issued `AUREON_API_KEY` is enough for control-plane tools. Bearer is optional and documented in [./auth.md](./auth.md).
303
-
304
- ### Can I put my private key in the MCP config?
305
-
306
- No. Keep private keys out of MCP. Use them only in a separate signing host when broadcasting prepared vault transactions.
307
-
308
- ### Does MCP talk to a local backend?
309
-
310
- Default (omit `AUREON_API_URL`) is local mainnet `http://127.0.0.1:8788` (chain 4663). Set `AUREON_NETWORK=testnet` only for the public host (still 46630). Do not map mainnet to `api.aureonlabs.network`.
311
-
312
- ### How is this different from `@buildaureon/sdk`?
313
-
314
- The SDK is for typed TypeScript programs. MCP is the same surface as **named tools** for AI hosts over stdio. Both authenticate the same way against the live API.
315
-
316
- ### Where do I rotate a leaked key?
317
-
318
- [app.aureonlabs.network](https://app.aureonlabs.network) → **Developers** → pause / revoke → create a new key → update the host `env`.
319
-
320
- ### What Node version is required?
321
-
322
- Node.js **20 or newer**. Older runtimes are unsupported.
323
-
324
- ---
325
-
326
- ## Post-setup checklist
327
-
328
- - [ ] Node 20+ installed (`node -v`)
329
- - [ ] Issued key created on the Developers page
330
- - [ ] Host config uses `npx -y @buildaureon/mcp` (or local `node dist/index.js` with a placeholder cwd)
331
- - [ ] `AUREON_API_KEY` set in host `env` (no private key)
332
- - [ ] `AUREON_API_URL` omitted (mainnet 8788). Optional `AUREON_NETWORK=testnet` for the public host (still 46630)
333
- - [ ] Host restarted; aureon server shows connected
334
- - [ ] `aureon_ping` succeeds
335
- - [ ] `aureon_me` returns the expected wallet
336
- - [ ] You know where [./tools.md](./tools.md) and [./agent-guide.md](./agent-guide.md) live for the next workflow
337
-
338
- ---
339
-
340
- ## Next steps
341
-
342
- 1. Read [./auth.md](./auth.md) if you need Bearer sessions or conflict rules.
343
- 2. Skim [./tools.md](./tools.md) for argument schemas.
344
- 3. Follow a playbook in [./agent-guide.md](./agent-guide.md).
345
- 4. Review trust boundaries in [./architecture.md](./architecture.md) and [./security.md](./security.md).
346
-
347
- Package overview and ecosystem diagram: [../README.md](../README.md).
1
+ # Setup Guide
2
+
3
+ Complete installation and host configuration for **`@buildaureon/mcp`** `v0.1.10` against the live AUREON API.
4
+
5
+ This package is the official [Model Context Protocol](https://modelcontextprotocol.io) adapter for AUREON. It wraps [`@buildaureon/sdk`](https://github.com/buildaureon/aureon-sdk) and exposes **54 tools** so Cursor, Claude Desktop, and other MCP hosts can call the Financial Compass control plane.
6
+
7
+ There are two supported transports:
8
+
9
+ | Transport | Endpoint / command | Auth in the host |
10
+ | --- | --- | --- |
11
+ | **Hosted HTTP** | `https://mcp.aureonlabs.network/mcp` | None required to connect. Optional `X-Aureon-Api-Key` for your wallet tools. |
12
+ | **Local stdio** | `npx -y @buildaureon/mcp` | Your issued `AUREON_API_KEY` in the host `env` block |
13
+
14
+ Both surfaces are the same 54 tools. Neither signs or broadcasts. Confirm hosted health at [https://mcp.aureonlabs.network/healthz](https://mcp.aureonlabs.network/healthz).
15
+
16
+ Related docs: [Authentication](./auth.md) · [Tools](./tools.md) · [Agent guide](./agent-guide.md) · [Architecture](./architecture.md) · [Security](./security.md) · [Package README](../README.md)
17
+
18
+ ---
19
+
20
+ ## What this guide covers
21
+
22
+ - Hosted URL vs local stdio which to pick
23
+ - What you need before connecting an agent
24
+ - Environment variables the **stdio** process reads
25
+ - How to create an issued developer API key (required for stdio; not pasted into Cursor for hosted)
26
+ - Cursor and Claude Desktop config (hosted URL first, then published package)
27
+ - Running via `npx` without a permanent install
28
+ - Building from a source clone (optional)
29
+ - Smoke prompts to verify the wire is live
30
+ - Troubleshooting table, FAQ, and a final checklist
31
+
32
+ If you only want auth semantics (key vs Bearer vs private key), skip ahead to [./auth.md](./auth.md).
33
+
34
+ ---
35
+
36
+ ## What you need
37
+
38
+ | Requirement | Notes |
39
+ | --- | --- |
40
+ | **Node.js 20+** | ESM runtime. Check with `node -v`. |
41
+ | **Issued developer API key** | Required for **stdio**. Issue it at [app.aureonlabs.network](https://app.aureonlabs.network) → **Developers**. Not pasted into Cursor when you use the hosted URL. |
42
+ | **Network access** | Default is the official API `https://api.aureonlabs.network` on mainnet. Optional `AUREON_NETWORK=testnet` stays on testnet on the same host. Public Living Capital is still the testnet console. |
43
+ | **MCP host** | Cursor, Claude Desktop, or any client that can attach to Streamable HTTP **or** spawn a stdio MCP server. |
44
+
45
+ You do **not** need a wallet Bearer token for day-to-day control-plane tools when you use an issued key.
46
+
47
+ You do **not** need a private key inside MCP. Private keys are only for signing and broadcasting vault deposit/withdraw transactions **outside** the MCP process after prepare tools return unsigned steps.
48
+
49
+ The MCP server never custodies funds and never signs chain transactions.
50
+
51
+ ---
52
+
53
+ ## Package at a glance
54
+
55
+ | Item | Value |
56
+ | --- | --- |
57
+ | npm package | `@buildaureon/mcp` |
58
+ | Version | `0.1.10` |
59
+ | Depends on | `@buildaureon/sdk` |
60
+ | Transports | Hosted Streamable HTTP at `https://mcp.aureonlabs.network/mcp`, or local stdio (`npx -y @buildaureon/mcp`) |
61
+ | Tool count | 54 |
62
+ | Default API | `https://api.aureonlabs.network` on mainnet. `AUREON_NETWORK=testnet` stays on testnet. |
63
+ | Console | [app.aureonlabs.network](https://app.aureonlabs.network) |
64
+
65
+ Primary launch command (recommended for hosts):
66
+
67
+ ```bash
68
+ npx -y @buildaureon/mcp
69
+ ```
70
+
71
+ ---
72
+
73
+ ## Environment variables
74
+
75
+ The process reads these at startup. Put them in your MCP host `env` block (Cursor / Claude), not in chat transcripts.
76
+
77
+ | Variable | Required | Default | Description |
78
+ | --- | --- | --- | --- |
79
+ | `AUREON_API_KEY` | **Preferred** | — | Issued developer key (`aureon_…`). Product access **and** wallet identity for control-plane tools. |
80
+ | `AUREON_AUTH_TOKEN` | Optional | — | Wallet Bearer session. Wins over key identity when both are present on a request. |
81
+ | `AUREON_NETWORK` | Optional | `mainnet` | Omit for official API / mainnet. Set `testnet` to stay on testnet. |
82
+ | `AUREON_API_URL` | Optional | `https://api.aureonlabs.network` | Override the official host only if you must. |
83
+
84
+ At least one of `AUREON_API_KEY` or `AUREON_AUTH_TOKEN` must be set or the server refuses to start.
85
+
86
+ **Recommendation:** set only `AUREON_API_KEY`. The process uses the official API on mainnet. Add `AUREON_NETWORK=testnet` only to stay on testnet on that host.
87
+
88
+ Never put a wallet private key in MCP env. Prepare tools return unsigned calldata; the host wallet signs elsewhere.
89
+
90
+ ---
91
+
92
+ ## Create an issued developer API key
93
+
94
+ 1. Open [https://app.aureonlabs.network](https://app.aureonlabs.network).
95
+ 2. Connect your wallet.
96
+ 3. Open **Developers**.
97
+ 4. Create a key with a clear label (for example `cursor-mcp` or `claude-desktop`).
98
+ 5. Copy the secret immediately plaintext is shown once.
99
+ 6. Paste it into your MCP host config as `AUREON_API_KEY`.
100
+ 7. If the secret leaks, pause or revoke it from the same Developers page and issue a replacement.
101
+
102
+ That key binds control-plane calls to your wallet. You do not need a separate Bearer handshake for normal agent work.
103
+
104
+ ---
105
+
106
+ ## Cursor configuration
107
+
108
+ ### Option A — official hosted URL (recommended first use)
109
+
110
+ No Node process. A user key is not required to connect. Merge [`../examples/cursor.hosted.mcp.json`](../examples/cursor.hosted.mcp.json):
111
+
112
+ ```json
113
+ {
114
+ "mcpServers": {
115
+ "aureon": {
116
+ "url": "https://mcp.aureonlabs.network/mcp"
117
+ }
118
+ }
119
+ }
120
+ ```
121
+
122
+ Restart Cursor. Confirm **aureon** appears under MCP / tools. Ask: *“Use aureon_ping.”*
123
+
124
+ Open tools without a key: `aureon_ping`, `aureon_list_market_presets`, `aureon_validate_receipt`.
125
+
126
+ For **your** wallet (`aureon_me`, portfolio, objectives, restore, vault prepare), add the header. Template: [`../examples/cursor.hosted.user.mcp.json`](../examples/cursor.hosted.user.mcp.json).
127
+
128
+ ```json
129
+ {
130
+ "mcpServers": {
131
+ "aureon": {
132
+ "url": "https://mcp.aureonlabs.network/mcp",
133
+ "headers": {
134
+ "X-Aureon-Api-Key": "aureon_...."
135
+ }
136
+ }
137
+ }
138
+ }
139
+ ```
140
+
141
+ Health check: [https://mcp.aureonlabs.network/healthz](https://mcp.aureonlabs.network/healthz) must report `ok: true` and `tools: 54`.
142
+
143
+ Use Option B when you want the key in host env instead of an HTTP header.
144
+
145
+ ### Option B — published stdio package (your issued key)
146
+
147
+ Create or edit `.cursor/mcp.json` in the project, or merge into your user MCP config:
148
+
149
+ ```json
150
+ {
151
+ "mcpServers": {
152
+ "aureon": {
153
+ "command": "npx",
154
+ "args": ["-y", "@buildaureon/mcp"],
155
+ "env": {
156
+ "AUREON_API_KEY": "aureon_...."
157
+ }
158
+ }
159
+ }
160
+ }
161
+ ```
162
+
163
+ Restart Cursor (or reload MCP servers). Confirm **aureon** appears under MCP / tools.
164
+
165
+ Ask a smoke prompt such as: *“Use aureon_ping, then aureon_me.”*
166
+
167
+ Issue the key at [app.aureonlabs.network](https://app.aureonlabs.network) **Developers**. Public Living Capital is still the testnet console. The official API is used when `AUREON_API_URL` is omitted (mainnet). Add `"AUREON_NETWORK": "testnet"` only to stay on testnet.
168
+
169
+ ### Option C from a local build
170
+
171
+ Use this only when you are iterating on a clone of the package. Replace the working directory with your own clone path.
172
+
173
+ ```json
174
+ {
175
+ "mcpServers": {
176
+ "aureon": {
177
+ "command": "node",
178
+ "args": ["dist/index.js"],
179
+ "cwd": "/path/to/your/clone/mcp",
180
+ "env": {
181
+ "AUREON_API_KEY": "aureon_...."
182
+ }
183
+ }
184
+ }
185
+ }
186
+ ```
187
+
188
+ Build first (`pnpm build` or `npm run build` inside the MCP package) so `dist/index.js` exists.
189
+
190
+ Prefer Option A for everyday agent use. Option B when you need your own key. Option C (`cwd`) is for contributors and package development.
191
+
192
+ ---
193
+
194
+ ## Claude Desktop configuration
195
+
196
+ If the host supports a remote MCP URL, use the same hosted endpoint as Cursor:
197
+
198
+ ```json
199
+ {
200
+ "mcpServers": {
201
+ "aureon": {
202
+ "url": "https://mcp.aureonlabs.network/mcp"
203
+ }
204
+ }
205
+ }
206
+ ```
207
+
208
+ Otherwise merge the stdio shape into Claude Desktop’s MCP config file (location depends on your OS; Claude’s docs describe where `claude_desktop_config.json` lives).
209
+
210
+ ```json
211
+ {
212
+ "mcpServers": {
213
+ "aureon": {
214
+ "command": "npx",
215
+ "args": ["-y", "@buildaureon/mcp"],
216
+ "env": {
217
+ "AUREON_API_KEY": "aureon_...."
218
+ }
219
+ }
220
+ }
221
+ }
222
+ ```
223
+
224
+ Restart Claude Desktop after saving. In a new chat, ask the model to list AUREON tools or call `aureon_ping`.
225
+
226
+ For a from-source Claude entry, use `node` + `dist/index.js` with `"cwd": "/path/to/your/clone/mcp"` the same way as Cursor Option C.
227
+
228
+ Example templates: [`examples/cursor.hosted.mcp.json`](../examples/cursor.hosted.mcp.json), [`examples/cursor.mcp.json`](../examples/cursor.mcp.json), [`examples/claude-desktop.json`](../examples/claude-desktop.json).
229
+
230
+ ---
231
+
232
+ ## Run with npx (no permanent install)
233
+
234
+ From a terminal, with the key in the environment:
235
+
236
+ ```bash
237
+ export AUREON_API_KEY=aureon_....
238
+ # omit AUREON_API_URL for official API https://api.aureonlabs.network
239
+ # export AUREON_NETWORK=testnet # stay on testnet on the same official host
240
+
241
+ npx -y @buildaureon/mcp
242
+ ```
243
+
244
+ On Windows PowerShell:
245
+
246
+ ```powershell
247
+ $env:AUREON_API_KEY = "aureon_...."
248
+ # omit AUREON_API_URL for official API https://api.aureonlabs.network
249
+ # $env:AUREON_NETWORK = "testnet" # stay on testnet on the same official host
250
+ npx -y @buildaureon/mcp
251
+ ```
252
+
253
+ The process speaks MCP on stdio. Running it in a bare terminal is mainly useful to confirm it starts; hosts like Cursor attach automatically when configured.
254
+
255
+ You can also add the package to a project:
256
+
257
+ ```bash
258
+ npm install @buildaureon/mcp
259
+ # or
260
+ pnpm add @buildaureon/mcp
261
+ ```
262
+
263
+ Hosts should still prefer `npx -y @buildaureon/mcp` so they pick up published fixes without a manual upgrade step.
264
+
265
+ ---
266
+
267
+ ## From-source build (optional)
268
+
269
+ Use a clone when contributing to `@buildaureon/mcp` or testing unreleased changes. Point every path at **your** clone — never hard-code another machine’s layout.
270
+
271
+ ```bash
272
+ cd /path/to/your/clone
273
+ pnpm install
274
+ pnpm --filter @buildaureon/mcp build
275
+ pnpm --filter @buildaureon/mcp start
276
+ ```
277
+
278
+ Inside the MCP package directory alone:
279
+
280
+ ```bash
281
+ cd /path/to/your/clone/mcp
282
+ pnpm install # or npm install, depending on your workspace setup
283
+ pnpm build # tsup dist/
284
+ pnpm start # node dist/index.js
285
+ ```
286
+
287
+ Useful scripts (from `package.json`):
288
+
289
+ | Script | Purpose |
290
+ | --- | --- |
291
+ | `build` | Compile with `tsup` into `dist/` |
292
+ | `dev` | Run TypeScript entry via `tsx` (hot iteration) |
293
+ | `start` | `node dist/index.js` (what hosts should launch after build) |
294
+ | `typecheck` | `tsc --noEmit` |
295
+ | `test` | Unit / smoke tests |
296
+
297
+ Wire the host to `node dist/index.js` with `cwd` set to `/path/to/your/clone/mcp` as shown above.
298
+
299
+ Always authenticate against the **live** API with an issued key from the Developers page. Do not invent local secret files or private API endpoints for normal setup.
300
+
301
+ ---
302
+
303
+ ## Smoke prompts
304
+
305
+ After the host shows the aureon server as connected, try these in order:
306
+
307
+ 1. **Connectivity** — “Call `aureon_ping` and summarize the response.”
308
+ 2. **Identity** “Call `aureon_me` and tell me which wallet is bound.”
309
+ 3. **Read path** — “Sync my portfolio with `aureon_sync_portfolio`, then `aureon_get_vault_status`.”
310
+ 4. **Objectives** “List objectives with `aureon_list_objectives`.”
311
+ 5. **Health** — “Show compass health with `aureon_get_health`.”
312
+
313
+ If ping works but `aureon_me` fails, the key is likely invalid, paused, or revoked — rotate from Developers and update the host `env`.
314
+
315
+ For write workflows (create objective, restore, prepare vault), see [./agent-guide.md](./agent-guide.md) and the full schemas in [./tools.md](./tools.md).
316
+
317
+ ---
318
+
319
+ ## Verify the tool surface
320
+
321
+ A healthy install exposes auth, read, objective, portfolio, execution, market, vault prepare, and developer key tools — **54** in total.
322
+
323
+ You do not need every tool on day one. Start with:
324
+
325
+ - `aureon_ping`
326
+ - `aureon_me`
327
+ - `aureon_sync_portfolio`
328
+ - `aureon_list_objectives`
329
+ - `aureon_get_health`
330
+
331
+ Vault **prepare** tools return unsigned steps only. Signing and broadcasting stay with your wallet or a separate SDK script that holds a private key — never the MCP env. Details: [./auth.md](./auth.md) and [./security.md](./security.md).
332
+
333
+ ---
334
+
335
+ ## Troubleshooting
336
+
337
+ | Symptom | Likely cause | What to try |
338
+ | --- | --- | --- |
339
+ | Server missing in host UI | Config JSON invalid or host not restarted | Validate JSON, restart Cursor / Claude |
340
+ | Startup error about missing credentials | Neither key nor Bearer set | Set `AUREON_API_KEY` in the host `env` block |
341
+ | `401` / unauthorized on tools | Bad, paused, or revoked key | Create a new issued key; update config |
342
+ | `npx` hangs or fails | Network / registry issue | Retry; ensure Node 20+; try `npm view @buildaureon/mcp version` |
343
+ | Tools listed but every call fails | Wrong URL / mixed network | Omit `AUREON_API_URL` for the official API, or set `AUREON_NETWORK=testnet` to stay on testnet |
344
+ | `aureon_me` shows unexpected wallet | Bearer also set and winning | Clear `AUREON_AUTH_TOKEN` / logout; prefer key-only — see [./auth.md](./auth.md) |
345
+ | Local `node dist/index.js` fails | Missing build | Run `pnpm build` so `dist/index.js` exists |
346
+ | Deposit / withdraw “not signed” | Expected | MCP returns unsigned steps; sign outside MCP |
347
+ | `aureon_dev_login` fails | Production API | Expected — use issued key on live API |
348
+
349
+ Still stuck? Confirm HTTPS reachability to the API, then re-check that the key string has no extra quotes or trailing spaces in the host config.
350
+
351
+ ---
352
+
353
+ ## FAQ
354
+
355
+ ### Do I need to install the package globally?
356
+
357
+ No. Prefer `npx -y @buildaureon/mcp` in the host config so the published `v0.1.10` (or newer) is fetched on demand.
358
+
359
+ ### Is a Bearer token required?
360
+
361
+ No for the recommended agent path. An issued `AUREON_API_KEY` is enough for control-plane tools. Bearer is optional and documented in [./auth.md](./auth.md).
362
+
363
+ ### Can I put my private key in the MCP config?
364
+
365
+ No. Keep private keys out of MCP. Use them only in a separate signing host when broadcasting prepared vault transactions.
366
+
367
+ ### Does MCP talk to a local backend?
368
+
369
+ Default (omit `AUREON_API_URL`) is the official API `https://api.aureonlabs.network` on mainnet. Set `AUREON_NETWORK=testnet` to stay on testnet on that same host.
370
+
371
+ ### How is this different from `@buildaureon/sdk`?
372
+
373
+ The SDK is for typed TypeScript programs. MCP is the same surface as **named tools** for AI hosts. Hosted HTTP and local stdio expose the same 54 tools. Both call the live API. Stdio authenticates with your issued key in host env. Hosted is URL-only for open tools; add `X-Aureon-Api-Key` for your wallet.
374
+
375
+ ### Where do I rotate a leaked key?
376
+
377
+ [app.aureonlabs.network](https://app.aureonlabs.network) → **Developers** → pause / revoke → create a new key → update the host `env`.
378
+
379
+ ### What Node version is required?
380
+
381
+ Node.js **20 or newer**. Older runtimes are unsupported.
382
+
383
+ ---
384
+
385
+ ## Post-setup checklist
386
+
387
+ - [ ] Node 20+ installed (`node -v`)
388
+ - [ ] Issued key created on the Developers page
389
+ - [ ] Host config uses `https://mcp.aureonlabs.network/mcp` **or** `npx -y @buildaureon/mcp`
390
+ - [ ] If stdio: `AUREON_API_KEY` set in host `env` (no private key)
391
+ - [ ] If stdio: `AUREON_API_URL` omitted (official API / mainnet). Optional `AUREON_NETWORK=testnet` to stay on testnet
392
+ - [ ] Host restarted; aureon server shows connected
393
+ - [ ] `aureon_ping` succeeds
394
+ - [ ] `aureon_me` returns the expected wallet
395
+ - [ ] You know where [./tools.md](./tools.md) and [./agent-guide.md](./agent-guide.md) live for the next workflow
396
+
397
+ ---
398
+
399
+ ## Next steps
400
+
401
+ 1. Read [./auth.md](./auth.md) if you need Bearer sessions or conflict rules.
402
+ 2. Skim [./tools.md](./tools.md) for argument schemas.
403
+ 3. Follow a playbook in [./agent-guide.md](./agent-guide.md).
404
+ 4. Review trust boundaries in [./architecture.md](./architecture.md) and [./security.md](./security.md).
405
+
406
+ Package overview and ecosystem diagram: [../README.md](../README.md).