Update rmcp to 1.7.0 (#24763)

WIll make it easier to uprev when the new draft spec is supported.

Also updates reqwest where needed for compatibility but doesn't update
it everywhere since this is already a large diff.

The new version of rmcp handles certain kinds of authentication failures
differently, this patch includes support for identifying the failing scope
in a WWW-Authenticate header.
This commit is contained in:
Adam Perry @ OpenAI authored and GitHub committed 2026-05-27 14:52:06 -07:00
1 parent c57dee98b7
commit 910578792f
50 files changed
+982 -649

No files matched your search

+5 -11
View File
@@ -6,17 +6,11 @@ use pretty_assertions::assert_eq;
use std::collections::BTreeMap;
fn mcp_tool(name: &str, description: &str, input_schema: serde_json::Value) -> rmcp::model::Tool {
rmcp::model::Tool {
name: name.to_string().into(),
title: None,
description: Some(description.to_string().into()),
input_schema: std::sync::Arc::new(rmcp::model::object(input_schema)),
output_schema: None,
annotations: None,
execution: None,
icons: None,
meta: None,
}
rmcp::model::Tool::new(
name.to_string(),
description.to_string(),
std::sync::Arc::new(rmcp::model::object(input_schema)),
)
}
#[test]