Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Register the MCP 2026-07-28 feature flag (#34747)

thomas65ae4c26e088
diff --git a/codex-rs/app-server/src/request_processors/config_processor.rs b/codex-rs/app-server/src/request_processors/config_processor.rs
index 0d09d2503c..9cef41e3dd 100644
--- a/codex-rs/app-server/src/request_processors/config_processor.rs
+++ b/codex-rs/app-server/src/request_processors/config_processor.rs
@@ -50,6 +50,7 @@ use std::path::PathBuf;
const SUPPORTED_EXPERIMENTAL_FEATURE_ENABLEMENT: &[&str] = &[
"auth_elicitation",
+ "mcp_2026_07_28",
"memories",
"mentions_v2",
"remote_control",
diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.json
index 982e3ea8a1..e6ec8d92c2 100644
--- a/codex-rs/core/config.schema.json
+++ b/codex-rs/core/config.schema.json
@@ -566,6 +566,9 @@
"local_thread_store_compression": {
"type": "boolean"
},
+ "mcp_2026_07_28": {
+ "type": "boolean"
+ },
"memories": {
"type": "boolean"
},
@@ -5039,6 +5042,9 @@
"local_thread_store_compression": {
"type": "boolean"
},
+ "mcp_2026_07_28": {
+ "type": "boolean"
+ },
"memories": {
"type": "boolean"
},
diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rs
index f027f5c997..d291dbeffa 100644
--- a/codex-rs/features/src/lib.rs
+++ b/codex-rs/features/src/lib.rs
@@ -160,6 +160,8 @@ pub enum Feature {
Apps,
/// Enable MCP apps.
EnableMcpApps,
+ /// Enable MCP protocol version 2026-07-28 support.
+ Mcp20260728,
/// Removed compatibility flag for the legacy Apps MCP path override.
AppsMcpPathOverride,
/// Removed compatibility flag retained as a no-op now that tool_search is always enabled.
@@ -1081,6 +1083,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::UnderDevelopment,
default_enabled: false,
},
+ FeatureSpec {
+ id: Feature::Mcp20260728,
+ key: "mcp_2026_07_28",
+ stage: Stage::UnderDevelopment,
+ default_enabled: false,
+ },
FeatureSpec {
id: Feature::AppsMcpPathOverride,
key: "apps_mcp_path_override",