mcp ui collision fixes: route resource reads by origin call

This commit is contained in:
Drew Schuster
2026-07-06 16:41:55 -07:00
committed by fbauer
parent 9732b406e7
commit 247fd27ba8
13 changed files with 777 additions and 10 deletions
+23
View File
@@ -644,6 +644,29 @@ impl CodexThread {
Ok(serde_json::to_value(result)?)
}
pub async fn mcp_server_info(
&self,
server: &str,
) -> Option<codex_protocol::mcp::McpServerInfo> {
self.current_mcp_runtime()
.await
.manager()
.server_info(server)
.await
}
pub async fn mcp_tool_info(&self, server: &str, tool: &str) -> Option<codex_mcp::ToolInfo> {
self.current_mcp_runtime()
.await
.manager()
.list_all_tools()
.await
.into_iter()
.find(|tool_info| {
tool_info.server_name == server && tool_info.tool.name.as_ref() == tool
})
}
pub async fn call_mcp_tool(
&self,
server: &str,