mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
mcp resource read: remove unused functions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user