diff options
| author | Your Name <you@example.com> | 2026-05-18 03:37:27 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-18 03:37:27 +0530 |
| commit | 8a2f7a6c9423e0c00fae3c1233bee9e0bb3ae239 (patch) | |
| tree | 8f8d2ede379b7e3cc0da82d472bcf0eeedcbf03b /main/cvm_server.h | |
| parent | fe7c3be2fd9d464dbc837d1913409d2691bd50f5 (diff) | |
feat: ContextVM (MCP over Nostr) server with WS masking fix
- Full CVM server: persistent WS relay listener, kind 25910 subscription
- MCP protocol handlers: initialize, tools/list, tools/call, ping
- 10 MCP tools: get_config, set_config, get_balance, wallet_send,
get_sessions, get_usage, set_payout, set_metric, set_price, wallet_melt
- CEP-6 announcements via WS (kinds 11316, 11317, 10002)
- Auth check: owner npub only
- Fix: WebSocket client-to-server frame masking (RFC 6455 requirement)
- Fix: Raw event JSON in EVENT wrapper (no re-parsing that breaks sig)
- SNTP init after STA gets IP
- 282 unit tests passing (61 CVM + 60 MCP handler + 161 existing)
- Integration test scaffold: tests/integration/test-cvm.mjs
Diffstat (limited to 'main/cvm_server.h')
| -rw-r--r-- | main/cvm_server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/cvm_server.h b/main/cvm_server.h index d336514..864973b 100644 --- a/main/cvm_server.h +++ b/main/cvm_server.h | |||
| @@ -7,4 +7,8 @@ esp_err_t cvm_server_init(void); | |||
| 7 | void cvm_server_start(void); | 7 | void cvm_server_start(void); |
| 8 | void cvm_server_stop(void); | 8 | void cvm_server_stop(void); |
| 9 | 9 | ||
| 10 | esp_err_t cvm_publish_announcements(void); | ||
| 11 | |||
| 12 | const char *cvm_get_pubkey_hex(void); | ||
| 13 | |||
| 10 | #endif | 14 | #endif |