Skip to content

Commit dcd139b

Browse files
authored
Add MCP app feature flag (#19884)
## Summary - Add the `enable_mcp_apps` feature flag to the `codex-features` registry - Keep it under development and disabled by default ## Testing - Unit tests for `codex-features` passed - Formatting passed
1 parent e64c765 commit dcd139b

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

codex-rs/core/config.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@
400400
"enable_fanout": {
401401
"type": "boolean"
402402
},
403+
"enable_mcp_apps": {
404+
"type": "boolean"
405+
},
403406
"enable_request_compression": {
404407
"type": "boolean"
405408
},
@@ -2607,6 +2610,9 @@
26072610
"enable_fanout": {
26082611
"type": "boolean"
26092612
},
2613+
"enable_mcp_apps": {
2614+
"type": "boolean"
2615+
},
26102616
"enable_request_compression": {
26112617
"type": "boolean"
26122618
},

codex-rs/features/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ pub enum Feature {
146146
SpawnCsv,
147147
/// Enable apps.
148148
Apps,
149+
/// Enable MCP apps.
150+
EnableMcpApps,
149151
/// Enable the tool_search tool for apps.
150152
ToolSearch,
151153
/// Always defer MCP tools behind tool_search instead of exposing small sets directly.
@@ -834,6 +836,12 @@ pub const FEATURES: &[FeatureSpec] = &[
834836
stage: Stage::Stable,
835837
default_enabled: true,
836838
},
839+
FeatureSpec {
840+
id: Feature::EnableMcpApps,
841+
key: "enable_mcp_apps",
842+
stage: Stage::UnderDevelopment,
843+
default_enabled: false,
844+
},
837845
FeatureSpec {
838846
id: Feature::ToolSearch,
839847
key: "tool_search",

0 commit comments

Comments
 (0)