@okostream/mcp 0.18.2 → 0.19.0

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.
Files changed (3) hide show
  1. package/README.md +41 -15
  2. package/dist/server.js +1049 -135
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -95,14 +95,23 @@ A new page is a draft: viewers of its public URL see "not published".
95
95
  `oko_start_session`, `oko_extend_session` and `oko_publish_telegram_post`
96
96
  state the charge (or the refund) when called without `confirm`, name the
97
97
  wallet that pays, and take nothing until the organizer confirms. The amount in
98
- the preview is the amount charged; the public price list is at
98
+ the preview of a charge is the amount charged; the preview of a withdrawal
99
+ (`oko_unpublish_event`, the trash) says "up to", because part of the refund
100
+ may be forfeited and only the answer after confirmation gives the exact
101
+ figures. The public price list is at
99
102
  [okostream.app/pricing](https://okostream.app/pricing) and is not copied here.
100
- - **`oko_wallet` reads the wallet.** It returns the lumen balance, the grants and
101
- the ledger of the organizer behind the key (scope `wallet:read`, included in
102
- the `operator` and `full` presets, not in `readOnly`). Keys created before that scope existed get `SCOPE_REQUIRED` and
103
- need a new key. A page in a shared workspace is paid from the workspace
104
- owner's wallet: its balance is told, in the previews and refusals, to whoever
105
- may spend from it; its grants and ledger are the owner's to read.
103
+ - **`oko_wallet` reads the plan and the wallet.** It returns the plan (tier,
104
+ status, period end, source), the lumen balance, the grants and the ledger of
105
+ the organizer behind the key, with the link to the cabinet's Billing page
106
+ (scope `wallet:read`, included in the `operator` and `full` presets, not in
107
+ `readOnly`). It cannot buy, change or cancel anything: a plan or lumens are
108
+ bought only in that cabinet. Keys created before that scope existed get
109
+ `SCOPE_REQUIRED` and need a new key. A page in a shared workspace is paid from
110
+ the workspace owner's wallet: its balance is told, in the previews and
111
+ refusals, to whoever may spend from it; its grants and ledger are the owner's
112
+ to read. `oko_workspace_wallet` reads just that balance for one workspace, as a
113
+ single number (the payer, or a member who may spend from the payer's wallet;
114
+ same scope `wallet:read`); an unreadable balance is an error, never zero.
106
115
  - **Payment and terms are web-only.** Plans and lumens are bought, and terms
107
116
  accepted, only in the OKO web cabinet, and no MCP tool collects a password,
108
117
  card or bank details, or agreement to terms on anyone's behalf.
@@ -137,8 +146,17 @@ Refusals are explicit and never require guessing:
137
146
  workspace owner does not hold another shared workspace, another member, or
138
147
  the capability at all. A refused invitation stays valid. Plans are bought only
139
148
  in the OKO cabinet, never through MCP.
140
- - `WORKSPACE_INACTIVE` — `oko_publish_event` in a shared workspace the plan no
141
- longer publishes into (Pro: only the workspace its owner chose as active).
149
+ - `CONTROL_ROOM_REQUIRED` — `oko_control_poll` was asked to launch a poll for
150
+ everyone or to reset its count, which use the live control room of the show
151
+ (a paid option of a published page, bought in the analytics screen, never
152
+ through MCP). Showing the results, closing, reopening and hiding need no
153
+ control room. Nothing is changed by the refusal.
154
+ - `WALLET_VIEW_FORBIDDEN` — `oko_workspace_wallet` tells the balance only to the
155
+ payer of the workspace and to members who may spend from it.
156
+ - `WORKSPACE_INACTIVE` — `oko_publish_event` in a shared workspace the plan does
157
+ not hold open (only a new publication is closed): Core — shared workspaces are
158
+ not included (Pro); Pro — one active workspace (the owner's choice, or Max); no
159
+ live subscription — renew.
142
160
 
143
161
  **One install path.** Every supported client — Claude Code, Codex, and any
144
162
  MCP client that takes a command with arguments and env — runs the package
@@ -161,17 +179,25 @@ always works. The result's `sourceVia` says who fetched the image.
161
179
  ## Capabilities
162
180
 
163
181
  - Create, duplicate, move, restore, and delete webinars.
164
- - Configure video, forms, calls to action, cards, banners, and images. On an
165
- already published page, turning on a banner, CTA, cards or forms costs 10
166
- lumens each for that show: the tool answers with the quote first and writes
167
- only after `confirm=true`; unpublishing later does not return these top-ups.
182
+ - Configure video, forms, polls, calls to action, cards, banners, and images.
183
+ On an already published page, turning on a banner, CTA, cards, forms or polls
184
+ costs 10 lumens each for that show: the tool answers with the quote first and
185
+ writes only after `confirm=true`; unpublishing later does not return these
186
+ top-ups.
168
187
  The live control room is a paid option of a published page (50 lumens, Pro
169
188
  and above) bought in the analytics screen, not through MCP.
170
189
  - Operate live audience controls, chat, moderation, and analytics sessions.
171
- - Read analytics, session reports, geography, engagement, and form submissions.
190
+ - Run polls: build them, bind them to buttons, close and reopen voting, show or
191
+ hide the results to viewers, launch one for everyone or reset its count (the
192
+ last two with the live control room), and read the live count and the
193
+ per-session results (`oko_control_poll`, `oko_get_live_state`,
194
+ `oko_get_session_report`).
195
+ - Read analytics, session reports, geography, engagement, form submissions and
196
+ poll results.
172
197
  - Manage workspaces, invitations, notifications, and Telegram publishing
173
198
  (5 lumens per post, shown in the confirmation preview).
174
- - Read the lumen balance and ledger of your own wallet (`oko_wallet`).
199
+ - Read your own plan, lumen balance and ledger (`oko_wallet`), and the balance of
200
+ the wallet that pays for a workspace (`oko_workspace_wallet`).
175
201
 
176
202
  OKO MCP acts as the organizer represented by the selected access key. It does
177
203
  not inherit platform-owner privileges. Keys are scoped and revocable, and