mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Let unrelated tools run while MCP servers start (#35937)
## Why Cached MCP definitions can make a tool callable before its server has finished starting. Waiting for that server while holding the tool execution gate blocks unrelated calls in the same response. ## What changed - Expose the owning MCP server through tool runtime metadata, including tools with exposure overrides. - Refresh MCP state and wait for that specific server before entering the parallel execution gate. ## Testing Extend the cached MCP tool regression test to verify that an unrelated plan update completes while MCP startup remains pending. GitOrigin-RevId: 884d154bc403dfc1d347d265da3d6a887948e7b6
This commit is contained in:
1 parent
fe01054a28
commit
fbf666fa98
7 files changed
+91
-6
No files matched your search
@@ -163,6 +163,10 @@ impl McpHandler {
|
||||
}
|
||||
|
||||
impl CoreToolRuntime for McpHandler {
|
||||
fn mcp_server_name(&self) -> Option<&str> {
|
||||
Some(&self.tool_info.server_name)
|
||||
}
|
||||
|
||||
fn telemetry_tags<'a>(
|
||||
&'a self,
|
||||
_invocation: &'a ToolInvocation,
|
||||
|
||||
Reference in new issue
Block a user