Skip to content

Commit 332b468

Browse files
committed
Merge branch 'main' into mcp-over-acp-proxy
2 parents 763475c + 64c2a5d commit 332b468

17 files changed

Lines changed: 71 additions & 150 deletions

File tree

.claude/settings.local.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

Cargo.lock

Lines changed: 2 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ tokio = { version = "1.48", features = ["full"] }
3434
tokio-util = { version = "0.7", features = ["compat"] }
3535

3636
# Protocol
37-
agent-client-protocol-schema = { path = "../agent-client-protocol", features = ["tracing"] }
37+
agent-client-protocol-schema = { version = "=0.12.2", features = ["tracing"] }
3838

3939
# Serialization
4040
serde = { version = "1.0", features = ["derive", "rc"] }
@@ -48,7 +48,6 @@ uuid = { version = "1.18", features = ["v4"] }
4848
anyhow = "1.0"
4949
thiserror = "2.0"
5050
tracing = "0.1"
51-
tracing-appender = "0.2"
5251
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
5352

5453
# MCP SDK
@@ -59,9 +58,6 @@ clap = { version = "4.5", features = ["derive"] }
5958

6059
# HTTP
6160
axum = "0.8"
62-
hyper = "1.0"
63-
tower = "0.5"
64-
tower-http = { version = "0.6", features = ["fs"] }
6561
async-process = "2"
6662
async-stream = "0.3.6"
6763
blocking = "1"
@@ -76,7 +72,6 @@ strip-ansi-escapes = "0.2"
7672

7773

7874
# Proc macros
79-
proc-macro2 = "1"
8075
quote = "1"
8176
syn = { version = "2", features = ["full", "extra-traits"] }
8277

src/agent-client-protocol-conductor/Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ path = "src/main.rs"
1818
test-support = []
1919

2020
[dependencies]
21-
agent-client-protocol = { workspace = true }
22-
agent-client-protocol-schema.workspace = true
21+
agent-client-protocol.workspace = true
2322
agent-client-protocol-trace-viewer.workspace = true
2423
anyhow.workspace = true
2524
async-stream.workspace = true
@@ -28,18 +27,14 @@ chrono.workspace = true
2827
clap.workspace = true
2928
futures.workspace = true
3029
futures-concurrency.workspace = true
31-
hyper.workspace = true
3230
rustc-hash.workspace = true
3331
serde.workspace = true
3432
serde_json.workspace = true
35-
shell-words.workspace = true
3633
strip-ansi-escapes.workspace = true
3734
thiserror.workspace = true
3835
tokio.workspace = true
3936
tokio-util.workspace = true
40-
tower.workspace = true
4137
tracing.workspace = true
42-
tracing-appender.workspace = true
4338
tracing-subscriber.workspace = true
4439
uuid.workspace = true
4540

src/agent-client-protocol-cookbook/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ keywords = ["acp", "agent", "proxy", "mcp", "cookbook"]
1111
categories = ["development-tools"]
1212

1313
[dependencies]
14-
agent-client-protocol-conductor.workspace = true
14+
15+
[dev-dependencies]
1516
agent-client-protocol.workspace = true
1617
agent-client-protocol-rmcp.workspace = true
1718
rmcp.workspace = true
1819
schemars.workspace = true
1920
serde.workspace = true
20-
serde_json.workspace = true
21-
tokio.workspace = true
2221
tracing.workspace = true
2322

2423
[lints]

src/agent-client-protocol-derive/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ description = "Derive macros for Agent Client Protocol JSON-RPC traits"
1212
proc-macro = true
1313

1414
[dependencies]
15-
proc-macro2.workspace = true
1615
quote.workspace = true
1716
syn.workspace = true
1817

src/agent-client-protocol-rmcp/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ categories = ["development-tools"]
1212

1313
[dependencies]
1414
agent-client-protocol.workspace = true
15-
futures.workspace = true
1615
futures-concurrency.workspace = true
1716
rmcp.workspace = true
1817
tokio.workspace = true

src/agent-client-protocol-test/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ path = "src/bin/testy.rs"
1919

2020
[dependencies]
2121
agent-client-protocol.workspace = true
22-
yopo.workspace = true
2322
anyhow.workspace = true
24-
futures.workspace = true
2523
rmcp = { workspace = true, features = ["server", "client", "transport-child-process", "transport-streamable-http-client-reqwest"] }
2624
schemars.workspace = true
2725
serde.workspace = true

src/agent-client-protocol-trace-viewer/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ anyhow.workspace = true
2323
axum.workspace = true
2424
clap.workspace = true
2525
open.workspace = true
26-
serde.workspace = true
2726
serde_json.workspace = true
2827
tokio.workspace = true
29-
tower.workspace = true
30-
tower-http.workspace = true
3128

3229
[lints]
3330
workspace = true

src/agent-client-protocol-trace-viewer/src/lib.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,25 @@ pub struct TraceHandle {
3636
impl TraceHandle {
3737
/// Push a new event to the trace.
3838
pub fn push(&self, event: serde_json::Value) {
39-
self.events.lock().unwrap().push(event);
39+
self.events
40+
.lock()
41+
.expect("events mutex poisoned")
42+
.push(event);
4043
}
4144

4245
/// Get the current number of events.
4346
#[must_use]
4447
pub fn len(&self) -> usize {
45-
self.events.lock().unwrap().len()
48+
self.events.lock().expect("events mutex poisoned").len()
4649
}
4750

4851
/// Check if empty.
4952
#[must_use]
5053
pub fn is_empty(&self) -> bool {
51-
self.events.lock().unwrap().is_empty()
54+
self.events
55+
.lock()
56+
.expect("events mutex poisoned")
57+
.is_empty()
5258
}
5359
}
5460

@@ -192,7 +198,7 @@ async fn serve_events_from_file(path: &PathBuf) -> Response {
192198
}
193199

194200
fn serve_events_from_memory(events: &Arc<Mutex<Vec<serde_json::Value>>>) -> Response {
195-
let events = events.lock().unwrap();
201+
let events = events.lock().expect("events mutex poisoned");
196202
match serde_json::to_string(&*events) {
197203
Ok(json) => (StatusCode::OK, [("content-type", "application/json")], json).into_response(),
198204
Err(e) => (

0 commit comments

Comments
 (0)