Skip to content

Commit ace90c3

Browse files
committed
Revert "[CallToolArgs] Set agent id inside when tools need to call other agents (#22)"
This reverts commit 9b4756f.
1 parent 9b4756f commit ace90c3

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jsonrpc-core = "18"
2121
warp = "0.3"
2222
jsonrpc-derive = "18"
2323
futures = "0.3"
24-
uuid = { version = "1", features = ["v4", "v7", "serde"] }
24+
uuid = { version = "1", features = ["v4"] }
2525
url = "2"
2626
base64 = "0.22"
2727
async-stream = "0.3"

bin/client.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use mcp_rs::{
66
transport::{sse::SseTransport, stdio::StdioTransport, ws::WebSocketTransport},
77
};
88
use serde_json::json;
9-
use uuid::Uuid;
109

1110
#[derive(Parser, Debug)]
1211
#[command(name = "mcp-client", version, about = "MCP Client CLI")]
@@ -256,7 +255,6 @@ async fn main() -> Result<(), McpError> {
256255
CallToolArgs::builder()
257256
.session_id(session_id)
258257
.tool_id(tool_id)
259-
.agent_id(Uuid::new_v4())
260258
.build(),
261259
),
262260
)

src/tools/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use std::{collections::HashMap, sync::Arc};
55
use test_tool::{PingTool, TestTool};
66
use tokio::sync::{mpsc, RwLock};
77
use typed_builder::TypedBuilder;
8-
use uuid::Uuid;
98

109
pub mod calculator;
1110
pub mod file_system;
@@ -118,8 +117,6 @@ pub struct CallToolArgs {
118117
#[serde(skip_serializing_if = "Option::is_none")]
119118
#[builder(default, setter(into))]
120119
pub session_id: Option<String>,
121-
122-
pub agent_id: Uuid,
123120
}
124121

125122
// Tool Provider trait

0 commit comments

Comments
 (0)