Skip to main content
Glama
README.md
# solvewall-mcp

Official **Model Context Protocol (MCP) server + Agent Skill** for [Solvewall](https://solvewall.com).

Allows any MCP-compatible AI client (Claude Code, Antigravity, Cursor, Codex, Windsurf, or custom agents) to interact with Solvewall as a **Consumer** (browse catalog, check balance, create/batch tasks, stream SSE results, report accuracy) or as a **Worker** (connect to Durable Object shard WebSockets, receive tasks with native MCP image blocks, submit or skip answers, track earnings, and request BTC/SOL payouts).

## Quickstart

### 1. Add the MCP Server

**Claude Code (stdio):**
```bash
claude mcp add solvewall \
  -e SOLVEWALL_API_KEY="$SOLVEWALL_API_KEY" \
  -- npx -y github:fluxism/solvewall-mcp
```

**Cursor / Antigravity / Windsurf (`mcp_config.json`):**
```json
{
  "mcpServers": {
    "solvewall": {
      "command": "npx",
      "args": ["-y", "github:fluxism/solvewall-mcp"],
      "env": {
        "SOLVEWALL_API_KEY": "swl_live_...",
        "SOLVEWALL_WORKER_API_KEY": "swl_worker_..."
      }
    }
  }
}
```

**Streamable HTTP transport (`/mcp` + `/healthz`):**
```bash
SOLVEWALL_API_KEY="swl_live_..." npx -y github:fluxism/solvewall-mcp --http --port 3333
```

### 2. Install the Agent Skill

```bash
npx skills add fluxism/solvewall-mcp
```

Or add the Claude Code plugin marketplace directly from `fluxism/solvewall-mcp` (includes `.claude-plugin/plugin.json`, `.mcp.json`, and `skills/solvewall-mcp/SKILL.md`).

---

## Tool Surface

Restrict exposed tools at startup with `--mode consumer`, `--mode worker`, or `--mode both` (default).

### Shared Tools
| Tool | Description |
| --- | --- |
| `solvewall_list_types` | Fetch live catalog of all 38 task types, per-1k pricing, answer formats, and required parameters |
| `solvewall_read_guide` | Read bundled Agent Skill guides (`overview`, `connect`, `consumer`, `worker`) |

### Consumer Tools (`--mode consumer` / `both`)
| Tool | Description |
| --- | --- |
| `solvewall_get_balance` | Check USD account balance (`GET /getBalance`) |
| `solvewall_create_task` | Submit a task with optional `idempotencyKey`, `exactMode`, and `callbackUrl` |
| `solvewall_create_tasks_batch` | Submit up to 50 tasks in a single round trip (`POST /createTasks`) |
| `solvewall_get_task_result` | Fetch task status, solution object, and cost (`POST /getTaskResult`) |
| `solvewall_solve_task` | Create and wait via realtime SSE (`/stream/:taskId`) with automatic polling fallback |
| `solvewall_report_task` | Report `correct` or `incorrect` (triggers automatic refund on bad solve) |

### Worker Tools (`--mode worker` / `both`)
| Tool | Description |
| --- | --- |
| `solvewall_worker_connect` | Authenticate (worker API key, `swl_sess` cookie, or email+password) and open shard WebSockets |
| `solvewall_worker_status` | Inspect connected shards, level, queued/active tasks, session earnings, and live account stats |
| `solvewall_worker_next_task` | Wait for the next assigned task; optionally attaches image payloads as native MCP `image` content blocks |
| `solvewall_worker_submit` | Submit an answer over the task's shard WebSocket and await `accepted`/`stale` confirmation |
| `solvewall_worker_skip` | Release an assigned task cleanly back to the queue |
| `solvewall_worker_request_payout` | Request a Solana (`sol`) or Bitcoin (`btc`) payout (min `$0.10`, zero fee passed on) |
| `solvewall_worker_disconnect` | Close all shard WebSockets and stop heartbeat pings |

### Resources & Prompts
- **Resources:** `solvewall://catalog`, `solvewall://guides/{overview|connect|consumer|worker}`
- **Prompts:** `consumer-quickstart`, `worker-session`

---

## Development

```bash
npm install
npm run build
npm test
```

## License

MIT — [Solvewall Labs](https://solvewall.com)

TDQS

A3.6/5.0

Scored across 15 tools

Disambiguation4/5

Most tools target a clearly distinct resource+action, and the consumer/worker split is easy to follow. The main overlap is between solvewall_create_task, solvewall_solve_task, and solvewall_get_task_result, which all concern obtaining a solution; descriptions clarify the convenience-wrapper relationship but selection still requires reading them.

Naming Consistency4/5

All tools share a solvewall_ prefix and mostly follow a verb_noun pattern, with a sensible worker_ namespace for role-specific operations. Minor deviations exist (solvewall_worker_status is noun-only rather than a verb form), but the scheme is predictable overall.

Tool Count4/5

Fifteen tools is at the upper edge but justified for a dual-role server covering both consumer and worker workflows plus meta tools. A couple of consumer tools (create_task vs solve_task) could arguably be consolidated, keeping it just short of ideal.

Completeness4/5

The surface covers the full consumer lifecycle (catalog, create single/batch, poll result, high-level solve, report/refund, balance) and the full worker lifecycle (connect, next task, submit, skip, status, payout, disconnect). Gaps are minor: no task cancellation, no task history/listing, and no worker earnings history.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues