Skip to content

feat(setup): expose explicit MCP catalog profile selection - #9354

Merged
kaoru0822-kitauji merged 1 commit into
mainfrom
codex/mcp-catalog-setup
Nov 12, 2026
Merged

kaoru0822-kitauji merged 1 commit into
mainfrom
codex/mcp-catalog-setup

Conversation

@kaoru0822-kitauji

Copy link
Copy Markdown
Collaborator

Make the existing progressive catalog selectable through setup:

rea setup --client codex --tool-catalog-profile hot-cold --dry-run
rea setup --client codex --tool-catalog-profile hot-cold

The resolved plan shows REA_MCP_TOOL_CATALOG_PROFILE=hot-cold before approval. Existing registration transactions preserve unrelated configuration, backups and idempotency. Omission preserves a saved selection and leaves new registrations on full; --tool-catalog-profile full restores upfront advertisement. The CLI reuses the canonical profile enum and passes the explicit choice through the shared setup workflow. Invalid profiles fail before writes.

Part of #9347 / #5861. Independent of #9351 and #9353; this PR targets main.

Default decision and measured scope

Do not infer refresh from a client name or switch it on automatically. #9046 verified Codex 0.165.0 only with features.mcp_tool_list_changed=true. The installed Codex 0.167.0 reports that feature as under development and false; this was a feature-inventory check, not a new refresh trial. The documented FastMCP trial exercised explicit refreshes, not automatic refresh. Other clients remain unverified. Existing full defaults therefore remain in place, and setup preserves client feature/approval settings.

A real setup-generated Codex registration launched the built stdio server with each saved profile: 246 tools / 4,407,654 bytes → 5 tools / 98,050 bytes in initial tools/list result JSON. This exposes an existing opt-in saving, not a new server performance claim. Whole-task context, CPU, elapsed time and sampled family RSS comparisons, including discovery costs, are reported separately in #9353. Transport bytes do not establish model-token savings.

Validation

Node 24.22.1 / npm 11.16.0, macOS arm64:

Scope decision: not applicable; existing user-approved registration configuration only. No client refresh verification, provider installation or real deep-provider claim. Automatic defaults remain an open question until a reliable client capability boundary is established.

Author readiness

Human owner: @kaoru0822-kitauji

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@greptile-apps

greptile-apps Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The reviewed changes appear safe to merge.

Summary

Adds --tool-catalog-profile to rea setup and carries the explicit choice through the shared setup workflow.

  • Setup can choose the catalog profile for each client registration.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A["--tool-catalog-profile"] --> B["Check canonical enum"]
  B --> C["Merge explicit selection"]
  C --> D["Show setup plan"]
  D --> E{"Approved?"}
  E -->|No| F["Leave files unchanged"]
  E -->|Yes| G["Existing backup and write transaction"]
  G --> H["Restart client with saved profile"]
Loading

Reviews (2) · Last reviewed commit: "feat(setup): expose explicit MCP catalog..." · Reviewed by Greptile

@kaoru0822-kitauji
kaoru0822-kitauji marked this pull request as ready for review November 12, 2026 13:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T13:57:12.248799Z b180055 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kaoru0822-kitauji
kaoru0822-kitauji merged commit edc9304 into main Nov 12, 2026
51 of 52 checks passed
@kaoru0822-kitauji
kaoru0822-kitauji deleted the codex/mcp-catalog-setup branch November 12, 2026 13:52
@morluto morluto added area: setup Setup, packaging, upgrade, install, Doctor, and client registration enhancement New feature or request labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants