[apps] Add gated instructions for Apps. (#10924)

- [x] Add gated instructions for Apps.
This commit is contained in:
Matthew Zeng
2026-02-09 14:48:09 -08:00
committed by GitHub
parent ed977dbeda
commit d90df4761b
6 changed files with 111 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
mod render;
pub(crate) use render::render_apps_section;
+7
View File
@@ -0,0 +1,7 @@
use crate::mcp::CODEX_APPS_MCP_SERVER_NAME;
pub(crate) fn render_apps_section() -> String {
format!(
"## Apps\nApps are mentioned in the prompt in the format `[$app-name](apps://{{connector_id}})`.\nAn app is equivalent to a set of MCP tools within the `{CODEX_APPS_MCP_SERVER_NAME}` MCP.\nWhen you see an app mention, the app's MCP tools are either already provided in `{CODEX_APPS_MCP_SERVER_NAME}`, or do not exist because the user did not install it.\nDo not additionally call list_mcp_resources for apps that are already mentioned."
)
}