Skip to content

Commit 8719bd0

Browse files
rename to McpList
1 parent 1364ef2 commit 8719bd0

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

codex-rs/core/src/codex.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,8 +1120,8 @@ async fn submission_loop(
11201120
let tools = sess.mcp_connection_manager.list_all_tools();
11211121
let event = Event {
11221122
id: sub_id,
1123-
msg: EventMsg::ListMcpToolsResponse(
1124-
crate::protocol::ListMcpToolsResponseEvent { tools },
1123+
msg: EventMsg::McpListToolsResponse(
1124+
crate::protocol::McpListToolsResponseEvent { tools },
11251125
),
11261126
};
11271127
if let Err(e) = tx_event.send(event).await {

codex-rs/core/src/protocol.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ pub enum EventMsg {
426426
GetHistoryEntryResponse(GetHistoryEntryResponseEvent),
427427

428428
/// List of MCP tools available to the agent.
429-
ListMcpToolsResponse(ListMcpToolsResponseEvent),
429+
McpListToolsResponse(McpListToolsResponseEvent),
430430

431431
PlanUpdate(UpdatePlanArgs),
432432

@@ -697,7 +697,7 @@ pub struct GetHistoryEntryResponseEvent {
697697

698698
/// Response payload for `Op::ListMcpTools`.
699699
#[derive(Debug, Clone, Deserialize, Serialize)]
700-
pub struct ListMcpToolsResponseEvent {
700+
pub struct McpListToolsResponseEvent {
701701
/// Fully qualified tool name -> tool definition.
702702
pub tools: std::collections::HashMap<String, McpTool>,
703703
}

codex-rs/exec/src/event_processor_with_human_output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ impl EventProcessor for EventProcessorWithHumanOutput {
522522
EventMsg::GetHistoryEntryResponse(_) => {
523523
// Currently ignored in exec output.
524524
}
525-
EventMsg::ListMcpToolsResponse(_) => {
525+
EventMsg::McpListToolsResponse(_) => {
526526
// Currently ignored in exec output.
527527
}
528528
EventMsg::ShutdownComplete => return CodexStatus::Shutdown,

codex-rs/mcp-server/src/codex_tool_runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ async fn run_codex_tool_session_inner(
263263
| EventMsg::AgentReasoningSectionBreak(_)
264264
| EventMsg::McpToolCallBegin(_)
265265
| EventMsg::McpToolCallEnd(_)
266-
| EventMsg::ListMcpToolsResponse(_)
266+
| EventMsg::McpListToolsResponse(_)
267267
| EventMsg::ExecCommandBegin(_)
268268
| EventMsg::ExecCommandOutputDelta(_)
269269
| EventMsg::ExecCommandEnd(_)

codex-rs/mcp-server/src/conversation_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub async fn run_conversation_loop(
9898
| EventMsg::AgentReasoningSectionBreak(_)
9999
| EventMsg::McpToolCallBegin(_)
100100
| EventMsg::McpToolCallEnd(_)
101-
| EventMsg::ListMcpToolsResponse(_)
101+
| EventMsg::McpListToolsResponse(_)
102102
| EventMsg::ExecCommandBegin(_)
103103
| EventMsg::ExecCommandEnd(_)
104104
| EventMsg::TurnDiff(_)

codex-rs/tui/src/chatwidget.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use codex_core::protocol::ExecApprovalRequestEvent;
1919
use codex_core::protocol::ExecCommandBeginEvent;
2020
use codex_core::protocol::ExecCommandEndEvent;
2121
use codex_core::protocol::InputItem;
22-
use codex_core::protocol::ListMcpToolsResponseEvent;
22+
use codex_core::protocol::McpListToolsResponseEvent;
2323
use codex_core::protocol::McpToolCallBeginEvent;
2424
use codex_core::protocol::McpToolCallEndEvent;
2525
use codex_core::protocol::Op;
@@ -643,7 +643,7 @@ impl ChatWidget<'_> {
643643
EventMsg::McpToolCallBegin(ev) => self.on_mcp_tool_call_begin(ev),
644644
EventMsg::McpToolCallEnd(ev) => self.on_mcp_tool_call_end(ev),
645645
EventMsg::GetHistoryEntryResponse(ev) => self.on_get_history_entry_response(ev),
646-
EventMsg::ListMcpToolsResponse(ev) => self.on_list_mcp_tools(ev),
646+
EventMsg::McpListToolsResponse(ev) => self.on_list_mcp_tools(ev),
647647
EventMsg::ShutdownComplete => self.on_shutdown_complete(),
648648
EventMsg::TurnDiff(TurnDiffEvent { unified_diff }) => self.on_turn_diff(unified_diff),
649649
EventMsg::BackgroundEvent(BackgroundEventEvent { message }) => {
@@ -726,7 +726,7 @@ impl ChatWidget<'_> {
726726
}
727727
}
728728

729-
fn on_list_mcp_tools(&mut self, ev: ListMcpToolsResponseEvent) {
729+
fn on_list_mcp_tools(&mut self, ev: McpListToolsResponseEvent) {
730730
self.add_to_history(&history_cell::new_mcp_tools_output(&self.config, ev.tools));
731731
}
732732

0 commit comments

Comments
 (0)