Skip to content

Commit 5d728b7

Browse files
committed
Forward unstable_mcp_over_acp feature through SDK crate
Instead of unconditionally enabling unstable_mcp_over_acp on the schema dependency, declare it as a feature on agent-client-protocol that forwards to agent-client-protocol-schema/unstable_mcp_over_acp. Conductor and polyfill crates opt in explicitly.
1 parent ea8819d commit 5d728b7

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
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", "unstable_mcp_over_acp"] }
37+
agent-client-protocol-schema = { path = "../agent-client-protocol", features = ["tracing"] }
3838

3939
# Serialization
4040
serde = { version = "1.0", features = ["derive", "rc"] }

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

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

2020
[dependencies]
21-
agent-client-protocol.workspace = true
21+
agent-client-protocol = { workspace = true, features = ["unstable_mcp_over_acp"] }
2222
agent-client-protocol-schema.workspace = true
2323
agent-client-protocol-trace-viewer.workspace = true
2424
anyhow.workspace = true

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keywords = ["acp", "agent", "mcp", "polyfill"]
1111
categories = ["development-tools"]
1212

1313
[dependencies]
14-
agent-client-protocol.workspace = true
14+
agent-client-protocol = { workspace = true, features = ["unstable_mcp_over_acp"] }
1515
agent-client-protocol-schema.workspace = true
1616
anyhow.workspace = true
1717
async-stream.workspace = true

src/agent-client-protocol/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ unstable = [
1919
"unstable_auth_methods",
2020
"unstable_boolean_config",
2121
"unstable_logout",
22+
"unstable_mcp_over_acp",
2223
"unstable_message_id",
2324
"unstable_session_additional_directories",
2425
"unstable_session_close",
@@ -30,6 +31,7 @@ unstable = [
3031
unstable_auth_methods = ["agent-client-protocol-schema/unstable_auth_methods"]
3132
unstable_boolean_config = ["agent-client-protocol-schema/unstable_boolean_config"]
3233
unstable_logout = ["agent-client-protocol-schema/unstable_logout"]
34+
unstable_mcp_over_acp = ["agent-client-protocol-schema/unstable_mcp_over_acp"]
3335
unstable_message_id = ["agent-client-protocol-schema/unstable_message_id"]
3436
unstable_session_additional_directories = ["agent-client-protocol-schema/unstable_session_additional_directories"]
3537
unstable_session_close = ["agent-client-protocol-schema/unstable_session_close"]

0 commit comments

Comments
 (0)