mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
Merge branch 'main' into codex/viyatb/trusted-project-config-gating
This commit is contained in:
@@ -48,6 +48,7 @@ use codex_app_server_protocol::JSONRPCResponse;
|
||||
use codex_app_server_protocol::ListMcpServerStatusParams;
|
||||
use codex_app_server_protocol::LoginAccountParams;
|
||||
use codex_app_server_protocol::McpResourceReadParams;
|
||||
use codex_app_server_protocol::McpServerToolCallParams;
|
||||
use codex_app_server_protocol::MockExperimentalMethodParams;
|
||||
use codex_app_server_protocol::ModelListParams;
|
||||
use codex_app_server_protocol::PluginInstallParams;
|
||||
@@ -494,6 +495,15 @@ impl McpProcess {
|
||||
self.send_request("mcpServer/resource/read", params).await
|
||||
}
|
||||
|
||||
/// Send an `mcpServer/tool/call` JSON-RPC request.
|
||||
pub async fn send_mcp_server_tool_call_request(
|
||||
&mut self,
|
||||
params: McpServerToolCallParams,
|
||||
) -> anyhow::Result<i64> {
|
||||
let params = Some(serde_json::to_value(params)?);
|
||||
self.send_request("mcpServer/tool/call", params).await
|
||||
}
|
||||
|
||||
/// Send a `skills/list` JSON-RPC request.
|
||||
pub async fn send_skills_list_request(
|
||||
&mut self,
|
||||
|
||||
Reference in New Issue
Block a user