mcp resource read: remove unused functions

This commit is contained in:
fbauer
2026-07-06 16:41:56 -07:00
parent d4c3867155
commit 4954118881
-23
View File
@@ -644,29 +644,6 @@ 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,