Skip to content

Commit 018856e

Browse files
dependabot[bot]Copilotjamesadevine
authored
build(deps): bump rmcp from 0.8.5 to 1.4.0 (#429)
* build(deps): bump rmcp from 0.8.5 to 1.4.0 Bumps [rmcp](https://github.com/modelcontextprotocol/rust-sdk) from 0.8.5 to 1.4.0. - [Release notes](https://github.com/modelcontextprotocol/rust-sdk/releases) - [Changelog](https://github.com/modelcontextprotocol/rust-sdk/blob/main/release-plz.toml) - [Commits](modelcontextprotocol/rust-sdk@rmcp-v0.8.5...rmcp-v1.4.0) --- updated-dependencies: - dependency-name: rmcp dependency-version: 1.4.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * fix(mcp): fix build breaks after rmcp 0.8.5 → 1.4.0 bump Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/542281ed-3051-461e-8816-5248e9d7ab5f Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
1 parent 898cb4e commit 018856e

3 files changed

Lines changed: 24 additions & 90 deletions

File tree

Cargo.lock

Lines changed: 20 additions & 78 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ serde = { version = "1.0.228", features = ["derive"] }
1414
serde_yaml = "0.9.34"
1515
serde_json = "1.0.149"
1616
schemars = { version = "1.2", features = ["derive"] }
17-
rmcp = { version = "0.8.0", features = [
17+
rmcp = { version = "1.4.0", features = [
1818
"server",
1919
"transport-io",
2020
"transport-streamable-http-server",

src/mcp.rs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,13 +1370,8 @@ agent attempted work but couldn't finish (e.g., API timeouts, build failures, re
13701370
#[tool_handler]
13711371
impl ServerHandler for SafeOutputs {
13721372
fn get_info(&self) -> ServerInfo {
1373-
ServerInfo {
1374-
instructions: Some(
1375-
"A set of tools that generate SafeOutput compatible results.".into(),
1376-
),
1377-
capabilities: ServerCapabilities::builder().enable_tools().build(),
1378-
..Default::default()
1379-
}
1373+
ServerInfo::new(ServerCapabilities::builder().enable_tools().build())
1374+
.with_instructions("A set of tools that generate SafeOutput compatible results.")
13801375
}
13811376
}
13821377

@@ -1439,10 +1434,7 @@ pub async fn run_http(
14391434

14401435
info!("Starting SafeOutputs HTTP server on port {}", port);
14411436

1442-
let config = StreamableHttpServerConfig {
1443-
sse_keep_alive: Some(std::time::Duration::from_secs(15)),
1444-
stateful_mode: true,
1445-
};
1437+
let config = StreamableHttpServerConfig::default();
14461438

14471439
let session_manager = Arc::new(LocalSessionManager::default());
14481440

0 commit comments

Comments
 (0)