Skip to content

[codex] Support ui visibility meta for tools#24700

Merged
gpeal merged 16 commits into
mainfrom
gpeal/mcp-app-only-tool-visibility
May 28, 2026
Merged

[codex] Support ui visibility meta for tools#24700
gpeal merged 16 commits into
mainfrom
gpeal/mcp-app-only-tool-visibility

Conversation

@gpeal
Copy link
Copy Markdown
Collaborator

@gpeal gpeal commented May 27, 2026

Summary

Adds support for the same ui.visibility metadata as resources
spec

@gpeal gpeal changed the title [codex] Keep app-only MCP tools out of model inventory [codex] Support ui visibility meta for tools May 27, 2026
@gpeal gpeal marked this pull request as ready for review May 27, 2026 04:03
Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 176018e41e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/codex-mcp/src/connection_manager.rs Outdated
Comment thread codex-rs/codex-mcp/src/tools.rs Outdated
@gpeal gpeal requested a review from a team as a code owner May 27, 2026 05:40
Comment thread codex-rs/codex-mcp/src/connection_manager_tests.rs Outdated
const MCP_UI_VISIBILITY_META_KEY: &str = "visibility";
const MCP_UI_MODEL_VISIBILITY: &str = "model";

/// Returns whether a tool may be included in model-facing tool declarations.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC the shape here is coming from the most recent MCP Apps spec -- accurate? If so would be good to link to the standard in a comment here to explain the shape of the data used.

Copy link
Copy Markdown
Collaborator

@pakrym-oai pakrym-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but let's add an integration test (test_codex()) that checks that app-only tool isn't visible or runnable by model in direct or code-mode model.

@gpeal gpeal merged commit 577ec03 into main May 28, 2026
31 checks passed
@gpeal gpeal deleted the gpeal/mcp-app-only-tool-visibility branch May 28, 2026 17:24
@github-actions github-actions Bot locked and limited conversation to collaborators May 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants