mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Cache tool catalogs for streamable HTTP MCP servers (#37970)
## Why Subagents should be able to use known HTTP MCP tool definitions without opening a connection until a tool is actually called. ## What changed - Add streamable HTTP configurations to the process-scoped MCP tool catalog cache when their authentication identity can be derived safely. - Fingerprint transport settings, relevant environment variables, protocol mode, plugin status, and client capabilities so catalogs are reused only across equivalent connections. - Keep OAuth and other dynamically resolved credential configurations out of the shared cache. ## Testing - Add an integration test proving that a subagent receives cached HTTP tools without reinitializing the server, then starts its own connection when it calls one. GitOrigin-RevId: bb2787e29e9b71993def31aafd1f0d8f1b728d26
This commit is contained in:
1 parent
41ece455b7
commit
0ca439900e
4 files changed
+193
-28
No files matched your search
@@ -462,8 +462,12 @@ impl McpConnectionSet {
|
||||
&configured_config,
|
||||
&runtime_context,
|
||||
environment.as_ref(),
|
||||
&client_elicitation_capability,
|
||||
&client_mcp_extensions,
|
||||
(&client_elicitation_capability, &client_mcp_extensions),
|
||||
Some((
|
||||
&connection_identity,
|
||||
protocol_mode,
|
||||
server.is_agent_plugin(),
|
||||
)),
|
||||
)
|
||||
} else {
|
||||
None
|
||||
|
||||
Reference in new issue
Block a user