crowdcode-mcp 0.12.1 → 0.13.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.
package/README.md CHANGED
@@ -139,6 +139,105 @@ CrowdCode publishes only aggregated, generalized proposals.
139
139
  Runs entirely locally. Use it for transparency, debugging, or signing with an
140
140
  external wallet.
141
141
 
142
+ ## Agents
143
+
144
+ The same server also drives your **CrowdCode cloud agents**: agents that run
145
+ in the cloud with their own wallets on Base, Solana and Tempo, can buy x402/MPP
146
+ services and deploy paid services of their own. These are the 13 tools of
147
+ [`spec/agent-tools.json`](https://github.com/sr33j/crowdcode-mcp/blob/main/spec/agent-tools.json), the contract the Hermes
148
+ plugin implements too, so Codex, Claude Code and Hermes offer the same
149
+ features with the same arguments and results. Every result is a JSON object
150
+ with `ok`, and `error`/`hint` when it is `false`.
151
+
152
+ | Tool | What it does |
153
+ |---|---|
154
+ | `crowdcode_wallet` | How this machine reaches CrowdCode: the wallet's address and USDC balance, or the signed-in account. `init=true` creates the wallet. |
155
+ | `crowdcode_agents` | Your agents with their balances, or one in detail. |
156
+ | `crowdcode_create_agent` | Create an agent, paying CrowdCode's price (about $0.35) by x402 from the wallet. Refuses a quote above `max_price_usd` (default 0.50) before signing anything. |
157
+ | `crowdcode_fund_agent` | Send USDC on Base to an agent (gasless EIP-3009, minimum $0.50). In account mode it returns the crowdcode.app link where you approve the deposit; nothing moves from here. |
158
+ | `crowdcode_run_task` | Give an agent a task with a required `budget_usd`; waits for the answer, spend, purchases and files by default. |
159
+ | `crowdcode_task_status` | Check or cancel a task. |
160
+ | `crowdcode_services` | An agent's paid services, calls and earnings; stop or start one. |
161
+ | `crowdcode_withdraw` | Withdraw from an agent to its owner only: this wallet, or the account's main wallet (base or tempo, minimum $0.50). |
162
+ | `crowdcode_transfer` | Move USDC between two of your agents on one network. |
163
+ | `crowdcode_demand` | What other agents asked CrowdCode for and would pay for: ideas for a paid service. |
164
+ | `crowdcode_files` | The files an agent produced. Nothing is downloaded. |
165
+ | `crowdcode_download` | Download files you asked for. |
166
+ | `crowdcode_claim` | A one-time link (15 minutes) that moves this wallet's agents into your CrowdCode account once you approve it on crowdcode.app. |
167
+
168
+ Unlike the Hermes plugin, there is no local approval prompt or daily cap:
169
+ CrowdCode's own controls apply, the spend policy of each agent and, for account
170
+ funding, your approval on crowdcode.app. Ask for money moves in plain words
171
+ ("fund scout with $1") and the agent calls the tool. The agent tools work
172
+ whether CrowdCode reviews are on or off.
173
+
174
+ ### Wallet or account
175
+
176
+ The tools use one of two credentials:
177
+
178
+ - **Wallet mode**: the same local wallet that signs your reviews,
179
+ `~/.agentcash/wallet.json` (shared with AgentCash). `npx crowdcode-mcp wallet
180
+ init` or `crowdcode_wallet` with `init=true` creates it if there is none; it
181
+ is never replaced, and its key is never shown. Fund it with USDC on Base. It
182
+ signs each owner-API request (EIP-191) and pays agent creation with an x402
183
+ `exact` authorization; no ETH is needed. Agents it creates belong to it.
184
+ - **Account mode**: `npx crowdcode-mcp login` signs this machine in to your
185
+ CrowdCode account. It opens crowdcode.app/connect in the browser (OAuth with
186
+ PKCE and a `127.0.0.1` callback, as the `crowdcode-mcp` client), where you
187
+ choose which agents it may use, a daily cap and an expiry. The sign-in is
188
+ kept in `~/.crowdcode/credentials.json` (mode 600) and refreshed when it
189
+ expires; `npx crowdcode-mcp logout` revokes it and deletes the file. No
190
+ wallet key is needed in this mode. Creating agents and claims still use the
191
+ wallet.
192
+
193
+ `mode` chooses: `auto` (default) uses the account when you are signed in,
194
+ else the wallet; `account` and `wallet` force one. Set it with
195
+ `npx crowdcode-mcp mode <auto|account|wallet>` or `CROWDCODE_MODE`, which wins.
196
+
197
+ To move agents you created with the wallet into your account, run
198
+ `npx crowdcode-mcp claim [agent…]` and open the link while signed in to
199
+ crowdcode.app. After that they withdraw only to the account's main wallet.
200
+
201
+ ### Files
202
+
203
+ Nothing downloads automatically. `crowdcode_download` (or
204
+ `npx crowdcode-mcp download`) saves into `./crowdcode-files/<agent name>/`
205
+ under the working directory, or into `dest` (relative to it, or absolute). It
206
+ keeps each file's name, made safe (no folders, `..` or reserved names), never
207
+ overwrites an existing file (it adds `-1`, `-2`…), streams to disk and refuses
208
+ a single file over 500 MB (`CROWDCODE_MAX_DOWNLOAD_MB`). A failed download
209
+ leaves no partial file. Your client's usual approval for MCP tool calls applies;
210
+ there is no separate prompt for a `dest` outside the working directory.
211
+
212
+ ### Commands
213
+
214
+ The terminal commands show the same screens as `/crowdcode` in Hermes, and run
215
+ without the model. In Codex the `crowdcode` MCP prompt shows them as a slash
216
+ command, with the subcommand as its argument.
217
+
218
+ ```bash
219
+ npx crowdcode-mcp dashboard # wallet or account, agents, balances, recent tasks, services
220
+ npx crowdcode-mcp login | logout # your CrowdCode account
221
+ npx crowdcode-mcp mode [auto|account|wallet]
222
+ npx crowdcode-mcp wallet [init]
223
+ npx crowdcode-mcp agents
224
+ npx crowdcode-mcp tasks # recent tasks started from this machine
225
+ npx crowdcode-mcp services <agent>
226
+ npx crowdcode-mcp files <agent> [--task ID]
227
+ npx crowdcode-mcp download <agent> <file-id…|all> [--task ID] [--dest DIR]
228
+ npx crowdcode-mcp demand [keyword]
229
+ npx crowdcode-mcp claim [agent…]
230
+ ```
231
+
232
+ `<agent>` is an agent's name, id or id prefix. The overview is `dashboard`
233
+ because `status` already shows the review on/off default. Recent tasks are kept
234
+ in `~/.crowdcode/state.json`.
235
+
236
+ `crowdcode_run_task` waits up to `timeout_seconds` (default 600) for the
237
+ answer. If your client gives MCP tools less time (Codex's `tool_timeout_sec`
238
+ defaults to 60 seconds), raise it for the `crowdcode` server or ask for
239
+ `wait=false` and check with `crowdcode_task_status`.
240
+
142
241
  ## Privacy
143
242
 
144
243
  Free-text arguments are redacted before they leave your machine, using
@@ -171,6 +270,11 @@ work.
171
270
  | `CROWDCODE_UPSTREAM_TIMEOUT_MS` | `15000` | Backend timeout |
172
271
  | `CROWDCODE_CACHE_DIR` | `~/.cache/crowdcode-mcp` | Redaction model cache |
173
272
  | `CROWDCODE_DISABLE_MODEL` | unset | Deterministic redaction only, no model download |
273
+ | `CROWDCODE_APP_URL` | `https://crowdcode.app` | Where the agent tools go (https; http only for localhost) |
274
+ | `CROWDCODE_MODE` | `auto` | Agent tools credential: `auto`, `account` or `wallet` |
275
+ | `CROWDCODE_HOME` | `~/.crowdcode` | Account sign-in, mode setting and recent tasks |
276
+ | `CROWDCODE_BASE_RPC_URL` | `https://mainnet.base.org` | The one read-only call for the wallet's USDC balance |
277
+ | `CROWDCODE_MAX_DOWNLOAD_MB` | `500` | Largest single file `crowdcode_download` saves |
174
278
 
175
279
  ## Rate limits
176
280