SSE transport has been removed from the MCP specification in favor of streamable HTTP. This removes all SSE-specific transport code: - Remove `transport-sse-client` and `transport-sse-server` features - Remove `SseClientTransport` and `SseServer` types - Remove SSE-specific examples (`counter_sse`, `counter_sse_directly`) - Migrate auth examples from SSE to streamable HTTP - Update tests to remove SSE transport usage - Update documentation BREAKING CHANGE: The following have been removed: - `transport-sse-client` feature - `transport-sse-client-reqwest` feature - `transport-sse-server` feature - `SseClientTransport` type - `SseServer` type - `sse_client` and `sse_server` modules Users should migrate to streamable HTTP transport which provides equivalent functionality. See `StreamableHttpClientTransport` and `StreamableHttpService` for the replacement APIs. Ref: https://github.com/modelcontextprotocol/rust-sdk/pull/561#issuecomment-3576551699
59 lines
1.1 KiB
TOML
59 lines
1.1 KiB
TOML
|
|
|
|
[package]
|
|
name = "mcp-client-examples"
|
|
version = "0.1.5"
|
|
edition = "2024"
|
|
publish = false
|
|
|
|
[dependencies]
|
|
rmcp = { workspace = true, features = [
|
|
"client",
|
|
"reqwest",
|
|
"transport-streamable-http-client-reqwest",
|
|
"transport-child-process",
|
|
"tower",
|
|
"auth"
|
|
] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
rand = "0.9"
|
|
futures = "0.3"
|
|
anyhow = "1.0"
|
|
url = "2.4"
|
|
tower = "0.5"
|
|
axum = "0.8"
|
|
reqwest = "0.12"
|
|
clap = { version = "4.0", features = ["derive"] }
|
|
|
|
[[example]]
|
|
name = "clients_git_stdio"
|
|
path = "src/git_stdio.rs"
|
|
|
|
[[example]]
|
|
name = "clients_streamable_http"
|
|
path = "src/streamable_http.rs"
|
|
|
|
[[example]]
|
|
name = "clients_everything_stdio"
|
|
path = "src/everything_stdio.rs"
|
|
|
|
[[example]]
|
|
name = "clients_collection"
|
|
path = "src/collection.rs"
|
|
|
|
[[example]]
|
|
name = "clients_oauth_client"
|
|
path = "src/auth/oauth_client.rs"
|
|
|
|
[[example]]
|
|
name = "clients_sampling_stdio"
|
|
path = "src/sampling_stdio.rs"
|
|
|
|
|
|
[[example]]
|
|
name = "clients_progress_client"
|
|
path = "src/progress_client.rs"
|