Expose cached MCP tools before server startup - #35590
Merged
copyberry[bot] merged 1 commit intoJul 27, 2026
Merged
Conversation
## Why Cached MCP definitions can be supplied to inference without waiting for the server to finish initializing. ## What changed - Publish cached tools while startup is still in progress, clearing their potentially stale read-only hint. - Wait for the selected server to start before executing a tool call, then prepare the call against the refreshed live binding. - Keep cached tools visible in a binding even when no live client is available, while rejecting attempts to prepare those calls. ## Testing - Cover cached-tool visibility before startup and replacement with live tool metadata afterward. - Verify cached definitions reach inference before MCP initialization and that calls unavailable in the live catalog return the expected model-visible error. GitOrigin-RevId: 3aae8f474c344ccdc5e08fe321bbad21d85bffd1
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/3aae8f474c344ccdc5e08fe321bbad21d85bffd1
branch
from
July 27, 2026 10:26
ebece86 to
3bbf1fe
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/3aae8f474c344ccdc5e08fe321bbad21d85bffd1
branch
July 27, 2026 10:27
Andrei-Kondrykau
temporarily deployed
to
issue-triage
July 27, 2026 10:49 — with
GitHub Actions
Inactive
Andrei-Kondrykau
temporarily deployed
to
issue-triage
July 27, 2026 10:49 — with
GitHub Actions
Inactive
Andrei-Kondrykau
temporarily deployed
to
issue-triage
July 27, 2026 10:49 — with
GitHub Actions
Inactive
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Expose cached MCP tools before server startup
Why
Cached MCP definitions can be supplied to inference without waiting for the
server to finish initializing.
What changed
potentially stale read-only hint.
prepare the call against the refreshed live binding.
while rejecting attempts to prepare those calls.
Testing
metadata afterward.
calls unavailable in the live catalog return the expected model-visible
error.