core-agent-ide/codex-rs/protocol/src
Michael Bolin 5881c0d6d4
fix: remove mcp-types from app server protocol (#4537)
We continue the separation between `codex app-server` and `codex
mcp-server`.

In particular, we introduce a new crate, `codex-app-server-protocol`,
and migrate `codex-rs/protocol/src/mcp_protocol.rs` into it, renaming it
`codex-rs/app-server-protocol/src/protocol.rs`.

Because `ConversationId` was defined in `mcp_protocol.rs`, we move it
into its own file, `codex-rs/protocol/src/conversation_id.rs`, and
because it is referenced in a ton of places, we have to touch a lot of
files as part of this PR.

We also decide to get away from proper JSON-RPC 2.0 semantics, so we
also introduce `codex-rs/app-server-protocol/src/jsonrpc_lite.rs`, which
is basically the same `JSONRPCMessage` type defined in `mcp-types`
except with all of the `"jsonrpc": "2.0"` removed.

Getting rid of `"jsonrpc": "2.0"` makes our serialization logic
considerably simpler, as we can lean heavier on serde to serialize
directly into the wire format that we use now.
2025-10-01 02:16:26 +00:00
..
config_types.rs [mcp-server] Update read config interface (#3093) 2025-09-04 16:26:41 -07:00
conversation_id.rs fix: remove mcp-types from app server protocol (#4537) 2025-10-01 02:16:26 +00:00
custom_prompts.rs Custom prompts begin with /prompts: (#4476) 2025-09-29 17:58:16 -07:00
lib.rs fix: remove mcp-types from app server protocol (#4537) 2025-10-01 02:16:26 +00:00
message_history.rs Generate more typescript types and return conversation id with ConversationSummary (#3219) 2025-09-08 17:54:47 -04:00
models.rs Use anyhow::Result in tests for error propagation (#4105) 2025-09-23 13:31:36 -07:00
num_format.rs Format large numbers in a more readable way. (#2046) 2025-09-08 21:48:48 +00:00
parse_command.rs Generate more typescript types and return conversation id with ConversationSummary (#3219) 2025-09-08 17:54:47 -04:00
plan_tool.rs Generate more typescript types and return conversation id with ConversationSummary (#3219) 2025-09-08 17:54:47 -04:00
protocol.rs fix: remove mcp-types from app server protocol (#4537) 2025-10-01 02:16:26 +00:00