1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Launch and interact with Codex MCP + app servers using stored runtime definitions.
//!
//! - Spawn `codex mcp-server`, call `codex/codex` or `codex/codex-reply`, and stream
//! `codex/event` notifications (task completion, approvals, cancellations, errors).
//! - Start `codex app-server` threads/turns and surface item/task_complete notifications.
//! - Manage `[mcp_servers]` and `[app_runtimes]` config entries, resolve them into launch-ready
//! runtimes, and expose read-only APIs (including pooled app runtimes) without mutating stored
//! config or thread metadata.
//! - Requests may be cancelled via the JSON-RPC `$ /cancelRequest` flow.
//!
//! The MCP server exposes two tool entrypoints:
//! - `codex/codex`: start a new Codex session with a prompt.
//! - `codex/codex-reply`: continue an existing session by conversation ID.
//!
//! The app-server supports `thread/start`, `thread/resume`, `turn/start`, and `turn/interrupt`
//! requests. Runtime and pool helpers keep resume hints/metadata intact while starting,
//! reusing, and stopping app-server instances.
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;