From 5e3a6fe4eee7bab705fed03b0dbed9bc110ef4cd Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Thu, 20 Aug 2026 04:45:12 +0000 Subject: [PATCH] Warn when launching the deprecated MCP server (#39657) ## What changed Print a warning to standard error when `codex mcp-server` is invoked, noting that the command is deprecated and will be removed in a future release. The server continues to launch after the warning. GitOrigin-RevId: 0fefa2579a420a2fad85ef3afe373204f9836869 --- codex-rs/cli/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rs index 03a81f9b7e..45218a6d39 100644 --- a/codex-rs/cli/src/main.rs +++ b/codex-rs/cli/src/main.rs @@ -1179,6 +1179,9 @@ async fn cli_main( codex_exec::run_main(exec_cli, arg0_paths.clone()).await?; } Some(Subcommand::McpServer(McpServerCommand { strict_config })) => { + eprintln!( + "warning: `codex mcp-server` is deprecated and will be removed in a future release." + ); reject_remote_mode_for_subcommand( root_remote.as_deref(), root_remote_auth_token_env.as_deref(),