moi-computer 0.3.0-next.3 → 0.3.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.
- package/client/features/home/WorkspacePreview.tsx +10 -3
- package/dist/chunk-4z52b2av.css +1 -0
- package/dist/{chunk-rq0ar7vp.js → chunk-fjksw6xf.js} +1 -1
- package/dist/{chunk-6c24yndg.js → chunk-y82s1jxm.js} +14 -14
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/harness/codex/NOTES.md +88 -1
- package/workspace/.claude/skills/moi-workspace/SKILL.md +1 -1
- package/dist/chunk-cwqmay73.css +0 -1
package/dist/index.html
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
|
-
<link rel="stylesheet" crossorigin href="/chunk-
|
|
24
|
+
<link rel="stylesheet" crossorigin href="/chunk-4z52b2av.css"><script type="module" crossorigin src="/chunk-fjksw6xf.js"></script></head>
|
|
25
25
|
<body>
|
|
26
26
|
<div id="root"></div>
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -221,7 +221,94 @@ state, steer/interrupt, previews, usage). Empirical findings beyond §2:
|
|
|
221
221
|
- `thread/start` responses label threads `source: "vscode"` — app-server
|
|
222
222
|
clients are indistinguishable from the VS Code extension in `thread/list`.
|
|
223
223
|
|
|
224
|
-
## 6.
|
|
224
|
+
## 6. MCP servers & connectors (probed at CLI 0.144.5)
|
|
225
|
+
|
|
226
|
+
One-off probe: `bun server/harness/codex/probe.ts rpc . mcpServerStatus/list '{}'`.
|
|
227
|
+
|
|
228
|
+
### `mcpServerStatus/list` payload
|
|
229
|
+
|
|
230
|
+
`{ data: McpServerStatus[] }`, one entry per server Codex loaded:
|
|
231
|
+
|
|
232
|
+
- `name` — the registry key (config.toml table name, or injected name).
|
|
233
|
+
- `serverInfo` — the server's MCP `initialize` result (`name`, `title`,
|
|
234
|
+
`version`, `description`, `icons`, `websiteUrl`), `null` if it never
|
|
235
|
+
answered. A server can list with `serverInfo: null` and an empty `tools`
|
|
236
|
+
map and still be "configured" — that's what a dead/misbehaving remote
|
|
237
|
+
looks like (no error field).
|
|
238
|
+
- `tools` — a **map keyed by tool name**, each value a full MCP tool def:
|
|
239
|
+
`name`, `title`, `description`, `inputSchema`, `outputSchema`,
|
|
240
|
+
`annotations` (`readOnlyHint`/`destructiveHint`/`openWorldHint`), `_meta`.
|
|
241
|
+
This payload is BIG (~0.5 MB with ChatGPT connectors installed) — don't
|
|
242
|
+
fold it into anything broadcast.
|
|
243
|
+
- `resources`, `resourceTemplates` — arrays.
|
|
244
|
+
- `authStatus` — `bearerToken` (authed HTTP/OAuth), `notLoggedIn` (OAuth
|
|
245
|
+
awaiting `mcpServer/oauth/login`; the one `getCodexMcpStatus` maps to
|
|
246
|
+
`needs-auth`), `unsupported` (stdio server, no auth concept).
|
|
247
|
+
|
|
248
|
+
### `codex_apps` — the ChatGPT connector aggregator
|
|
249
|
+
|
|
250
|
+
Injected automatically when signed in with a ChatGPT account; **absent from
|
|
251
|
+
config.toml**. `serverInfo.name` is `plugin-runtime`. It flattens every
|
|
252
|
+
connector installed on the user's ChatGPT account (GitHub, Figma, Granola, …)
|
|
253
|
+
into ONE server whose tool names are dotted `<connector>.<tool>`
|
|
254
|
+
(`figma.generate_deck`). The true brand lives in each tool's `_meta`:
|
|
255
|
+
`connector_id`, `connector_name` ("Figma"), `connector_description`,
|
|
256
|
+
`link_id` (the user's authorization to that connector), plus Apps SDK widget
|
|
257
|
+
hints (`openai/outputTemplate: "ui://widget/….html"`). This is why the
|
|
258
|
+
client's `parseCodexMcp` brands dotted `codex_apps` calls by the prefix
|
|
259
|
+
before the dot, not the server name. The adapter does not currently carry
|
|
260
|
+
`_meta.connector_name` through to the `ToolCall` — icon/brand matching is
|
|
261
|
+
name-based.
|
|
262
|
+
|
|
263
|
+
### Where MCP servers can be defined (config layers)
|
|
264
|
+
|
|
265
|
+
From the 0.144.5 binary's config-layer enum, lowest to highest:
|
|
266
|
+
|
|
267
|
+
1. **User** — `$CODEX_HOME/config.toml` (`[mcp_servers.<name>]`). Shared by
|
|
268
|
+
three writers: hand edits, `codex mcp add/remove`, and other apps (the
|
|
269
|
+
ChatGPT desktop app writes `node_repl` / `computer-use` entries here).
|
|
270
|
+
2. **Profile v2** — `$CODEX_HOME/<name>.config.toml`, layered via `-p <name>`
|
|
271
|
+
(legacy `[profiles.<name>]` tables in config.toml also exist).
|
|
272
|
+
3. **Project** — `.codex/config.toml` in a trusted repo ("sandbox, MCP,
|
|
273
|
+
hooks, model, or reasoning defaults").
|
|
274
|
+
4. **Session flags** — `-c 'mcp_servers.foo.command="…"'` per invocation.
|
|
275
|
+
5. **Plugins** — an enabled plugin can provide MCP servers ("not configured
|
|
276
|
+
in config.toml or an enabled plugin").
|
|
277
|
+
6. **Account-injected** — `codex_apps` (above); server-side, no local file.
|
|
278
|
+
7. **Admin layers** — system config.toml, MDM managed preferences, legacy
|
|
279
|
+
`managed_config.toml`, and an enterprise-managed cloud layer;
|
|
280
|
+
`requirements.toml` restricts (never defines) what the others may set.
|
|
281
|
+
|
|
282
|
+
The app-server can also edit the user layer programmatically
|
|
283
|
+
(`config/value/write`, `config/batchWrite`) — unused by moi.
|
|
284
|
+
|
|
285
|
+
### The full MCP RPC surface (from the 0.144.5 binary's method enums)
|
|
286
|
+
|
|
287
|
+
Requests:
|
|
288
|
+
|
|
289
|
+
- `mcpServerStatus/list` — the registry dump above.
|
|
290
|
+
- `mcpServer/tool/call` — **direct one-off tool invocation, no model turn**:
|
|
291
|
+
`{ threadId, server, tool, arguments }` → a raw MCP `CallToolResult`
|
|
292
|
+
(`{ content: [...], isError }`). Requires a live `threadId` (MCP servers
|
|
293
|
+
are started per thread), but `thread/start` + call works without ever
|
|
294
|
+
running a turn — verified against `mastra_docs`. Argument validation
|
|
295
|
+
errors come back as `isError: true` content, not JSON-RPC errors.
|
|
296
|
+
- `mcpServer/resource/read` — read an MCP resource by uri.
|
|
297
|
+
- `mcpServer/oauth/login` — start OAuth for a `notLoggedIn` server;
|
|
298
|
+
completion arrives as the `mcpServer/oauthLogin/completed` notification.
|
|
299
|
+
- `config/mcpServer/reload` — re-read server definitions without a restart.
|
|
300
|
+
- `config/read`, `config/value/write`, `config/batchWrite`,
|
|
301
|
+
`configRequirements/read` — inspect/edit the config layers that define
|
|
302
|
+
servers.
|
|
303
|
+
|
|
304
|
+
Notifications: `mcpServer/startupStatus/updated` (per-thread startup
|
|
305
|
+
progress/failures — we currently ignore it), `mcpServer/oauthLogin/completed`,
|
|
306
|
+
`item/mcpToolCall/progress` (progress of an in-turn MCP call).
|
|
307
|
+
|
|
308
|
+
Server→client request: `mcpServer/elicitation/request` — an MCP server
|
|
309
|
+
asking the user for input mid-call, forwarded for the client to answer.
|
|
310
|
+
|
|
311
|
+
## 7. Type maintenance (`generate-ts`)
|
|
225
312
|
|
|
226
313
|
The wire types in `adapter.ts`/`client.ts` are a hand-written defensive
|
|
227
314
|
subset of the protocol, produced against the bindings from:
|
|
@@ -304,4 +304,4 @@ This skill is installed with moi (via the CLI or the UI) and can fall behind whe
|
|
|
304
304
|
- **Then** — if you updated, mention it.
|
|
305
305
|
|
|
306
306
|
<!-- moi skill version marker — read by `moi skill` to detect drift; do not edit by hand -->
|
|
307
|
-
<moi-skill version="0.
|
|
307
|
+
<moi-skill version="0.6.0" />
|