fix: rename McpServer to AppServer

This PR brought to you via VS Code rather than Codex...

- opened `codex-rs/app-server/tests/common/mcp_process.rs`
- put the cursor on `McpServer`
- hit `F2` and renamed the symbol to `AppServer`
- went to the file tree
- hit enter and renamed `mcp_process.rs` to `app_server.rs`

The End
This commit is contained in:
Michael Bolin
2026-06-01 14:39:40 -07:00
parent 433ac84102
commit 47dd01b2d3
69 changed files with 634 additions and 628 deletions
@@ -1,5 +1,5 @@
use anyhow::Result;
use app_test_support::McpProcess;
use app_test_support::TestAppServer;
use app_test_support::create_final_assistant_message_sse_response;
use app_test_support::create_mock_responses_server_sequence;
use app_test_support::create_shell_command_sse_response;
@@ -60,7 +60,7 @@ async fn thread_shell_command_history_responses_exclude_persisted_command_execut
&BTreeMap::default(),
)?;
let mut mcp = McpProcess::new(codex_home.as_path()).await?;
let mut mcp = TestAppServer::new(codex_home.as_path()).await?;
timeout(DEFAULT_READ_TIMEOUT, mcp.initialize()).await??;
let start_id = mcp
@@ -196,7 +196,7 @@ async fn thread_shell_command_returns_error_when_local_environment_is_disabled()
&BTreeMap::default(),
)?;
let mut mcp = McpProcess::new_with_env(
let mut mcp = TestAppServer::new_with_env(
codex_home.as_path(),
&[(CODEX_EXEC_SERVER_URL_ENV_VAR, Some("none"))],
)
@@ -255,7 +255,7 @@ async fn thread_shell_command_uses_existing_active_turn() -> Result<()> {
&BTreeMap::default(),
)?;
let mut mcp = McpProcess::new(codex_home.as_path()).await?;
let mut mcp = TestAppServer::new(codex_home.as_path()).await?;
timeout(DEFAULT_READ_TIMEOUT, mcp.initialize()).await??;
let start_id = mcp
@@ -410,7 +410,7 @@ fn current_shell_output_command(text: &str) -> Result<(String, String)> {
}
async fn wait_for_command_execution_started(
mcp: &mut McpProcess,
mcp: &mut TestAppServer,
expected_id: Option<&str>,
) -> Result<ItemStartedNotification> {
loop {
@@ -432,7 +432,7 @@ async fn wait_for_command_execution_started(
}
async fn wait_for_command_execution_started_by_source(
mcp: &mut McpProcess,
mcp: &mut TestAppServer,
expected_source: CommandExecutionSource,
) -> Result<ItemStartedNotification> {
loop {
@@ -447,7 +447,7 @@ async fn wait_for_command_execution_started_by_source(
}
async fn wait_for_command_execution_completed(
mcp: &mut McpProcess,
mcp: &mut TestAppServer,
expected_id: Option<&str>,
) -> Result<ItemCompletedNotification> {
loop {
@@ -469,7 +469,7 @@ async fn wait_for_command_execution_completed(
}
async fn wait_for_command_execution_output_delta(
mcp: &mut McpProcess,
mcp: &mut TestAppServer,
item_id: &str,
) -> Result<CommandExecutionOutputDeltaNotification> {
loop {