Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 10 additions & 12 deletions src/agent-client-protocol-test/src/testy/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ impl Testy {
tool,
params,
} => Ok(
match Box::pin(self.execute_tool_call(&session_id, &server, &tool, params))
match self
.execute_tool_call(&session_id, &server, &tool, params)
.await
{
Ok(result) => (format!("OK: {result}"), StopReason::EndTurn),
Expand Down Expand Up @@ -1353,7 +1354,7 @@ impl Testy {
use rmcp::{
ClientLifecycleMode, ClientServiceExt, ServiceExt,
model::{ClientCapabilities, ClientConfig, Implementation, ProtocolVersion},
transport::{ConfigureCommandExt, TokioChildProcess},
transport::TokioChildProcess,
};
use tokio::process::Command;

Expand Down Expand Up @@ -1382,17 +1383,14 @@ impl Testy {
match mcp_server {
McpServer::Stdio(stdio) => {
self.run_until_session_cancelled(session_id, async move {
let mut command = Command::new(&stdio.command);
command.args(&stdio.args);
for env_var in &stdio.env {
command.env(&env_var.name, &env_var.value);
}
let transport = TokioChildProcess::new(command)?;
// Standalone stdio retains the ordinary initialize handshake.
let mcp_client = ClientConfig::default()
.serve(TokioChildProcess::new(
Command::new(&stdio.command).configure(|cmd| {
cmd.args(&stdio.args);
for env_var in &stdio.env {
cmd.env(&env_var.name, &env_var.value);
}
}),
)?)
.await?;
let mcp_client = Box::pin(ClientConfig::default().serve(transport)).await?;

operation(mcp_client).await
})
Expand Down