Repository navigation
feat(setup): expose explicit MCP catalog profile selection - #9354
Merged
Merged
Conversation
Contributor
[Medium impact] The reviewed changes appear safe to merge. SummaryAdds
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"]
Reviews (2) · Last reviewed commit: "feat(setup): expose explicit MCP catalog..." · Reviewed by Greptile |
kaoru0822-kitauji
marked this pull request as ready for review
November 12, 2026 13:51
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks done
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make the existing progressive catalog selectable through setup:
The resolved plan shows
REA_MCP_TOOL_CATALOG_PROFILE=hot-coldbefore approval. Existing registration transactions preserve unrelated configuration, backups and idempotency. Omission preserves a saved selection and leaves new registrations onfull;--tool-catalog-profile fullrestores 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/listresult 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:
npm run check:fast,npm run docs:check(including nine README checks),npm run verify:test-discovery, touched formatting and diff checks passed.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