You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update README for HTTP REST API and 43 MCP tools
- Add HTTP REST API Server section with full endpoint table
- Update MCP tools count 39/40 → 43 (Config:10 Agent:25 Stats:4 Workflow:4)
- Add codes serve command to commands reference
- Add chatsession/ and httpserver/ to dev structure
- Document httpTokens and httpBind config fields
- Update both English and Chinese READMEs
Workflows can also be created programmatically via the `workflow_create` MCP tool.
151
152
153
+
## HTTP REST API Server
154
+
155
+
`codes serve`starts a REST API server (default `:3456`) that exposes all `codes` functionality over HTTP — designed for iOS/mobile apps and remote automation.
156
+
157
+
**First run** auto-generates and saves an auth token to `~/.codes/config.json`. All endpoints (except `/health`) require:
158
+
159
+
```
160
+
Authorization: Bearer <token>
161
+
```
162
+
163
+
### Endpoints
164
+
165
+
| Method | Path | Description |
166
+
|--------|------|-------------|
167
+
| `GET` | `/health` | Health check (no auth) |
168
+
| `POST` | `/dispatch` | Dispatch task to agent team |
0 commit comments