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
bun run start --config=examples/paid-config.yaml --port=8000
38
44
```
39
45
40
-
**IMPORTANT:** There is NO build, lint, or compilation step. The project runs directly from TypeScript source files using Bun. Only use `type-check` to validate types.
46
+
**IMPORTANT:**
47
+
- There is NO build, lint, or compilation step. The project runs directly from TypeScript source files using Bun. Only use `type-check` to validate types.
48
+
-**Default mode is SSE** (HTTP/SSE server), which exposes the gateway over HTTP with x402 payment support
49
+
-**STDIO mode** is for local integrations (Claude Desktop, Cursor, etc.)
41
50
42
51
---
43
52
@@ -302,14 +311,29 @@ servers:
302
311
## IMPORTANT DEVELOPMENT NOTES
303
312
304
313
### Entry Point
305
-
- `src/index.ts`is the CLI entry point
306
-
- Accepts `--config=<path>` flag for configuration file
307
-
- Falls back to environment variables if no config file provided
308
-
- Creates STDIO transport and connects gateway server
309
-
310
-
### Transport Priority
311
-
- STDIO is the default and most common transport (local MCP servers)
312
-
- HTTP/SSE/WebSocket are for remote servers (less common)
314
+
- `src/index.ts`is the CLI entry point with dual-mode support
315
+
- **SSE mode** (default): Runs HTTP/SSE wrapper for network access with x402 payment support
316
+
- **STDIO mode**: Direct stdin/stdout for local clients (Claude Desktop, Cursor, etc.)
317
+
- Accepts flags:
318
+
- `--config=<path>`- Configuration file path (required for SSE mode)
319
+
- `--mode=<sse|stdio>` - Transport mode (default: sse)
320
+
- `--port=<number>` - Port for SSE mode (default: 8000)
321
+
- Falls back to environment variables if no config file provided (STDIO mode only)
322
+
323
+
### Transport Modes
324
+
- **SSE** (default): HTTP/SSE server mode - exposes gateway over HTTP with x402 payment support
325
+
- Used for: Network access, agent integrations, payment-gated APIs
0 commit comments