From b84acf78b1c14d97383dc24fb361566dab3a575a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 14 May 2026 05:15:08 +0100 Subject: [PATCH] Remove Codex Apps prompt residue --- notes/fresh-workspace-handoff.md | 8 +++ state/ledgers.msgpack | Bin 110672 -> 111203 bytes state/map.yaml | 6 +- .../src/protocol/common.rs | 4 +- .../app-server/tests/suite/v2/mcp_resource.rs | 8 +-- .../tests/suite/v2/mcp_server_elicitation.rs | 6 +- .../codex-rs/core/src/tools/registry_tests.rs | 4 +- .../codex-rs/core/src/tools/router_tests.rs | 4 +- .../codex-rs/core/src/tools/spec_tests.rs | 30 ++++----- .../codex-rs/core/src/unavailable_tool.rs | 4 +- .../core/tests/common/apps_test_server.rs | 12 ++-- .../core/tests/common/context_snapshot.rs | 57 ------------------ .../codex-rs/core/tests/suite/code_mode.rs | 2 +- .../codex-rs/core/tests/suite/search_tool.rs | 14 ++--- vendor/codex/codex-rs/protocol/src/models.rs | 14 ++--- .../codex/codex-rs/protocol/src/protocol.rs | 2 - .../codex-rs/tools/src/responses_api_tests.rs | 6 +- .../tools/src/tool_registry_plan_tests.rs | 22 +++---- 18 files changed, 78 insertions(+), 125 deletions(-) diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index b578a86f..922f2b4d 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -939,6 +939,14 @@ plus generated config schema entries were removed. A vendored-wide search for product-shaped skill markers now returns nothing; only the ordinary English word "skill" remains in personality copy. +The app-instruction compatibility stump is cut too. `APPS_INSTRUCTIONS` protocol +constants and `` snapshot canonicalization/tests are gone. +MCP tests that previously used `codex_apps`, `_codex_apps`, `mcp__codex_apps`, +or `/api/codex/apps` as fixture branding were renamed to neutral demo/calendar +MCP names. MCP itself remains valid JSON-RPC protocol edge machinery; the cut is +only the deleted Codex Apps product identity leaking into tests and prompt +snapshots. + That husk has now been cut from `codex-core`. The root core crate no longer exports `plugins`, no longer depends on `codex-core-plugins` or `codex-plugin`, and the core plugin manager / marketplace add-remove-sync modules and tests diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 18e55d7ba1ba483590a10e803290b0c2bbd7675a..fea6715acca01dda36bdbe7981cf642d2e6bbc4b 100644 GIT binary patch delta 532 zcmY*WO-md>5M^@km`g4>7DNvc$63ur!Xm=5mw3=@+*QHLP}@_x+c?ubRQD|6!42pS z2n6)*4-k}q2>yro69VyvSUm)qAh%?(fXM`` or `` prompt compatibility, memory usage classification, snapshot normalization, or cleanup paths. Remaining product-shaped skill residue is also cut from memory templates, app-server docs/tests/warnings, TUI tooltips/placeholders/warnings/comments, app-server v1 docs, agent-tool schema text, stale `UserInput::Skill` test arms, and obsolete feature flags/schema entries. The TUI app connector product path is also deleted: no `/apps` slash command, app-link view, connector AppEvent variants, app connector cache/popup/refresh loop, app mention insertion, `app://` mention codec support, stale app-popup tests, or TUI browser-opening shim remains. The `app/list` route and `app/list/updated` notification are gone from app-server protocol, generated schemas, app-server dispatch, test helpers, and docs; `AppInfo`/app-list metadata schema structs are deleted; the orphaned `codex-connectors` crate and `core::connectors` shim are deleted from the workspace; Codex app analytics no longer tracks `codex_app_mentioned` / `codex_app_used` facts, events, reducer arms, client APIs, or dedupe cache state; `[apps.*]`, `Feature::Apps`, `include_apps_instructions`, app config/read schemas, app managed requirements, app prompt tests, and app file-MCP tests are gone; `Feature::Plugins`, `Feature::RemotePlugin`, `plugin://` structured mentions, plugin instruction tags, and stale plugin popup snapshots are gone too; `[plugins]` / `[marketplaces]`, `PluginConfig`, `MarketplaceConfig`, marketplace edit helpers, stale plugin/external-agent README route claims, and generated schema entries are removed from config; and the bundled `codex-skills` sample-skill crate plus embedded imagegen/openai-docs/plugin-creator/skill-creator/skill-installer payloads are deleted from the workspace. Live MCP tool approval is named `McpToolApproval`, not `AppToolApproval`, and remains under MCP server config; live structured user-input mentions are MCP-shaped only. `codex_message_processor.rs` is about 9,637 lines; root `message_processor.rs` is about 1,292 lines after the external-agent/config-product cuts; `epiphany_read_routes.rs` is about 579 lines after the full view and read-response extractions; `epiphany_mutation_routes.rs` is about 694 lines after route-load/notification helper cuts and product-surface starvation; `epiphany_state_helpers.rs` is down to a 19-line rollout-state loader; and `codex_thread.rs` is about 1,425 lines after state-update law moved native. `epiphany-openai-adapter` defines CultCache `DatabaseEntry` request/event/receipt/auth-status documents with no Codex app-server or generic JSON dependency. `epiphany-openai-codex-spine` owns all direct Codex auth/model-transport imports for the native OpenAI path: it exposes `default_codex_home` and `auth_manager`, projects `AuthManager` / `CodexAuth` into typed `EpiphanyOpenAiAdapterStatus`, maps typed `EpiphanyOpenAiModelRequest` into Codex API `ResponsesApiRequest`, resolves auth/provider through keeper Codex crates, opens HTTP Responses streams through `codex-api`, maps deltas / completion into typed stream events and receipts, and no longer directly depends on `codex-app-server-protocol` just to name auth mode. `epiphany-openai-runtime` no longer depends directly on `codex-login`; it writes OpenAI status/request/stream-event/receipt records plus runtime sessions/jobs/results/events into `epiphany-core::runtime_spine_cache`, can emit the assistant text artifact for legacy result consumers, is now the default executor for startup-only repo birth specialists, and now has `run-worker` to load a durable `EpiphanyRuntimeWorkerLaunchRequest`, call the typed OpenAI runtime through the spine, persist typed `EpiphanyRuntimeRoleWorkerResult` / `EpiphanyRuntimeReorientWorkerResult` documents, and complete the original heartbeat/specialist runtime job without Codex worker execution; `codex exec` survives only as explicit fallback in repo-birth startup. `epiphany-mvp-coordinator` now invokes `epiphany-openai-runtime run-worker` for launched runtime job ids and no longer creates a second coordinator-owned shadow runtime job/result as a compensator. `epiphany-core::plan_runtime_spine_heartbeat_launch` validates launch contracts/conflicts and projects durable job bindings/runtime links; `epiphany-core::open_runtime_spine_heartbeat_job` owns the initialize-runtime/ensure-session/create-job sequence and now persists `EpiphanyRuntimeWorkerLaunchRequest` CultCache records keyed by runtime job id, with indexed kind/contract fields plus MessagePack-encoded typed launch documents instead of discarding work intent after queue receipt creation; `roleResult` and `reorientResult` now prefer typed worker result documents and fall back only to generic job summaries for older receipts; `epiphany-core::EpiphanyStateUpdate`, `epiphany_state_update_validation_errors`, and `apply_epiphany_state_update` own state-update document shape and mutation law while `codex-core` calls them for compatibility. Vendored `CodexThread::epiphany_launch_job` is now mostly revision check, persistence validation, launch request handoff, and rollout/session writeback for the compatibility route. Vendored `codex-core` no longer has `epiphany_distillation`, `epiphany_promotion`, `epiphany_proposal`, or `epiphany_retrieval` husk modules; it re-exports native surfaces from `epiphany-core` directly, and now owns only the real Codex rollout adapter because it is a host seam. `epiphany-runtime-spine` advertises OpenAI adapter status/model-request/stream-event/receipt CultNet schemas and mutation contracts, so the native caller now has a real storage route instead of only JSON-RPC. MCP itself is correctly JSON at its protocol edge; the target is typed Epiphany intent/result/receipt wrappers around MCP, not replacing MCP JSON. The current OpenAI spine still pulls `codex-api` and a large transport dependency stack, so its next cut is dependency starvation after richer live callers move. + summary: The Codex starvation pass has five typing receipts, fifty-two processor/foundation cuts, a real physical extraction in `epiphany-codex-bridge`, a root `epiphany-state-model` crate for durable Epiphany state, a source-grounded Codex auth spine inventory, the native `epiphany-openai-adapter` document boundary, a buildable Codex auth/model wrapper in `epiphany-openai-codex-spine`, the first native runtime caller in `epiphany-openai-runtime`, native heartbeat launch planning/job opening in `epiphany-core`, native state-update contract/validation/application in `epiphany-core`, native exact retrieval path matching in `epiphany-core`, and the route-facing mutation/view/coordinator projection services in `epiphany-codex-bridge`. `codex-protocol` no longer defines the durable `Epiphany*` state structs; it re-exports the native model for legacy rollout/API compatibility while `epiphany-core` imports the native model directly. `epiphany-core` now has no direct vendored Codex dependency: pressure derivation accepts native `EpiphanyTokenUsageSnapshot`, Codex rollout replay moved to `codex-core::epiphany_rollout`, and exact retrieval search uses Epiphany-owned workspace walking/path scoring instead of `codex-file-search`. The bridge owns Codex-facing Epiphany adapters for scene, jobs, context/planning/graph query, retrieval/indexing projection, result projection, runtime-spine result adaptation, launch/prompt doctrine, mutation document mechanics, mutation service update/promote/role-accept/reorient-accept/role-launch/reorient-launch/job-launch/job-interrupt application, live-state projection, pressure/pre-compaction rendering, freshness/reorientation projection, CRRC/coordinator/role-board projection, watcher invalidation adaptation, full `thread/epiphany/view` response construction, freshness/context/graph-query response construction, role/reorient result response construction, distill/propose patch-response construction, coordinator status/view construction, and acceptance/evidence signal helpers. Vendored app-server no longer retains root Epiphany modules; `codex_message_processor.rs` still contains route dispatch, JSON-RPC response shaping, watcher registration/snapshotting calls, and notification emission, but its root no longer imports the evacuated Epiphany policy/protocol registry or owns the watcher invalidation manager. Codex product surfaces for apps, skills, plugins, marketplace, and external agent config import are now inert in the app-server compatibility path: list routes return empty lists, mutation/detail/import routes report disabled, `externalAgentConfig/detect` returns no import candidates, helper/import modules and stale implementation-shape tests were deleted, runtime feature enablement no longer supports `apps` or `plugins`, config writes no longer emit plugin-toggle analytics, plugin/skill cache invalidation on config writes is gone, plugin startup warmups and app-list refreshes were removed, and app-server no longer directly depends on `codex-plugin`, `codex-chatgpt`, or `codex-core-plugins`. `Config::to_mcp_config` now keeps user-declared MCP servers but no longer accepts `PluginsManager`, folds plugin MCP servers into the runtime, enables Codex apps, enables skill MCP dependency install, or advertises plugin capability summaries; `TurnContext::apps_enabled()` now returns false so model turns cannot awaken Codex Apps through ChatGPT auth or feature flags; session startup and per-turn context no longer load skills, turns receive an empty `SkillLoadOutcome`, internal `Op::ListSkills` is gone from `codex-protocol` / `codex-core` / TUI command routing, the Codex skill watcher has been collapsed to a no-op marker with no file watcher, skill-root registration, cache-clear task, or `SkillsUpdateAvailable` session listener, model turns no longer run skill mention collection, skill env-var prompts, skill MCP dependency installation, skill instruction injection, or implicit skill invocation analytics from shell tools, and the turn prompt/router path no longer loads plugin/app capability summaries, injects available-skill/available-plugin/plugin instruction fragments, parses plugin/app mentions, records app/plugin invocation telemetry, or filters MCP tools through Codex app connectors. Skill mutation/list/notification is gone from the app-server edge too: `skills/list`, `skills/config/write`, `skills/changed`, `Op::ListSkills`, `EventMsg::ListSkillsResponse`, `EventMsg::SkillsUpdateAvailable`, the app-server handlers, TUI slash/startup/list/manage-skill surfaces, generated schema entries, core skill-list suite, and fake live-reload/developer-message tests were deleted. Skill mention plumbing is also gone from the live TUI/protocol edge: no `UserInput::Skill` variant, app-server schema branch, TUI skill popup, `skills_all` cache, composer `set_skill_mentions`, skill mention insertion, `skill://` / `SKILL.md` history decoding, or stale skill popup snapshot remains. The `codex-core-skills` crate, core `skills` re-export shim, no-op `skills_watcher`, session `SkillsManager` service, and per-turn `TurnSkillsContext` are deleted; core/protocol no longer keep legacy `` or `` prompt compatibility, memory usage classification, snapshot normalization, or cleanup paths. Remaining product-shaped skill residue is also cut from memory templates, app-server docs/tests/warnings, TUI tooltips/placeholders/warnings/comments, app-server v1 docs, agent-tool schema text, stale `UserInput::Skill` test arms, and obsolete feature flags/schema entries. App-instruction prompt compatibility is cut too: no `APPS_INSTRUCTIONS` protocol constants, no `` snapshot canonicalization, and MCP fixture tests now use neutral `demo_mcp` / `calendar_mcp` names instead of `codex_apps` / `/api/codex/apps` branding. The TUI app connector product path is also deleted: no `/apps` slash command, app-link view, connector AppEvent variants, app connector cache/popup/refresh loop, app mention insertion, `app://` mention codec support, stale app-popup tests, or TUI browser-opening shim remains. The `app/list` route and `app/list/updated` notification are gone from app-server protocol, generated schemas, app-server dispatch, test helpers, and docs; `AppInfo`/app-list metadata schema structs are deleted; the orphaned `codex-connectors` crate and `core::connectors` shim are deleted from the workspace; Codex app analytics no longer tracks `codex_app_mentioned` / `codex_app_used` facts, events, reducer arms, client APIs, or dedupe cache state; `[apps.*]`, `Feature::Apps`, `include_apps_instructions`, app config/read schemas, app managed requirements, app prompt tests, and app file-MCP tests are gone; `Feature::Plugins`, `Feature::RemotePlugin`, `plugin://` structured mentions, plugin instruction tags, and stale plugin popup snapshots are gone too; `[plugins]` / `[marketplaces]`, `PluginConfig`, `MarketplaceConfig`, marketplace edit helpers, stale plugin/external-agent README route claims, and generated schema entries are removed from config; and the bundled `codex-skills` sample-skill crate plus embedded imagegen/openai-docs/plugin-creator/skill-creator/skill-installer payloads are deleted from the workspace. Live MCP tool approval is named `McpToolApproval`, not `AppToolApproval`, and remains under MCP server config; live structured user-input mentions are MCP-shaped only. `codex_message_processor.rs` is about 9,637 lines; root `message_processor.rs` is about 1,292 lines after the external-agent/config-product cuts; `epiphany_read_routes.rs` is about 579 lines after the full view and read-response extractions; `epiphany_mutation_routes.rs` is about 694 lines after route-load/notification helper cuts and product-surface starvation; `epiphany_state_helpers.rs` is down to a 19-line rollout-state loader; and `codex_thread.rs` is about 1,425 lines after state-update law moved native. `epiphany-openai-adapter` defines CultCache `DatabaseEntry` request/event/receipt/auth-status documents with no Codex app-server or generic JSON dependency. `epiphany-openai-codex-spine` owns all direct Codex auth/model-transport imports for the native OpenAI path: it exposes `default_codex_home` and `auth_manager`, projects `AuthManager` / `CodexAuth` into typed `EpiphanyOpenAiAdapterStatus`, maps typed `EpiphanyOpenAiModelRequest` into Codex API `ResponsesApiRequest`, resolves auth/provider through keeper Codex crates, opens HTTP Responses streams through `codex-api`, maps deltas / completion into typed stream events and receipts, and no longer directly depends on `codex-app-server-protocol` just to name auth mode. `epiphany-openai-runtime` no longer depends directly on `codex-login`; it writes OpenAI status/request/stream-event/receipt records plus runtime sessions/jobs/results/events into `epiphany-core::runtime_spine_cache`, can emit the assistant text artifact for legacy result consumers, is now the default executor for startup-only repo birth specialists, and now has `run-worker` to load a durable `EpiphanyRuntimeWorkerLaunchRequest`, call the typed OpenAI runtime through the spine, persist typed `EpiphanyRuntimeRoleWorkerResult` / `EpiphanyRuntimeReorientWorkerResult` documents, and complete the original heartbeat/specialist runtime job without Codex worker execution; `codex exec` survives only as explicit fallback in repo-birth startup. `epiphany-mvp-coordinator` now invokes `epiphany-openai-runtime run-worker` for launched runtime job ids and no longer creates a second coordinator-owned shadow runtime job/result as a compensator. `epiphany-core::plan_runtime_spine_heartbeat_launch` validates launch contracts/conflicts and projects durable job bindings/runtime links; `epiphany-core::open_runtime_spine_heartbeat_job` owns the initialize-runtime/ensure-session/create-job sequence and now persists `EpiphanyRuntimeWorkerLaunchRequest` CultCache records keyed by runtime job id, with indexed kind/contract fields plus MessagePack-encoded typed launch documents instead of discarding work intent after queue receipt creation; `roleResult` and `reorientResult` now prefer typed worker result documents and fall back only to generic job summaries for older receipts; `epiphany-core::EpiphanyStateUpdate`, `epiphany_state_update_validation_errors`, and `apply_epiphany_state_update` own state-update document shape and mutation law while `codex-core` calls them for compatibility. Vendored `CodexThread::epiphany_launch_job` is now mostly revision check, persistence validation, launch request handoff, and rollout/session writeback for the compatibility route. Vendored `codex-core` no longer has `epiphany_distillation`, `epiphany_promotion`, `epiphany_proposal`, or `epiphany_retrieval` husk modules; it re-exports native surfaces from `epiphany-core` directly, and now owns only the real Codex rollout adapter because it is a host seam. `epiphany-runtime-spine` advertises OpenAI adapter status/model-request/stream-event/receipt CultNet schemas and mutation contracts, so the native caller now has a real storage route instead of only JSON-RPC. MCP itself is correctly JSON at its protocol edge; the target is typed Epiphany intent/result/receipt wrappers around MCP, not replacing MCP JSON. The current OpenAI spine still pulls `codex-api` and a large transport dependency stack, so its next cut is dependency starvation after richer live callers move. latest_cut: > The remaining live Codex skill config/protocol/analytics residues have now been cut below the deleted `codex-core-skills` crate. `[skills]` TOML @@ -302,6 +302,10 @@ current_status: templates, app-server docs/tests/warnings, TUI tooltips/placeholders, agent-tool schema text, v1 docs, stale test arms, and skill feature flags/schema entries no longer advertise or regenerate Codex skills. + App instruction prompt compatibility is also cut: `` + constants/snapshot handling are gone, and old `codex_apps` MCP fixtures now + use neutral MCP server names so tests do not launder deleted Codex Apps + branding back into the harness. surfaces; those are compatibility stumps to classify next, not keeper auth/model-spine machinery. next_action: Continue starving coordinator/runtime execution and operator surfaces off app-server JSON-RPC and out of `codex_message_processor.rs`; keep the vestigial Codex organ narrowed to subscription auth/model transport. diff --git a/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs b/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs index 4e32bb34..ae518f92 100644 --- a/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs +++ b/vendor/codex/codex-rs/app-server-protocol/src/protocol/common.rs @@ -1424,7 +1424,7 @@ mod tests { let params = v2::McpServerElicitationRequestParams { thread_id: "thr_123".to_string(), turn_id: Some("turn_123".to_string()), - server_name: "codex_apps".to_string(), + server_name: "demo_mcp".to_string(), request: v2::McpServerElicitationRequest::Form { meta: None, message: "Allow this request?".to_string(), @@ -1443,7 +1443,7 @@ mod tests { "params": { "threadId": "thr_123", "turnId": "turn_123", - "serverName": "codex_apps", + "serverName": "demo_mcp", "mode": "form", "_meta": null, "message": "Allow this request?", diff --git a/vendor/codex/codex-rs/app-server/tests/suite/v2/mcp_resource.rs b/vendor/codex/codex-rs/app-server/tests/suite/v2/mcp_resource.rs index a347d87f..3468a81d 100644 --- a/vendor/codex/codex-rs/app-server/tests/suite/v2/mcp_resource.rs +++ b/vendor/codex/codex-rs/app-server/tests/suite/v2/mcp_resource.rs @@ -111,7 +111,7 @@ stream_max_retries = 0 let read_request_id = mcp .send_mcp_resource_read_request(McpResourceReadParams { thread_id: Some(thread.id), - server: "codex_apps".to_string(), + server: "demo_mcp".to_string(), uri: TEST_RESOURCE_URI.to_string(), }) .await?; @@ -163,7 +163,7 @@ apps = true let read_request_id = mcp .send_mcp_resource_read_request(McpResourceReadParams { thread_id: None, - server: "codex_apps".to_string(), + server: "demo_mcp".to_string(), uri: TEST_RESOURCE_URI.to_string(), }) .await?; @@ -225,7 +225,7 @@ async fn mcp_resource_read_returns_error_for_unknown_thread() -> Result<()> { request_id: RequestId::Integer(1), params: McpResourceReadParams { thread_id: Some("00000000-0000-4000-8000-000000000000".to_string()), - server: "codex_apps".to_string(), + server: "demo_mcp".to_string(), uri: TEST_RESOURCE_URI.to_string(), }, }) @@ -254,7 +254,7 @@ async fn start_resource_apps_mcp_server() -> Result<(String, JoinHandle<()>)> { Arc::new(LocalSessionManager::default()), StreamableHttpServerConfig::default(), ); - let router = Router::new().nest_service("/api/codex/apps", mcp_service); + let router = Router::new().nest_service("/api/mcp/demo", mcp_service); let apps_server_handle = tokio::spawn(async move { let _ = axum::serve(listener, router).await; }); diff --git a/vendor/codex/codex-rs/app-server/tests/suite/v2/mcp_server_elicitation.rs b/vendor/codex/codex-rs/app-server/tests/suite/v2/mcp_server_elicitation.rs index 127ae250..49d42342 100644 --- a/vendor/codex/codex-rs/app-server/tests/suite/v2/mcp_server_elicitation.rs +++ b/vendor/codex/codex-rs/app-server/tests/suite/v2/mcp_server_elicitation.rs @@ -66,7 +66,7 @@ use tokio::time::timeout; const DEFAULT_READ_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(10); const CONNECTOR_ID: &str = "calendar"; const CONNECTOR_NAME: &str = "Calendar"; -const TOOL_NAMESPACE: &str = "mcp__codex_apps__calendar"; +const TOOL_NAMESPACE: &str = "mcp__calendar_mcp__calendar"; const CALLABLE_TOOL_NAME: &str = "_confirm_action"; const TOOL_NAME: &str = "calendar_confirm_action"; const TOOL_CALL_ID: &str = "call-calendar-confirm"; @@ -202,7 +202,7 @@ async fn mcp_server_elicitation_round_trip() -> Result<()> { McpServerElicitationRequestParams { thread_id: thread.id.clone(), turn_id: Some(turn.id.clone()), - server_name: "codex_apps".to_string(), + server_name: "demo_mcp".to_string(), request: McpServerElicitationRequest::Form { meta: None, message: ELICITATION_MESSAGE.to_string(), @@ -407,7 +407,7 @@ async fn start_apps_server() -> Result<(String, JoinHandle<()>)> { get(list_directory_connectors), ) .with_state(state) - .nest_service("/api/codex/apps", mcp_service); + .nest_service("/api/mcp/demo", mcp_service); let handle = tokio::spawn(async move { let _ = axum::serve(listener, router).await; diff --git a/vendor/codex/codex-rs/core/src/tools/registry_tests.rs b/vendor/codex/codex-rs/core/src/tools/registry_tests.rs index f4fb72e7..b355c092 100644 --- a/vendor/codex/codex-rs/core/src/tools/registry_tests.rs +++ b/vendor/codex/codex-rs/core/src/tools/registry_tests.rs @@ -19,7 +19,7 @@ impl ToolHandler for TestHandler { fn handler_looks_up_namespaced_aliases_explicitly() { let plain_handler = Arc::new(TestHandler) as Arc; let namespaced_handler = Arc::new(TestHandler) as Arc; - let namespace = "mcp__codex_apps__gmail"; + let namespace = "mcp__mail_mcp__gmail"; let tool_name = "gmail_get_recent_emails"; let plain_name = codex_tools::ToolName::plain(tool_name); let namespaced_name = codex_tools::ToolName::namespaced(namespace, tool_name); @@ -31,7 +31,7 @@ fn handler_looks_up_namespaced_aliases_explicitly() { let plain = registry.handler(&plain_name); let namespaced = registry.handler(&namespaced_name); let missing_namespaced = registry.handler(&codex_tools::ToolName::namespaced( - "mcp__codex_apps__calendar", + "mcp__calendar_mcp__calendar", tool_name, )); diff --git a/vendor/codex/codex-rs/core/src/tools/router_tests.rs b/vendor/codex/codex-rs/core/src/tools/router_tests.rs index db4ad0b3..417f81b3 100644 --- a/vendor/codex/codex-rs/core/src/tools/router_tests.rs +++ b/vendor/codex/codex-rs/core/src/tools/router_tests.rs @@ -239,7 +239,7 @@ async fn build_tool_call_uses_namespace_for_registry_name() -> anyhow::Result<() ResponseItem::FunctionCall { id: None, name: tool_name.clone(), - namespace: Some("mcp__codex_apps__calendar".to_string()), + namespace: Some("mcp__calendar_mcp__calendar".to_string()), arguments: "{}".to_string(), call_id: "call-namespace".to_string(), }, @@ -249,7 +249,7 @@ async fn build_tool_call_uses_namespace_for_registry_name() -> anyhow::Result<() assert_eq!( call.tool_name, - ToolName::namespaced("mcp__codex_apps__calendar", tool_name) + ToolName::namespaced("mcp__calendar_mcp__calendar", tool_name) ); assert_eq!(call.call_id, "call-namespace"); match call.payload { diff --git a/vendor/codex/codex-rs/core/src/tools/spec_tests.rs b/vendor/codex/codex-rs/core/src/tools/spec_tests.rs index 9e918666..73dcd764 100644 --- a/vendor/codex/codex-rs/core/src/tools/spec_tests.rs +++ b/vendor/codex/codex-rs/core/src/tools/spec_tests.rs @@ -106,7 +106,7 @@ fn deferred_responses_api_tool_serializes_with_defer_loading() { let serialized = serde_json::to_value(ToolSpec::Function( mcp_tool_to_deferred_responses_api_tool( - &ToolName::namespaced("mcp__codex_apps__", "lookup_order"), + &ToolName::namespaced("mcp__demo_mcp__", "lookup_order"), &tool, ) .expect("convert deferred tool"), @@ -808,11 +808,11 @@ async fn search_tool_description_falls_back_to_connector_name_without_descriptio &tools_config, /*mcp_tools*/ None, Some(HashMap::from([( - "mcp__codex_apps__calendar_create_event".to_string(), + "mcp__calendar_mcp__calendar_create_event".to_string(), ToolInfo { - server_name: "codex_apps".to_string(), + server_name: "demo_mcp".to_string(), callable_name: "_create_event".to_string(), - callable_namespace: "mcp__codex_apps__calendar".to_string(), + callable_namespace: "mcp__calendar_mcp__calendar".to_string(), server_instructions: None, tool: mcp_tool( "calendar_create_event", @@ -858,11 +858,11 @@ async fn search_tool_registers_namespaced_mcp_tool_aliases() { /*mcp_tools*/ None, Some(HashMap::from([ ( - "mcp__codex_apps__calendar_create_event".to_string(), + "mcp__calendar_mcp__calendar_create_event".to_string(), ToolInfo { - server_name: "codex_apps".to_string(), + server_name: "demo_mcp".to_string(), callable_name: "_create_event".to_string(), - callable_namespace: "mcp__codex_apps__calendar".to_string(), + callable_namespace: "mcp__calendar_mcp__calendar".to_string(), server_instructions: None, tool: mcp_tool( "calendar-create-event", @@ -875,11 +875,11 @@ async fn search_tool_registers_namespaced_mcp_tool_aliases() { }, ), ( - "mcp__codex_apps__calendar_list_events".to_string(), + "mcp__calendar_mcp__calendar_list_events".to_string(), ToolInfo { - server_name: "codex_apps".to_string(), + server_name: "demo_mcp".to_string(), callable_name: "_list_events".to_string(), - callable_namespace: "mcp__codex_apps__calendar".to_string(), + callable_namespace: "mcp__calendar_mcp__calendar".to_string(), server_instructions: None, tool: mcp_tool( "calendar-list-events", @@ -909,7 +909,7 @@ async fn search_tool_registers_namespaced_mcp_tool_aliases() { ) .build(); - let app_alias = ToolName::namespaced("mcp__codex_apps__calendar", "_create_event"); + let app_alias = ToolName::namespaced("mcp__calendar_mcp__calendar", "_create_event"); let mcp_alias = ToolName::namespaced("mcp__rmcp__", "echo"); assert!(registry.has_handler(&ToolName::plain(TOOL_SEARCH_TOOL_NAME))); @@ -972,7 +972,7 @@ async fn unavailable_mcp_tools_are_exposed_as_dummy_function_tools() { windows_sandbox_level: WindowsSandboxLevel::Disabled, }); - let unavailable_tool = ToolName::namespaced("mcp__codex_apps__calendar", "_create_event"); + let unavailable_tool = ToolName::namespaced("mcp__calendar_mcp__calendar", "_create_event"); let (tools, registry) = build_specs_with_unavailable_tools( &tools_config, /*mcp_tools*/ None, @@ -982,7 +982,7 @@ async fn unavailable_mcp_tools_are_exposed_as_dummy_function_tools() { ) .build(); - let tool = find_tool(&tools, "mcp__codex_apps__calendar_create_event"); + let tool = find_tool(&tools, "mcp__calendar_mcp__calendar_create_event"); let ToolSpec::Function(ResponsesApiTool { description, parameters, @@ -997,10 +997,10 @@ async fn unavailable_mcp_tools_are_exposed_as_dummy_function_tools() { Some(AdditionalProperties::Boolean(false)) ); assert!(registry.has_handler(&ToolName::namespaced( - "mcp__codex_apps__calendar", + "mcp__calendar_mcp__calendar", "_create_event" ))); - assert!(!registry.has_handler(&ToolName::plain("mcp__codex_apps__calendar_create_event"))); + assert!(!registry.has_handler(&ToolName::plain("mcp__calendar_mcp__calendar_create_event"))); } #[tokio::test] diff --git a/vendor/codex/codex-rs/core/src/unavailable_tool.rs b/vendor/codex/codex-rs/core/src/unavailable_tool.rs index 39ba21f9..782aa37a 100644 --- a/vendor/codex/codex-rs/core/src/unavailable_tool.rs +++ b/vendor/codex/codex-rs/core/src/unavailable_tool.rs @@ -62,7 +62,7 @@ mod tests { let input = vec![ function_call("shell", /*namespace*/ None), function_call("mcp__server__lookup", /*namespace*/ None), - function_call("_create_event", Some("mcp__codex_apps__calendar")), + function_call("_create_event", Some("mcp__calendar_mcp__calendar")), ]; let tools = collect_unavailable_called_tools(&input, &HashSet::new()); @@ -70,7 +70,7 @@ mod tests { assert_eq!( tools, vec![ - ToolName::namespaced("mcp__codex_apps__calendar", "_create_event"), + ToolName::namespaced("mcp__calendar_mcp__calendar", "_create_event"), ToolName::plain("mcp__server__lookup"), ] ); diff --git a/vendor/codex/codex-rs/core/tests/common/apps_test_server.rs b/vendor/codex/codex-rs/core/tests/common/apps_test_server.rs index 757fc146..8d8715b5 100644 --- a/vendor/codex/codex-rs/core/tests/common/apps_test_server.rs +++ b/vendor/codex/codex-rs/core/tests/common/apps_test_server.rs @@ -121,7 +121,7 @@ async fn mount_streamable_http_json_rpc( searchable: bool, ) { Mock::given(method("POST")) - .and(path_regex("^/api/codex/apps/?$")) + .and(path_regex("^/api/mcp/demo/?$")) .respond_with(CodexAppsJsonRpcResponder { connector_name, connector_description, @@ -209,7 +209,7 @@ impl Respond for CodexAppsJsonRpcResponder { "connector_name": self.connector_name.clone(), "connector_description": self.connector_description.clone(), "openai/outputTemplate": CALENDAR_CREATE_EVENT_MCP_APP_RESOURCE_URI, - "_codex_apps": { + "_mcp_bridge": { "resource_uri": CALENDAR_CREATE_EVENT_RESOURCE_URI, "contains_mcp_source": true, "connector_id": CONNECTOR_ID @@ -234,7 +234,7 @@ impl Respond for CodexAppsJsonRpcResponder { "connector_id": CONNECTOR_ID, "connector_name": self.connector_name.clone(), "connector_description": self.connector_description.clone(), - "_codex_apps": { + "_mcp_bridge": { "resource_uri": CALENDAR_LIST_EVENTS_RESOURCE_URI, "contains_mcp_source": true, "connector_id": CONNECTOR_ID @@ -267,7 +267,7 @@ impl Respond for CodexAppsJsonRpcResponder { "connector_name": self.connector_name.clone(), "connector_description": self.connector_description.clone(), "openai/fileParams": ["file"], - "_codex_apps": { + "_mcp_bridge": { "resource_uri": DOCUMENT_EXTRACT_TEXT_RESOURCE_URI, "contains_mcp_source": true, "connector_id": CONNECTOR_ID @@ -325,7 +325,7 @@ impl Respond for CodexAppsJsonRpcResponder { .pointer("/params/arguments/file/file_id") .and_then(Value::as_str) .unwrap_or_default(); - let codex_apps_meta = body.pointer("/params/_meta/_codex_apps").cloned(); + let demo_mcp_meta = body.pointer("/params/_meta/_mcp_bridge").cloned(); ResponseTemplate::new(200).set_body_json(json!({ "jsonrpc": "2.0", @@ -336,7 +336,7 @@ impl Respond for CodexAppsJsonRpcResponder { "text": format!("called {tool_name} for {title} at {starts_at} with {file_id}") }], "structuredContent": { - "_codex_apps": codex_apps_meta, + "_mcp_bridge": demo_mcp_meta, }, "isError": false } diff --git a/vendor/codex/codex-rs/core/tests/common/context_snapshot.rs b/vendor/codex/codex-rs/core/tests/common/context_snapshot.rs index 5d2d970a..779f59c9 100644 --- a/vendor/codex/codex-rs/core/tests/common/context_snapshot.rs +++ b/vendor/codex/codex-rs/core/tests/common/context_snapshot.rs @@ -1,7 +1,6 @@ use serde_json::Value; use crate::responses::ResponsesRequest; -use codex_protocol::protocol::APPS_INSTRUCTIONS_OPEN_TAG; #[derive(Debug, Clone, Copy, Default, PartialEq, Eq)] pub enum ContextSnapshotRenderMode { @@ -85,12 +84,6 @@ pub fn format_response_items_snapshot(items: &[Value], options: &ContextSnapshot .iter() .filter_map(|entry| { if let Some(text) = entry.get("text").and_then(Value::as_str) { - if options.strip_capability_instructions - && role == "developer" - && is_capability_instruction_text(text) - { - return None; - } if options.strip_agents_md_user_context && role == "user" && text.starts_with("# AGENTS.md instructions for ") @@ -268,9 +261,6 @@ fn canonicalize_snapshot_text(text: &str) -> String { if text.starts_with("") { return "".to_string(); } - if text.starts_with(APPS_INSTRUCTIONS_OPEN_TAG) { - return "".to_string(); - } if text.starts_with("# AGENTS.md instructions for ") { return "".to_string(); } @@ -315,10 +305,6 @@ fn canonicalize_snapshot_text(text: &str) -> String { text.to_string() } -fn is_capability_instruction_text(text: &str) -> bool { - text.starts_with(APPS_INSTRUCTIONS_OPEN_TAG) -} - #[cfg(test)] mod tests { use super::ContextSnapshotOptions; @@ -387,49 +373,6 @@ mod tests { assert_eq!(rendered, "00:message/user:"); } - #[test] - fn redacted_text_mode_keeps_app_instruction_placeholder() { - let items = vec![json!({ - "type": "message", - "role": "developer", - "content": [{ - "type": "input_text", - "text": "\n## Apps\nbody\n" - }] - })]; - - let rendered = format_response_items_snapshot( - &items, - &ContextSnapshotOptions::default().render_mode(ContextSnapshotRenderMode::RedactedText), - ); - - assert_eq!( - rendered, - "00:message/developer:" - ); - } - - #[test] - fn strip_capability_instructions_omits_capability_parts_from_developer_messages() { - let items = vec![json!({ - "type": "message", - "role": "developer", - "content": [ - { "type": "input_text", "text": "\n..." }, - { "type": "input_text", "text": "\n## Apps\n..." } - ] - })]; - - let rendered = format_response_items_snapshot( - &items, - &ContextSnapshotOptions::default() - .render_mode(ContextSnapshotRenderMode::RedactedText) - .strip_capability_instructions(), - ); - - assert_eq!(rendered, "00:message/developer:"); - } - #[test] fn strip_agents_md_user_context_omits_agents_fragment_from_user_messages() { let items = vec![json!({ diff --git a/vendor/codex/codex-rs/core/tests/suite/code_mode.rs b/vendor/codex/codex-rs/core/tests/suite/code_mode.rs index 1e76774d..748803e5 100644 --- a/vendor/codex/codex-rs/core/tests/suite/code_mode.rs +++ b/vendor/codex/codex-rs/core/tests/suite/code_mode.rs @@ -366,7 +366,7 @@ async fn code_mode_only_guides_all_tools_search_and_calls_deferred_app_tools() - "exec", r#" const tool = ALL_TOOLS.find( - ({ name }) => name === "mcp__codex_apps__calendar_timezone_option_99" + ({ name }) => name === "mcp__calendar_mcp__calendar_timezone_option_99" ); if (!tool) { text(JSON.stringify({ found: false })); diff --git a/vendor/codex/codex-rs/core/tests/suite/search_tool.rs b/vendor/codex/codex-rs/core/tests/suite/search_tool.rs index 7b09bf8e..45b847f2 100644 --- a/vendor/codex/codex-rs/core/tests/suite/search_tool.rs +++ b/vendor/codex/codex-rs/core/tests/suite/search_tool.rs @@ -47,9 +47,9 @@ const SEARCH_TOOL_DESCRIPTION_SNIPPETS: [&str; 2] = [ "- Calendar: Plan events and manage your calendar.", ]; const TOOL_SEARCH_TOOL_NAME: &str = "tool_search"; -const CALENDAR_CREATE_TOOL: &str = "mcp__codex_apps__calendar_create_event"; -const CALENDAR_LIST_TOOL: &str = "mcp__codex_apps__calendar_list_events"; -const SEARCH_CALENDAR_NAMESPACE: &str = "mcp__codex_apps__calendar"; +const CALENDAR_CREATE_TOOL: &str = "mcp__calendar_mcp__calendar_create_event"; +const CALENDAR_LIST_TOOL: &str = "mcp__calendar_mcp__calendar_list_events"; +const SEARCH_CALENDAR_NAMESPACE: &str = "mcp__calendar_mcp__calendar"; const SEARCH_CALENDAR_CREATE_TOOL: &str = "_create_event"; const SEARCH_CALENDAR_LIST_TOOL: &str = "_list_events"; @@ -536,7 +536,7 @@ async fn tool_search_returns_deferred_tools_without_follow_up_tool_injection() - assert_eq!( end.invocation, McpInvocation { - server: "codex_apps".to_string(), + server: "demo_mcp".to_string(), tool: "calendar_create_event".to_string(), arguments: Some(json!({ "title": "Lunch", @@ -550,7 +550,7 @@ async fn tool_search_returns_deferred_tools_without_follow_up_tool_injection() - .expect("tool call should succeed") .structured_content, Some(json!({ - "_codex_apps": { + "_mcp_bridge": { "resource_uri": CALENDAR_CREATE_EVENT_RESOURCE_URI, "contains_mcp_source": true, "connector_id": "calendar", @@ -573,14 +573,14 @@ async fn tool_search_returns_deferred_tools_without_follow_up_tool_injection() - .into_iter() .find_map(|request| { let body: Value = serde_json::from_slice(&request.body).ok()?; - (request.url.path() == "/api/codex/apps" + (request.url.path() == "/api/mcp/demo" && body.get("method").and_then(Value::as_str) == Some("tools/call")) .then_some(body) }) .expect("apps tools/call request should be recorded"); assert_eq!( - apps_tool_call.pointer("/params/_meta/_codex_apps"), + apps_tool_call.pointer("/params/_meta/_mcp_bridge"), Some(&json!({ "resource_uri": CALENDAR_CREATE_EVENT_RESOURCE_URI, "contains_mcp_source": true, diff --git a/vendor/codex/codex-rs/protocol/src/models.rs b/vendor/codex/codex-rs/protocol/src/models.rs index 0bf40973..15b3f9a2 100644 --- a/vendor/codex/codex-rs/protocol/src/models.rs +++ b/vendor/codex/codex-rs/protocol/src/models.rs @@ -1614,8 +1614,8 @@ mod tests { fn function_call_deserializes_optional_namespace() { let item: ResponseItem = serde_json::from_value(serde_json::json!({ "type": "function_call", - "name": "mcp__codex_apps__gmail_get_recent_emails", - "namespace": "mcp__codex_apps__gmail", + "name": "mcp__mail_mcp__gmail_get_recent_emails", + "namespace": "mcp__mail_mcp__gmail", "arguments": "{\"top_k\":5}", "call_id": "call-1", })) @@ -1625,8 +1625,8 @@ mod tests { item, ResponseItem::FunctionCall { id: None, - name: "mcp__codex_apps__gmail_get_recent_emails".to_string(), - namespace: Some("mcp__codex_apps__gmail".to_string()), + name: "mcp__mail_mcp__gmail_get_recent_emails".to_string(), + namespace: Some("mcp__mail_mcp__gmail".to_string()), arguments: "{\"top_k\":5}".to_string(), call_id: "call-1".to_string(), } @@ -2122,7 +2122,7 @@ mod tests { execution: "client".to_string(), tools: vec![serde_json::json!({ "type": "function", - "name": "mcp__codex_apps__calendar_create_event", + "name": "mcp__calendar_mcp__calendar_create_event", "description": "Create a calendar event.", "defer_loading": true, "parameters": { @@ -2143,7 +2143,7 @@ mod tests { execution: "client".to_string(), tools: vec![serde_json::json!({ "type": "function", - "name": "mcp__codex_apps__calendar_create_event", + "name": "mcp__calendar_mcp__calendar_create_event", "description": "Create a calendar event.", "defer_loading": true, "parameters": { @@ -2167,7 +2167,7 @@ mod tests { "execution": "client", "tools": [{ "type": "function", - "name": "mcp__codex_apps__calendar_create_event", + "name": "mcp__calendar_mcp__calendar_create_event", "description": "Create a calendar event.", "defer_loading": true, "parameters": { diff --git a/vendor/codex/codex-rs/protocol/src/protocol.rs b/vendor/codex/codex-rs/protocol/src/protocol.rs index b22413fb..7e29f1aa 100644 --- a/vendor/codex/codex-rs/protocol/src/protocol.rs +++ b/vendor/codex/codex-rs/protocol/src/protocol.rs @@ -92,8 +92,6 @@ pub const USER_INSTRUCTIONS_OPEN_TAG: &str = ""; pub const USER_INSTRUCTIONS_CLOSE_TAG: &str = ""; pub const ENVIRONMENT_CONTEXT_OPEN_TAG: &str = ""; pub const ENVIRONMENT_CONTEXT_CLOSE_TAG: &str = ""; -pub const APPS_INSTRUCTIONS_OPEN_TAG: &str = ""; -pub const APPS_INSTRUCTIONS_CLOSE_TAG: &str = ""; pub const COLLABORATION_MODE_OPEN_TAG: &str = ""; pub const COLLABORATION_MODE_CLOSE_TAG: &str = ""; pub const EPIPHANY_STATE_OPEN_TAG: &str = ""; diff --git a/vendor/codex/codex-rs/tools/src/responses_api_tests.rs b/vendor/codex/codex-rs/tools/src/responses_api_tests.rs index 3ce13ebf..ba82ec0b 100644 --- a/vendor/codex/codex-rs/tools/src/responses_api_tests.rs +++ b/vendor/codex/codex-rs/tools/src/responses_api_tests.rs @@ -108,7 +108,7 @@ fn mcp_tool_to_deferred_responses_api_tool_sets_defer_loading() { assert_eq!( mcp_tool_to_deferred_responses_api_tool( - &ToolName::namespaced("mcp__codex_apps__", "lookup_order"), + &ToolName::namespaced("mcp__demo_mcp__", "lookup_order"), &tool, ) .expect("convert deferred tool"), @@ -133,7 +133,7 @@ fn mcp_tool_to_deferred_responses_api_tool_sets_defer_loading() { #[test] fn loadable_tool_spec_namespace_serializes_with_deferred_child_tools() { let namespace = LoadableToolSpec::Namespace(ResponsesApiNamespace { - name: "mcp__codex_apps__calendar".to_string(), + name: "mcp__calendar_mcp__calendar".to_string(), description: "Plan events".to_string(), tools: vec![ResponsesApiNamespaceTool::Function(ResponsesApiTool { name: "create_event".to_string(), @@ -155,7 +155,7 @@ fn loadable_tool_spec_namespace_serializes_with_deferred_child_tools() { value, json!({ "type": "namespace", - "name": "mcp__codex_apps__calendar", + "name": "mcp__calendar_mcp__calendar", "description": "Plan events", "tools": [ { diff --git a/vendor/codex/codex-rs/tools/src/tool_registry_plan_tests.rs b/vendor/codex/codex-rs/tools/src/tool_registry_plan_tests.rs index 93416cf8..a42c47a3 100644 --- a/vendor/codex/codex-rs/tools/src/tool_registry_plan_tests.rs +++ b/vendor/codex/codex-rs/tools/src/tool_registry_plan_tests.rs @@ -34,7 +34,7 @@ use serde_json::json; use std::collections::BTreeMap; use std::collections::HashMap; -const CODEX_APPS_MCP_SERVER_NAME: &str = "codex_apps"; +const DEMO_MCP_SERVER_NAME: &str = "demo_mcp"; const DEFAULT_AGENT_TYPE_DESCRIPTION: &str = "Test agent type description."; const DEFAULT_WAIT_TIMEOUT_MS: i64 = 30_000; const MIN_WAIT_TIMEOUT_MS: i64 = 10_000; @@ -1208,7 +1208,7 @@ fn search_tool_description_lists_each_mcp_source_once() { &tools_config, Some(HashMap::from([ ( - ToolName::namespaced("mcp__codex_apps__calendar", "_create_event"), + ToolName::namespaced("mcp__calendar_mcp__calendar", "_create_event"), mcp_tool( "calendar_create_event", "Create calendar event", @@ -1223,22 +1223,22 @@ fn search_tool_description_lists_each_mcp_source_once() { Some(vec![ deferred_mcp_tool( "_create_event", - "mcp__codex_apps__calendar", - CODEX_APPS_MCP_SERVER_NAME, + "mcp__calendar_mcp__calendar", + DEMO_MCP_SERVER_NAME, Some("Calendar"), Some("Plan events and manage your calendar."), ), deferred_mcp_tool( "_list_events", - "mcp__codex_apps__calendar", - CODEX_APPS_MCP_SERVER_NAME, + "mcp__calendar_mcp__calendar", + DEMO_MCP_SERVER_NAME, Some("Calendar"), Some("Plan events and manage your calendar."), ), deferred_mcp_tool( "_search_threads", - "mcp__codex_apps__gmail", - CODEX_APPS_MCP_SERVER_NAME, + "mcp__mail_mcp__gmail", + DEMO_MCP_SERVER_NAME, Some("Gmail"), Some("Find and summarize email threads."), ), @@ -1270,7 +1270,7 @@ fn search_tool_description_lists_each_mcp_source_once() { assert!(!description.contains("mcp__rmcp__echo")); assert!(handlers.contains(&ToolHandlerSpec { - name: ToolName::namespaced("mcp__codex_apps__calendar", "_create_event"), + name: ToolName::namespaced("mcp__calendar_mcp__calendar", "_create_event"), kind: ToolHandlerKind::Mcp, })); assert!(handlers.contains(&ToolHandlerSpec { @@ -1284,8 +1284,8 @@ fn search_tool_requires_model_capability_and_enabled_feature() { let model_info = search_capable_model_info(); let deferred_mcp_tools = Some(vec![deferred_mcp_tool( "_create_event", - "mcp__codex_apps__calendar", - CODEX_APPS_MCP_SERVER_NAME, + "mcp__calendar_mcp__calendar", + DEMO_MCP_SERVER_NAME, Some("Calendar"), /*connector_description*/ None, )]);